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

Unified Diff: runtime/vm/regexp_assembler.cc

Issue 678193004: Copy irregexp related code from V8. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 6 years, 1 month 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/regexp_assembler.h ('k') | runtime/vm/regexp_ast.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/regexp_assembler.cc
diff --git a/runtime/lib/class_id.cc b/runtime/vm/regexp_assembler.cc
similarity index 51%
copy from runtime/lib/class_id.cc
copy to runtime/vm/regexp_assembler.cc
index 2f99138b95c88139108b31d8553b124855535907..8936d9daee1958cb5ecdf3dd80adb0da9e9635c1 100644
--- a/runtime/lib/class_id.cc
+++ b/runtime/vm/regexp_assembler.cc
@@ -2,15 +2,22 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#include "platform/assert.h"
-#include "vm/bootstrap_natives.h"
+#include "vm/regexp_assembler.h"
+
+// SNIP
namespace dart {
-DEFINE_NATIVE_ENTRY(ClassID_getID, 1) {
- const Instance& instance =
- Instance::CheckedHandle(isolate, arguments->NativeArgAt(0));
- return Smi::New(instance.GetClassId());
+RegExpMacroAssembler::RegExpMacroAssembler(Zone* zone)
+ : slow_safe_compiler_(false),
+ global_mode_(NOT_GLOBAL),
+ zone_(zone) {
}
+
+RegExpMacroAssembler::~RegExpMacroAssembler() {
+}
+
+// SNIP
+
} // namespace dart
« no previous file with comments | « runtime/vm/regexp_assembler.h ('k') | runtime/vm/regexp_ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698