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_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
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" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "vm/symbols.h" | 24 #include "vm/symbols.h" |
25 | 25 |
26 namespace dart { | 26 namespace dart { |
27 | 27 |
28 DEFINE_FLAG(bool, trap_on_deoptimization, false, "Trap on deoptimization."); | 28 DEFINE_FLAG(bool, trap_on_deoptimization, false, "Trap on deoptimization."); |
29 DEFINE_FLAG(bool, unbox_mints, true, "Optimize 64-bit integer arithmetic."); | 29 DEFINE_FLAG(bool, unbox_mints, true, "Optimize 64-bit integer arithmetic."); |
30 | 30 |
31 DECLARE_FLAG(bool, enable_simd_inline); | 31 DECLARE_FLAG(bool, enable_simd_inline); |
32 | 32 |
33 | 33 |
34 void MegamorphicSlowPath::EmitNativeCode(FlowGraphCompiler* compiler) { | |
35 Assembler* assembler = compiler->assembler(); | |
36 #define __ assembler-> | |
37 __ Bind(entry_label()); | |
38 __ Comment("MegamorphicSlowPath"); | |
39 compiler->EmitMegamorphicInstanceCall(ic_data_, argument_count_, deopt_id_, | |
40 token_pos_, locs_, try_index_); | |
41 __ jmp(exit_label()); | |
42 #undef __ | |
43 } | |
44 | |
45 | |
46 FlowGraphCompiler::~FlowGraphCompiler() { | 34 FlowGraphCompiler::~FlowGraphCompiler() { |
47 // BlockInfos are zone-allocated, so their destructors are not called. | 35 // BlockInfos are zone-allocated, so their destructors are not called. |
48 // Verify the labels explicitly here. | 36 // Verify the labels explicitly here. |
49 for (int i = 0; i < block_info_.length(); ++i) { | 37 for (int i = 0; i < block_info_.length(); ++i) { |
50 ASSERT(!block_info_[i]->jump_label()->IsLinked()); | 38 ASSERT(!block_info_[i]->jump_label()->IsLinked()); |
51 ASSERT(!block_info_[i]->jump_label()->HasNear()); | 39 ASSERT(!block_info_[i]->jump_label()->HasNear()); |
52 } | 40 } |
53 } | 41 } |
54 | 42 |
55 | 43 |
(...skipping 1806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1862 __ movups(reg, Address(ESP, 0)); | 1850 __ movups(reg, Address(ESP, 0)); |
1863 __ addl(ESP, Immediate(kFpuRegisterSize)); | 1851 __ addl(ESP, Immediate(kFpuRegisterSize)); |
1864 } | 1852 } |
1865 | 1853 |
1866 | 1854 |
1867 #undef __ | 1855 #undef __ |
1868 | 1856 |
1869 } // namespace dart | 1857 } // namespace dart |
1870 | 1858 |
1871 #endif // defined TARGET_ARCH_IA32 | 1859 #endif // defined TARGET_ARCH_IA32 |
OLD | NEW |