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

Unified Diff: runtime/vm/object.cc

Issue 539153002: Port and integrate the irregexp engine from V8 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 9aa608c320ec47ea176a438f2fc2dd21524ee0e7..c189fd8d7c32495415ca0b65f6e4119b3274c782 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -6741,6 +6741,9 @@ const char* Function::ToCString() const {
case RawFunction::kInvokeFieldDispatcher:
kind_str = "invoke-field-dispatcher";
break;
+ case RawFunction::kIrregexpFunction:
Florian Schneider 2014/09/16 11:11:48 Check for other places where you need to add a cas
jgruber1 2014/09/22 18:58:04 Done.
+ kind_str = "irregexp-function";
+ break;
default:
UNREACHABLE();
}
@@ -19271,6 +19274,16 @@ const char* Stacktrace::ToCStringInternal(intptr_t* frame_index,
}
+void JSRegExp::set_one_byte_function(const Function& function) {
+ StorePointer(&raw_ptr()->one_byte_function_, function.raw());
+}
+
+
+void JSRegExp::set_two_byte_function(const Function& function) {
+ StorePointer(&raw_ptr()->two_byte_function_, function.raw());
+}
+
+
void JSRegExp::set_pattern(const String& pattern) const {
StorePointer(&raw_ptr()->pattern_, pattern.raw());
}

Powered by Google App Engine
This is Rietveld 408576698