Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(933)

Unified Diff: runtime/vm/intrinsifier_ia32.cc

Issue 1201383002: Port irregexp bytecode compiler and interpreter from V8 r24065. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/intrinsifier_ia32.cc
diff --git a/runtime/vm/intrinsifier_ia32.cc b/runtime/vm/intrinsifier_ia32.cc
index 93290edd32754b4443ff83411806c01ed7cf5343..d911b75d0746f3a6b3128f367b0404212189a4e5 100644
--- a/runtime/vm/intrinsifier_ia32.cc
+++ b/runtime/vm/intrinsifier_ia32.cc
@@ -24,6 +24,8 @@
namespace dart {
+DECLARE_FLAG(bool, interpret_irregexp);
+
// When entering intrinsics code:
// ECX: IC Data
// EDX: Arguments descriptor
@@ -2052,6 +2054,8 @@ void Intrinsifier::TwoByteString_equality(Assembler* assembler) {
void Intrinsifier::JSRegExp_ExecuteMatch(Assembler* assembler) {
+ if (FLAG_interpret_irregexp) return;
+
static const intptr_t kRegExpParamOffset = 3 * kWordSize;
static const intptr_t kStringParamOffset = 2 * kWordSize;
// start_index smi is located at offset 1.

Powered by Google App Engine
This is Rietveld 408576698