| 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 | 8 |
| 9 #include "vm/ast_printer.h" | 9 #include "vm/ast_printer.h" |
| 10 #include "vm/block_scheduler.h" | 10 #include "vm/block_scheduler.h" |
| (...skipping 1483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1494 if (FLAG_support_ast_printer) { | 1494 if (FLAG_support_ast_printer) { |
| 1495 AstPrinter::PrintNode(fragment); | 1495 AstPrinter::PrintNode(fragment); |
| 1496 } | 1496 } |
| 1497 } | 1497 } |
| 1498 | 1498 |
| 1499 // Create a dummy function object for the code generator. | 1499 // Create a dummy function object for the code generator. |
| 1500 // The function needs to be associated with a named Class: the interface | 1500 // The function needs to be associated with a named Class: the interface |
| 1501 // Function fits the bill. | 1501 // Function fits the bill. |
| 1502 const char* kEvalConst = "eval_const"; | 1502 const char* kEvalConst = "eval_const"; |
| 1503 const Function& func = Function::ZoneHandle(Function::New( | 1503 const Function& func = Function::ZoneHandle(Function::New( |
| 1504 String::Handle(Symbols::New(kEvalConst)), | 1504 String::Handle(Symbols::New(thread, kEvalConst)), |
| 1505 RawFunction::kRegularFunction, | 1505 RawFunction::kRegularFunction, |
| 1506 true, // static function | 1506 true, // static function |
| 1507 false, // not const function | 1507 false, // not const function |
| 1508 false, // not abstract | 1508 false, // not abstract |
| 1509 false, // not external | 1509 false, // not external |
| 1510 false, // not native | 1510 false, // not native |
| 1511 Class::Handle(Type::Handle(Type::DartFunctionType()).type_class()), | 1511 Class::Handle(Type::Handle(Type::DartFunctionType()).type_class()), |
| 1512 fragment->token_pos())); | 1512 fragment->token_pos())); |
| 1513 | 1513 |
| 1514 func.set_result_type(Object::dynamic_type()); | 1514 func.set_result_type(Object::dynamic_type()); |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1957 } | 1957 } |
| 1958 | 1958 |
| 1959 | 1959 |
| 1960 void BackgroundCompiler::EnsureInit(Thread* thread) { | 1960 void BackgroundCompiler::EnsureInit(Thread* thread) { |
| 1961 UNREACHABLE(); | 1961 UNREACHABLE(); |
| 1962 } | 1962 } |
| 1963 | 1963 |
| 1964 #endif // DART_PRECOMPILED_RUNTIME | 1964 #endif // DART_PRECOMPILED_RUNTIME |
| 1965 | 1965 |
| 1966 } // namespace dart | 1966 } // namespace dart |
| OLD | NEW |