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

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

Issue 1119013003: Add --noopt flag that sets all kind of flags to make unoptimzied code as fast as possible (and not … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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_arm.cc ('k') | runtime/vm/flow_graph_compiler_ia32.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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_ARM64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
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 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after
1306 __ add(TMP, R2, Operand(R3, LSL, 3)); 1306 __ add(TMP, R2, Operand(R3, LSL, 3));
1307 __ LoadFieldFromOffset(R0, TMP, base + kWordSize, PP); 1307 __ LoadFieldFromOffset(R0, TMP, base + kWordSize, PP);
1308 __ LoadFieldFromOffset(R1, R0, Function::instructions_offset(), PP); 1308 __ LoadFieldFromOffset(R1, R0, Function::instructions_offset(), PP);
1309 __ LoadObject(R5, ic_data, PP); 1309 __ LoadObject(R5, ic_data, PP);
1310 __ LoadObject(R4, arguments_descriptor, PP); 1310 __ LoadObject(R4, arguments_descriptor, PP);
1311 __ AddImmediate(R1, R1, Instructions::HeaderSize() - kHeapObjectTag, PP); 1311 __ AddImmediate(R1, R1, Instructions::HeaderSize() - kHeapObjectTag, PP);
1312 __ blr(R1); 1312 __ blr(R1);
1313 AddCurrentDescriptor(RawPcDescriptors::kOther, 1313 AddCurrentDescriptor(RawPcDescriptors::kOther,
1314 Isolate::kNoDeoptId, token_pos); 1314 Isolate::kNoDeoptId, token_pos);
1315 RecordSafepoint(locs); 1315 RecordSafepoint(locs);
1316 AddDeoptIndexAtCall(Isolate::ToDeoptAfter(deopt_id), token_pos); 1316 const intptr_t deopt_id_after = Isolate::ToDeoptAfter(deopt_id);
1317 if (is_optimizing()) {
1318 AddDeoptIndexAtCall(deopt_id_after, token_pos);
1319 } else {
1320 // Add deoptimization continuation point after the call and before the
1321 // arguments are removed.
1322 AddCurrentDescriptor(RawPcDescriptors::kDeopt, deopt_id_after, token_pos);
1323 }
1317 __ Drop(argument_count); 1324 __ Drop(argument_count);
1318 } 1325 }
1319 1326
1320 1327
1321 void FlowGraphCompiler::EmitUnoptimizedStaticCall( 1328 void FlowGraphCompiler::EmitUnoptimizedStaticCall(
1322 intptr_t argument_count, 1329 intptr_t argument_count,
1323 intptr_t deopt_id, 1330 intptr_t deopt_id,
1324 intptr_t token_pos, 1331 intptr_t token_pos,
1325 LocationSummary* locs, 1332 LocationSummary* locs,
1326 const ICData& ic_data) { 1333 const ICData& ic_data) {
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
1822 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { 1829 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) {
1823 __ PopDouble(reg); 1830 __ PopDouble(reg);
1824 } 1831 }
1825 1832
1826 1833
1827 #undef __ 1834 #undef __
1828 1835
1829 } // namespace dart 1836 } // namespace dart
1830 1837
1831 #endif // defined TARGET_ARCH_ARM64 1838 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm.cc ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698