summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-07-30 09:58:15 +0000
committerMoonchild <moonchild@palemoon.org>2021-07-30 09:58:15 +0000
commit935b5f281f1542369bb818bb9b12439a53a653cb (patch)
tree7cc38403a5f75d3761af15e26b596ed28e0be5d4 /js
parent36d0e6c21ba706a0a3933c8408e419eea0b5851b (diff)
downloaduxp-935b5f281f1542369bb818bb9b12439a53a653cb.tar.gz
Issue mcp-graveyard/UXP#1679 - Part4: Clean up commented-out/WIP code.
Diffstat (limited to 'js')
-rw-r--r--js/src/regexp/regexp-native-macro-assembler.cc11
-rw-r--r--js/src/regexp/regexp-shim.cc2
-rw-r--r--js/src/regexp/regexp-shim.h1
3 files changed, 0 insertions, 14 deletions
diff --git a/js/src/regexp/regexp-native-macro-assembler.cc b/js/src/regexp/regexp-native-macro-assembler.cc
index bfac5be072..67bf77cbd8 100644
--- a/js/src/regexp/regexp-native-macro-assembler.cc
+++ b/js/src/regexp/regexp-native-macro-assembler.cc
@@ -89,17 +89,6 @@ void SMRegExpMacroAssembler::AdvanceRegister(int reg, int by) {
}
void SMRegExpMacroAssembler::Backtrack() {
- // Check for an interrupt.
- /*Label noInterrupt;
- Address lhs = Address(cx_->runtime()->addressOfInterruptUint32());
- masm_.branchtest32(Assembler::Zero,
- lhs,
- Imm32(0),
- &noInterrupt);
- masm_.movePtr(ImmWord(RegExpRunStatus_Error), temp0_);
- masm_.jump(&exit_label_);
- masm_.bind(&noInterrupt);
-*/
// Pop code location from backtrack stack and jump to location.
Pop(temp0_);
masm_.jump(temp0_);
diff --git a/js/src/regexp/regexp-shim.cc b/js/src/regexp/regexp-shim.cc
index 024ccc2568..275fafdf0b 100644
--- a/js/src/regexp/regexp-shim.cc
+++ b/js/src/regexp/regexp-shim.cc
@@ -127,8 +127,6 @@ PseudoHandle<ByteArrayData> ByteArray::takeOwnership(Isolate* isolate) {
}
void Isolate::trace(JSTracer* trc) {
- //js::gc::AssertRootMarkingPhase(trc);
-
for (auto iter = handleArena_.Iter(); !iter.Done(); iter.Next()) {
auto& elem = iter.Get();
JS::GCPolicy<JS::Value>::trace(trc, &elem, "Isolate handle arena");
diff --git a/js/src/regexp/regexp-shim.h b/js/src/regexp/regexp-shim.h
index dc24b6c3d3..aa8c98be86 100644
--- a/js/src/regexp/regexp-shim.h
+++ b/js/src/regexp/regexp-shim.h
@@ -1173,7 +1173,6 @@ extern bool FLAG_trace_regexp_bytecodes;
extern bool FLAG_trace_regexp_parser;
extern bool FLAG_trace_regexp_peephole_optimization;
-// #define V8_USE_COMPUTED_GOTO 1
#define COMPILING_IRREGEXP_FOR_EXTERNAL_EMBEDDER
} // namespace internal