| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a | 
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "vm/compiler.h" | 5 #include "vm/compiler.h" | 
| 6 | 6 | 
| 7 #include "vm/assembler.h" | 7 #include "vm/assembler.h" | 
| 8 #include "vm/ast_printer.h" | 8 #include "vm/ast_printer.h" | 
| 9 #include "vm/code_generator.h" | 9 #include "vm/code_generator.h" | 
| 10 #include "vm/code_patcher.h" | 10 #include "vm/code_patcher.h" | 
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 537         RawFunction::kConstImplicitGetter, | 537         RawFunction::kConstImplicitGetter, | 
| 538         true,  // static function. | 538         true,  // static function. | 
| 539         false,  // not const function. | 539         false,  // not const function. | 
| 540         false,  // not abstract | 540         false,  // not abstract | 
| 541         false,  // not external. | 541         false,  // not external. | 
| 542         Class::Handle(Type::Handle(Type::Function()).type_class()), | 542         Class::Handle(Type::Handle(Type::Function()).type_class()), | 
| 543         fragment->token_pos())); | 543         fragment->token_pos())); | 
| 544 | 544 | 
| 545     func.set_result_type(Type::Handle(Type::DynamicType())); | 545     func.set_result_type(Type::Handle(Type::DynamicType())); | 
| 546     func.set_num_fixed_parameters(0); | 546     func.set_num_fixed_parameters(0); | 
| 547     func.set_num_optional_parameters(0); | 547     func.set_num_optional_positional_parameters(0); | 
|  | 548     func.set_num_optional_named_parameters(0); | 
| 548     // Manually generated AST, do not recompile. | 549     // Manually generated AST, do not recompile. | 
| 549     func.set_is_optimizable(false); | 550     func.set_is_optimizable(false); | 
| 550 | 551 | 
| 551     // We compile the function here, even though InvokeStatic() below | 552     // We compile the function here, even though InvokeStatic() below | 
| 552     // would compile func automatically. We are checking fewer invariants | 553     // would compile func automatically. We are checking fewer invariants | 
| 553     // here. | 554     // here. | 
| 554     ParsedFunction parsed_function(func); | 555     ParsedFunction parsed_function(func); | 
| 555     parsed_function.SetNodeSequence(fragment); | 556     parsed_function.SetNodeSequence(fragment); | 
| 556     parsed_function.set_default_parameter_values(Array::Handle()); | 557     parsed_function.set_default_parameter_values(Array::Handle()); | 
| 557     parsed_function.set_expression_temp_var( | 558     parsed_function.set_expression_temp_var( | 
| (...skipping 17 matching lines...) Expand all  Loading... | 
| 575     result = isolate->object_store()->sticky_error(); | 576     result = isolate->object_store()->sticky_error(); | 
| 576     isolate->object_store()->clear_sticky_error(); | 577     isolate->object_store()->clear_sticky_error(); | 
| 577     isolate->set_long_jump_base(base); | 578     isolate->set_long_jump_base(base); | 
| 578     return result.raw(); | 579     return result.raw(); | 
| 579   } | 580   } | 
| 580   UNREACHABLE(); | 581   UNREACHABLE(); | 
| 581   return Object::null(); | 582   return Object::null(); | 
| 582 } | 583 } | 
| 583 | 584 | 
| 584 }  // namespace dart | 585 }  // namespace dart | 
| OLD | NEW | 
|---|