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

Unified Diff: runtime/vm/regexp_test.cc

Issue 1305993005: VM: Simplify irregexp entry stub. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: simplify ExecuteMatch Created 5 years, 4 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_assembler_ir.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/regexp_test.cc
diff --git a/runtime/vm/regexp_test.cc b/runtime/vm/regexp_test.cc
index 7b339821f2b74e71fea632ce5bafa4346a62a280..d75dac49bda689902eb425fd2c8bc65b497e26e4 100644
--- a/runtime/vm/regexp_test.cc
+++ b/runtime/vm/regexp_test.cc
@@ -16,11 +16,8 @@ static RawArray* Match(const String& pat, const String& str) {
Zone* zone = Thread::Current()->zone();
const JSRegExp& regexp = JSRegExp::Handle(
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, zone);
+ return IRRegExpMacroAssembler::Execute(regexp, str, idx, zone);
}
TEST_CASE(RegExp_OneByteString) {
« no previous file with comments | « runtime/vm/regexp_assembler_ir.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698