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/flow_graph_builder.h" | 5 #include "vm/flow_graph_builder.h" |
6 | 6 |
7 #include "lib/invocation_mirror.h" | 7 #include "lib/invocation_mirror.h" |
8 #include "vm/ast_printer.h" | 8 #include "vm/ast_printer.h" |
9 #include "vm/code_descriptors.h" | 9 #include "vm/code_descriptors.h" |
10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
11 #include "vm/flags.h" | 11 #include "vm/flags.h" |
12 #include "vm/flow_graph_compiler.h" | 12 #include "vm/flow_graph_compiler.h" |
13 #include "vm/il_printer.h" | 13 #include "vm/il_printer.h" |
14 #include "vm/intermediate_language.h" | 14 #include "vm/intermediate_language.h" |
15 #include "vm/longjump.h" | 15 #include "vm/longjump.h" |
16 #include "vm/object_store.h" | 16 #include "vm/object_store.h" |
17 #include "vm/os.h" | 17 #include "vm/os.h" |
18 #include "vm/parser.h" | 18 #include "vm/parser.h" |
19 #include "vm/resolver.h" | 19 #include "vm/resolver.h" |
| 20 #include "vm/stack_frame.h" |
20 #include "vm/stub_code.h" | 21 #include "vm/stub_code.h" |
21 #include "vm/symbols.h" | 22 #include "vm/symbols.h" |
22 | 23 |
23 namespace dart { | 24 namespace dart { |
24 | 25 |
25 DEFINE_FLAG(bool, eliminate_type_checks, true, | 26 DEFINE_FLAG(bool, eliminate_type_checks, true, |
26 "Eliminate type checks when allowed by static type analysis."); | 27 "Eliminate type checks when allowed by static type analysis."); |
27 DEFINE_FLAG(bool, print_ast, false, "Print abstract syntax tree."); | 28 DEFINE_FLAG(bool, print_ast, false, "Print abstract syntax tree."); |
28 DEFINE_FLAG(bool, print_flow_graph, false, "Print the IR flow graph."); | 29 DEFINE_FLAG(bool, print_flow_graph, false, "Print the IR flow graph."); |
29 DEFINE_FLAG(bool, print_flow_graph_optimized, false, | 30 DEFINE_FLAG(bool, print_flow_graph_optimized, false, |
(...skipping 3344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3374 intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, reason) + 1; | 3375 intptr_t len = OS::SNPrint(NULL, 0, kFormat, function_name, reason) + 1; |
3375 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); | 3376 char* chars = Isolate::Current()->current_zone()->Alloc<char>(len); |
3376 OS::SNPrint(chars, len, kFormat, function_name, reason); | 3377 OS::SNPrint(chars, len, kFormat, function_name, reason); |
3377 const Error& error = Error::Handle( | 3378 const Error& error = Error::Handle( |
3378 LanguageError::New(String::Handle(String::New(chars)))); | 3379 LanguageError::New(String::Handle(String::New(chars)))); |
3379 Isolate::Current()->long_jump_base()->Jump(1, error); | 3380 Isolate::Current()->long_jump_base()->Jump(1, error); |
3380 } | 3381 } |
3381 | 3382 |
3382 | 3383 |
3383 } // namespace dart | 3384 } // namespace dart |
OLD | NEW |