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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
7 | 7 |
8 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
9 | 9 |
10 #include "lib/error.h" | 10 #include "lib/error.h" |
11 #include "vm/ast_printer.h" | 11 #include "vm/ast_printer.h" |
12 #include "vm/dart_entry.h" | 12 #include "vm/dart_entry.h" |
| 13 #include "vm/deopt_instructions.h" |
13 #include "vm/il_printer.h" | 14 #include "vm/il_printer.h" |
14 #include "vm/locations.h" | 15 #include "vm/locations.h" |
15 #include "vm/object_store.h" | 16 #include "vm/object_store.h" |
16 #include "vm/parser.h" | 17 #include "vm/parser.h" |
17 #include "vm/stack_frame.h" | 18 #include "vm/stack_frame.h" |
18 #include "vm/stub_code.h" | 19 #include "vm/stub_code.h" |
19 #include "vm/symbols.h" | 20 #include "vm/symbols.h" |
20 | 21 |
21 namespace dart { | 22 namespace dart { |
22 | 23 |
(...skipping 12 matching lines...) Expand all Loading... |
35 ASSERT(!block_info_[i]->jump_label()->IsLinked()); | 36 ASSERT(!block_info_[i]->jump_label()->IsLinked()); |
36 } | 37 } |
37 } | 38 } |
38 | 39 |
39 | 40 |
40 bool FlowGraphCompiler::SupportsUnboxedMints() { | 41 bool FlowGraphCompiler::SupportsUnboxedMints() { |
41 return false; | 42 return false; |
42 } | 43 } |
43 | 44 |
44 | 45 |
| 46 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, |
| 47 DeoptInfoBuilder* builder) { |
| 48 UNIMPLEMENTED(); // TODO(regis): Copy ARM version. |
| 49 return NULL; |
| 50 } |
| 51 |
| 52 |
45 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler, | 53 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler, |
46 intptr_t stub_ix) { | 54 intptr_t stub_ix) { |
47 // Calls do not need stubs, they share a deoptimization trampoline. | 55 // Calls do not need stubs, they share a deoptimization trampoline. |
48 ASSERT(reason() != kDeoptAtCall); | 56 ASSERT(reason() != kDeoptAtCall); |
49 Assembler* assem = compiler->assembler(); | 57 Assembler* assem = compiler->assembler(); |
50 #define __ assem-> | 58 #define __ assem-> |
51 __ Comment("Deopt stub for id %"Pd"", deopt_id()); | 59 __ Comment("Deopt stub for id %"Pd"", deopt_id()); |
52 __ Bind(entry_label()); | 60 __ Bind(entry_label()); |
53 if (FLAG_trap_on_deoptimization) __ break_(0); | 61 if (FLAG_trap_on_deoptimization) __ break_(0); |
54 | 62 |
(...skipping 1515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1570 __ AddImmediate(SP, kDoubleSize); | 1578 __ AddImmediate(SP, kDoubleSize); |
1571 } | 1579 } |
1572 | 1580 |
1573 | 1581 |
1574 #undef __ | 1582 #undef __ |
1575 | 1583 |
1576 | 1584 |
1577 } // namespace dart | 1585 } // namespace dart |
1578 | 1586 |
1579 #endif // defined TARGET_ARCH_MIPS | 1587 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |