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

Unified Diff: runtime/vm/object.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, 5 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
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 6f88bbdc2685b86f60028bdb277ef74386ec688e..a000d8c750e5e8bf1af132845b304537cdb7de7c 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -20842,6 +20842,15 @@ void JSRegExp::set_function(intptr_t cid, const Function& value) const {
}
+void JSRegExp::set_bytecode(bool is_one_byte, const TypedData& bytecode) const {
+ if (is_one_byte) {
+ StorePointer(&raw_ptr()->one_byte_bytecode_, bytecode.raw());
+ } else {
+ StorePointer(&raw_ptr()->two_byte_bytecode_, bytecode.raw());
+ }
+}
+
+
void JSRegExp::set_num_bracket_expressions(intptr_t value) const {
StoreSmi(&raw_ptr()->num_bracket_expressions_, Smi::New(value));
}
@@ -20857,6 +20866,7 @@ RawJSRegExp* JSRegExp::New(Heap::Space space) {
result ^= raw;
result.set_type(kUnitialized);
result.set_flags(0);
+ result.set_num_registers(-1);
}
return result.raw();
}
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698