Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(510)

Side by Side Diff: runtime/vm/flow_graph_compiler_x64.cc

Issue 263243002: Enables many language tests for arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph_compiler_mips.cc ('k') | runtime/vm/intermediate_language_arm64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 52
53 bool FlowGraphCompiler::SupportsSinCos() { 53 bool FlowGraphCompiler::SupportsSinCos() {
54 return true; 54 return true;
55 } 55 }
56 56
57 57
58 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, 58 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler,
59 DeoptInfoBuilder* builder, 59 DeoptInfoBuilder* builder,
60 const Array& deopt_table) { 60 const Array& deopt_table) {
61 if (deopt_env_ == NULL) return DeoptInfo::null(); 61 if (deopt_env_ == NULL) {
62 return DeoptInfo::null();
63 }
62 64
63 intptr_t stack_height = compiler->StackSize(); 65 intptr_t stack_height = compiler->StackSize();
64 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); 66 AllocateIncomingParametersRecursive(deopt_env_, &stack_height);
65 67
66 intptr_t slot_ix = 0; 68 intptr_t slot_ix = 0;
67 Environment* current = deopt_env_; 69 Environment* current = deopt_env_;
68 70
69 // Emit all kMaterializeObject instructions describing objects to be 71 // Emit all kMaterializeObject instructions describing objects to be
70 // materialized on the deoptimization as a prefix to the deoptimization info. 72 // materialized on the deoptimization as a prefix to the deoptimization info.
71 EmitMaterializations(deopt_env_, builder); 73 EmitMaterializations(deopt_env_, builder);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 150
149 151
150 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler, 152 void CompilerDeoptInfoWithStub::GenerateCode(FlowGraphCompiler* compiler,
151 intptr_t stub_ix) { 153 intptr_t stub_ix) {
152 // Calls do not need stubs, they share a deoptimization trampoline. 154 // Calls do not need stubs, they share a deoptimization trampoline.
153 ASSERT(reason() != ICData::kDeoptAtCall); 155 ASSERT(reason() != ICData::kDeoptAtCall);
154 Assembler* assem = compiler->assembler(); 156 Assembler* assem = compiler->assembler();
155 #define __ assem-> 157 #define __ assem->
156 __ Comment("Deopt stub for id %" Pd "", deopt_id()); 158 __ Comment("Deopt stub for id %" Pd "", deopt_id());
157 __ Bind(entry_label()); 159 __ Bind(entry_label());
158 if (FLAG_trap_on_deoptimization) __ int3(); 160 if (FLAG_trap_on_deoptimization) {
161 __ int3();
162 }
159 163
160 ASSERT(deopt_env() != NULL); 164 ASSERT(deopt_env() != NULL);
161 165
162 __ Call(&StubCode::DeoptimizeLabel(), PP); 166 __ Call(&StubCode::DeoptimizeLabel(), PP);
163 set_pc_offset(assem->CodeSize()); 167 set_pc_offset(assem->CodeSize());
164 __ int3(); 168 __ int3();
165 #undef __ 169 #undef __
166 } 170 }
167 171
168 172
(...skipping 1659 matching lines...) Expand 10 before | Expand all | Expand 10 after
1828 __ movups(reg, Address(RSP, 0)); 1832 __ movups(reg, Address(RSP, 0));
1829 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); 1833 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP);
1830 } 1834 }
1831 1835
1832 1836
1833 #undef __ 1837 #undef __
1834 1838
1835 } // namespace dart 1839 } // namespace dart
1836 1840
1837 #endif // defined TARGET_ARCH_X64 1841 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_mips.cc ('k') | runtime/vm/intermediate_language_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698