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

Unified Diff: runtime/vm/code_descriptors_test.cc

Issue 11228022: Cache parsed functions when inlining. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: virtual Created 8 years, 2 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 | « no previous file | runtime/vm/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_descriptors_test.cc
diff --git a/runtime/vm/code_descriptors_test.cc b/runtime/vm/code_descriptors_test.cc
index c92d032a1ef5150f73c263a0f3154c1a871aee57..ae4aa0cb50b12754cad871f572e4513f7a4e30ad 100644
--- a/runtime/vm/code_descriptors_test.cc
+++ b/runtime/vm/code_descriptors_test.cc
@@ -36,17 +36,17 @@ CODEGEN_TEST_GENERATE(StackmapCodegen, test) {
cls.SetFunctions(functions);
Library& lib = Library::Handle(Library::CoreLibrary());
lib.AddClass(cls);
- ParsedFunction parsed_function(function);
+ ParsedFunction* parsed_function = new ParsedFunction(function);
LiteralNode* l = new LiteralNode(kPos, Smi::ZoneHandle(Smi::New(1)));
test->node_sequence()->Add(new ReturnNode(kPos, l));
l = new LiteralNode(kPos, Smi::ZoneHandle(Smi::New(2)));
test->node_sequence()->Add(new ReturnNode(kPos, l));
l = new LiteralNode(kPos, Smi::ZoneHandle(Smi::New(3)));
test->node_sequence()->Add(new ReturnNode(kPos, l));
- parsed_function.SetNodeSequence(test->node_sequence());
- parsed_function.set_instantiator(NULL);
- parsed_function.set_default_parameter_values(Array::Handle());
- parsed_function.AllocateVariables();
+ parsed_function->SetNodeSequence(test->node_sequence());
+ parsed_function->set_instantiator(NULL);
+ parsed_function->set_default_parameter_values(Array::Handle());
+ parsed_function->AllocateVariables();
bool retval;
Isolate* isolate = Isolate::Current();
EXPECT(isolate != NULL);
@@ -133,7 +133,7 @@ CODEGEN_TEST_GENERATE(StackmapCodegen, test) {
stackmap_table_builder->AddEntry(3, stack_bitmap, 0);
const Error& error =
- Error::Handle(Compiler::CompileParsedFunction(parsed_function));
+ Error::Handle(Compiler::CompileParsedFunction(*parsed_function));
EXPECT(error.IsNull());
const Code& code = Code::Handle(function.CurrentCode());
« no previous file with comments | « no previous file | runtime/vm/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698