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

Unified Diff: runtime/vm/regexp_test.cc

Issue 982873004: Thread/Isolate refactoring: new(Isolate) -> new(Zone) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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/regexp_parser.cc ('k') | runtime/vm/runtime_entry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/regexp_test.cc
===================================================================
--- runtime/vm/regexp_test.cc (revision 44266)
+++ runtime/vm/regexp_test.cc (working copy)
@@ -14,14 +14,14 @@
DECLARE_FLAG(bool, use_jscre);
static RawArray* Match(const String& pat, const String& str) {
- Isolate* isolate = Isolate::Current();
+ Zone* zone = Thread::Current()->zone();
const JSRegExp& regexp = JSRegExp::Handle(
- RegExpEngine::CreateJSRegExp(isolate, pat, false, false));
+ RegExpEngine::CreateJSRegExp(zone, pat, false, false));
const intptr_t cid = str.GetClassId();
const Function& fn = Function::Handle(regexp.function(cid));
EXPECT(!fn.IsNull());
const Smi& idx = Smi::Handle(Smi::New(0));
- return IRRegExpMacroAssembler::Execute(fn, str, idx, Isolate::Current());
+ return IRRegExpMacroAssembler::Execute(fn, str, idx, zone);
}
TEST_CASE(RegExp_OneByteString) {
« no previous file with comments | « runtime/vm/regexp_parser.cc ('k') | runtime/vm/runtime_entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698