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

Unified Diff: runtime/vm/method_recognizer.h

Issue 683433003: Integrate the Irregexp Regular Expression Engine. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase, enable tests, remove *CodeUnitsAt Created 6 years, 2 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/method_recognizer.h
diff --git a/runtime/vm/method_recognizer.h b/runtime/vm/method_recognizer.h
index 0c4a9ec8169cf179964d20a80617ae5bb7e358e3..9aa39e27d4e3292264c4cc0aa998700cb1985b3b 100644
--- a/runtime/vm/method_recognizer.h
+++ b/runtime/vm/method_recognizer.h
@@ -198,6 +198,17 @@ namespace dart {
V(_TwoByteString, ==, TwoByteString_equality, 951149689) \
+// TODO(zerny): Remove this list and add _ExecuteMatch to
+// CORE_LIB_INTRINSIC_LIST once irregexp code has been implemented for all
+// architectures and JSCRE has been removed.
+#if defined(USE_JSCRE)
+#define CORE_REGEXP_LIB_INTRINSIC_LIST(V)
+#else
+#define CORE_REGEXP_LIB_INTRINSIC_LIST(V) \
+ V(_JSSyntaxRegExp, _ExecuteMatch, JSRegExp_ExecuteMatch, 1654250896)
+#endif
+
+
#define CORE_INTEGER_LIB_INTRINSIC_LIST(V) \
V(_IntegerImplementation, _addFromInteger, Integer_addFromInteger, \
438687793) \
@@ -300,6 +311,7 @@ namespace dart {
#define ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \
CORE_LIB_INTRINSIC_LIST(V) \
+ CORE_REGEXP_LIB_INTRINSIC_LIST(V) \
MATH_LIB_INTRINSIC_LIST(V) \
TYPED_DATA_LIB_INTRINSIC_LIST(V) \
PROFILER_LIB_INTRINSIC_LIST(V)
@@ -321,6 +333,8 @@ namespace dart {
V(_TypedList, get:length, TypedDataLength, 522565357) \
V(_GrowableList, get:length, GrowableArrayLength, 778505107) \
V(_StringBase, get:length, StringBaseLength, 784399628) \
+ V(_GrowableList, add, GrowableListAdd, 1899133961) \
+ V(_GrowableList, removeLast, GrowableListRemoveLast, 1274907639) \
V(ListIterator, moveNext, ListIteratorMoveNext, 210829138) \
V(_FixedSizeArrayIterator, moveNext, FixedListIteratorMoveNext, 1147271335) \
V(_GrowableList, get:iterator, GrowableArrayIterator, 1812933946) \
« no previous file with comments | « runtime/vm/intrinsifier_x64.cc ('k') | runtime/vm/object.h » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698