| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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/globals.h" // Needed here to get TARGET_ARCH_XXX. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX. |
| 6 | 6 |
| 7 #include "vm/flow_graph_compiler.h" | 7 #include "vm/flow_graph_compiler.h" |
| 8 | 8 |
| 9 #include "vm/bit_vector.h" | 9 #include "vm/bit_vector.h" |
| 10 #include "vm/cha.h" | 10 #include "vm/cha.h" |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 } | 620 } |
| 621 } | 621 } |
| 622 } | 622 } |
| 623 | 623 |
| 624 | 624 |
| 625 void FlowGraphCompiler::Bailout(const char* reason) { | 625 void FlowGraphCompiler::Bailout(const char* reason) { |
| 626 const Function& function = parsed_function_.function(); | 626 const Function& function = parsed_function_.function(); |
| 627 Report::MessageF(Report::kBailout, | 627 Report::MessageF(Report::kBailout, |
| 628 Script::Handle(function.script()), | 628 Script::Handle(function.script()), |
| 629 function.token_pos(), | 629 function.token_pos(), |
| 630 Report::AtLocation, |
| 630 "FlowGraphCompiler Bailout: %s %s", | 631 "FlowGraphCompiler Bailout: %s %s", |
| 631 String::Handle(function.name()).ToCString(), | 632 String::Handle(function.name()).ToCString(), |
| 632 reason); | 633 reason); |
| 633 UNREACHABLE(); | 634 UNREACHABLE(); |
| 634 } | 635 } |
| 635 | 636 |
| 636 | 637 |
| 637 void FlowGraphCompiler::EmitTrySync(Instruction* instr, intptr_t try_index) { | 638 void FlowGraphCompiler::EmitTrySync(Instruction* instr, intptr_t try_index) { |
| 638 ASSERT(is_optimizing()); | 639 ASSERT(is_optimizing()); |
| 639 Environment* env = instr->env()->Outermost(); | 640 Environment* env = instr->env()->Outermost(); |
| (...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1882 | 1883 |
| 1883 | 1884 |
| 1884 void FlowGraphCompiler::FrameStateClear() { | 1885 void FlowGraphCompiler::FrameStateClear() { |
| 1885 ASSERT(!is_optimizing()); | 1886 ASSERT(!is_optimizing()); |
| 1886 frame_state_.TruncateTo(0); | 1887 frame_state_.TruncateTo(0); |
| 1887 } | 1888 } |
| 1888 #endif | 1889 #endif |
| 1889 | 1890 |
| 1890 | 1891 |
| 1891 } // namespace dart | 1892 } // namespace dart |
| OLD | NEW |