| Index: runtime/vm/unit_test.cc
|
| ===================================================================
|
| --- runtime/vm/unit_test.cc (revision 41393)
|
| +++ runtime/vm/unit_test.cc (working copy)
|
| @@ -217,11 +217,14 @@
|
|
|
|
|
| void CodeGenTest::Compile() {
|
| + if (function_.HasCode()) return;
|
| ParsedFunction* parsed_function =
|
| new ParsedFunction(Isolate::Current(), function_);
|
| parsed_function->SetNodeSequence(node_sequence_);
|
| parsed_function->set_instantiator(NULL);
|
| parsed_function->set_default_parameter_values(default_parameter_values_);
|
| + node_sequence_->scope()->AddVariable(
|
| + parsed_function->current_context_var());
|
| parsed_function->EnsureExpressionTemp();
|
| node_sequence_->scope()->AddVariable(parsed_function->expression_temp_var());
|
| parsed_function->AllocateVariables();
|
| @@ -231,19 +234,6 @@
|
| }
|
|
|
|
|
| -LocalVariable* CodeGenTest::CreateTempConstVariable(const char* name_part) {
|
| - char name[64];
|
| - OS::SNPrint(name, 64, ":%s", name_part);
|
| - LocalVariable* temp =
|
| - new LocalVariable(0,
|
| - String::ZoneHandle(Symbols::New(name)),
|
| - Type::ZoneHandle(Type::DynamicType()));
|
| - temp->set_is_final();
|
| - node_sequence_->scope()->AddVariable(temp);
|
| - return temp;
|
| -}
|
| -
|
| -
|
| bool CompilerTest::TestCompileScript(const Library& library,
|
| const Script& script) {
|
| Isolate* isolate = Isolate::Current();
|
|
|