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 "vm/ast_printer.h" | 10 #include "vm/ast_printer.h" |
11 #include "vm/compiler.h" | 11 #include "vm/compiler.h" |
12 #include "vm/dart_entry.h" | 12 #include "vm/dart_entry.h" |
13 #include "vm/deopt_instructions.h" | 13 #include "vm/deopt_instructions.h" |
14 #include "vm/il_printer.h" | 14 #include "vm/il_printer.h" |
15 #include "vm/instructions.h" | 15 #include "vm/instructions.h" |
16 #include "vm/locations.h" | 16 #include "vm/locations.h" |
17 #include "vm/object_store.h" | 17 #include "vm/object_store.h" |
18 #include "vm/parser.h" | 18 #include "vm/parser.h" |
19 #include "vm/stack_frame.h" | 19 #include "vm/stack_frame.h" |
20 #include "vm/stub_code.h" | 20 #include "vm/stub_code.h" |
21 #include "vm/symbols.h" | 21 #include "vm/symbols.h" |
22 | 22 |
23 namespace dart { | 23 namespace dart { |
24 | 24 |
25 DEFINE_FLAG(bool, trap_on_deoptimization, false, "Trap on deoptimization."); | 25 DEFINE_FLAG(bool, trap_on_deoptimization, false, "Trap on deoptimization."); |
26 | 26 |
27 | 27 |
28 void MegamorphicSlowPath::EmitNativeCode(FlowGraphCompiler* compiler) { | |
29 Assembler* assembler = compiler->assembler(); | |
30 #define __ assembler-> | |
31 __ Bind(entry_label()); | |
32 __ Comment("MegamorphicSlowPath"); | |
33 compiler->EmitMegamorphicInstanceCall(ic_data_, argument_count_, deopt_id_, | |
34 token_pos_, locs_, try_index_); | |
35 __ b(exit_label()); | |
36 #undef __ | |
37 } | |
38 | |
39 | |
40 FlowGraphCompiler::~FlowGraphCompiler() { | 28 FlowGraphCompiler::~FlowGraphCompiler() { |
41 // BlockInfos are zone-allocated, so their destructors are not called. | 29 // BlockInfos are zone-allocated, so their destructors are not called. |
42 // Verify the labels explicitly here. | 30 // Verify the labels explicitly here. |
43 for (int i = 0; i < block_info_.length(); ++i) { | 31 for (int i = 0; i < block_info_.length(); ++i) { |
44 ASSERT(!block_info_[i]->jump_label()->IsLinked()); | 32 ASSERT(!block_info_[i]->jump_label()->IsLinked()); |
45 } | 33 } |
46 } | 34 } |
47 | 35 |
48 | 36 |
49 bool FlowGraphCompiler::SupportsUnboxedDoubles() { | 37 bool FlowGraphCompiler::SupportsUnboxedDoubles() { |
(...skipping 1907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1957 __ AddImmediate(SP, kDoubleSize); | 1945 __ AddImmediate(SP, kDoubleSize); |
1958 } | 1946 } |
1959 | 1947 |
1960 | 1948 |
1961 #undef __ | 1949 #undef __ |
1962 | 1950 |
1963 | 1951 |
1964 } // namespace dart | 1952 } // namespace dart |
1965 | 1953 |
1966 #endif // defined TARGET_ARCH_MIPS | 1954 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |