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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 ASSERT(!temp.IsNull()); | 637 ASSERT(!temp.IsNull()); |
638 THR_Print("% " Pd " start: 0x%" Px " ", i, temp.Value()); | 638 THR_Print("% " Pd " start: 0x%" Px " ", i, temp.Value()); |
639 temp ^= inlined_code_intervals_.At(i + Code::kInlIntInliningId); | 639 temp ^= inlined_code_intervals_.At(i + Code::kInlIntInliningId); |
640 THR_Print("iid: %" Pd " ", temp.Value()); | 640 THR_Print("iid: %" Pd " ", temp.Value()); |
641 } | 641 } |
642 } | 642 } |
643 } | 643 } |
644 | 644 |
645 | 645 |
646 void FlowGraphCompiler::Bailout(const char* reason) { | 646 void FlowGraphCompiler::Bailout(const char* reason) { |
647 const Function& function = parsed_function_.function(); | 647 parsed_function_.Bailout("FlowGraphCompiler", reason); |
648 Report::MessageF(Report::kBailout, | |
649 Script::Handle(function.script()), | |
650 function.token_pos(), | |
651 Report::AtLocation, | |
652 "FlowGraphCompiler Bailout: %s %s", | |
653 String::Handle(function.name()).ToCString(), | |
654 reason); | |
655 UNREACHABLE(); | |
656 } | 648 } |
657 | 649 |
658 | 650 |
659 void FlowGraphCompiler::EmitTrySync(Instruction* instr, intptr_t try_index) { | 651 void FlowGraphCompiler::EmitTrySync(Instruction* instr, intptr_t try_index) { |
660 ASSERT(is_optimizing()); | 652 ASSERT(is_optimizing()); |
661 Environment* env = instr->env()->Outermost(); | 653 Environment* env = instr->env()->Outermost(); |
662 CatchBlockEntryInstr* catch_block = | 654 CatchBlockEntryInstr* catch_block = |
663 flow_graph().graph_entry()->GetCatchEntry(try_index); | 655 flow_graph().graph_entry()->GetCatchEntry(try_index); |
664 const GrowableArray<Definition*>* idefs = catch_block->initial_definitions(); | 656 const GrowableArray<Definition*>* idefs = catch_block->initial_definitions(); |
665 | 657 |
(...skipping 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1990 | 1982 |
1991 | 1983 |
1992 void FlowGraphCompiler::FrameStateClear() { | 1984 void FlowGraphCompiler::FrameStateClear() { |
1993 ASSERT(!is_optimizing()); | 1985 ASSERT(!is_optimizing()); |
1994 frame_state_.TruncateTo(0); | 1986 frame_state_.TruncateTo(0); |
1995 } | 1987 } |
1996 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) | 1988 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) |
1997 | 1989 |
1998 | 1990 |
1999 } // namespace dart | 1991 } // namespace dart |
OLD | NEW |