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

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

Issue 517343002: Ensure that BoxInt32 input is correctly preserved on the slow-path. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.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_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"
(...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 } else { 1444 } else {
1445 __ slt(CMPRES1, left, right); 1445 __ slt(CMPRES1, left, right);
1446 __ slt(CMPRES2, right, left); 1446 __ slt(CMPRES2, right, left);
1447 } 1447 }
1448 } 1448 }
1449 1449
1450 1450
1451 // This function must be in sync with FlowGraphCompiler::RecordSafepoint and 1451 // This function must be in sync with FlowGraphCompiler::RecordSafepoint and
1452 // FlowGraphCompiler::SlowPathEnvironmentFor. 1452 // FlowGraphCompiler::SlowPathEnvironmentFor.
1453 void FlowGraphCompiler::SaveLiveRegisters(LocationSummary* locs) { 1453 void FlowGraphCompiler::SaveLiveRegisters(LocationSummary* locs) {
1454 #if defined(DEBUG)
1455 locs->CheckWritableInputs();
1456 #endif
1457
1454 __ TraceSimMsg("SaveLiveRegisters"); 1458 __ TraceSimMsg("SaveLiveRegisters");
1455 // TODO(vegorov): consider saving only caller save (volatile) registers. 1459 // TODO(vegorov): consider saving only caller save (volatile) registers.
1456 const intptr_t fpu_regs_count= locs->live_registers()->FpuRegisterCount(); 1460 const intptr_t fpu_regs_count= locs->live_registers()->FpuRegisterCount();
1457 if (fpu_regs_count > 0) { 1461 if (fpu_regs_count > 0) {
1458 __ AddImmediate(SP, -(fpu_regs_count * kFpuRegisterSize)); 1462 __ AddImmediate(SP, -(fpu_regs_count * kFpuRegisterSize));
1459 // Store fpu registers with the lowest register number at the lowest 1463 // Store fpu registers with the lowest register number at the lowest
1460 // address. 1464 // address.
1461 intptr_t offset = 0; 1465 intptr_t offset = 0;
1462 for (intptr_t reg_idx = 0; reg_idx < kNumberOfFpuRegisters; ++reg_idx) { 1466 for (intptr_t reg_idx = 0; reg_idx < kNumberOfFpuRegisters; ++reg_idx) {
1463 DRegister fpu_reg = static_cast<DRegister>(reg_idx); 1467 DRegister fpu_reg = static_cast<DRegister>(reg_idx);
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
1805 __ AddImmediate(SP, kDoubleSize); 1809 __ AddImmediate(SP, kDoubleSize);
1806 } 1810 }
1807 1811
1808 1812
1809 #undef __ 1813 #undef __
1810 1814
1811 1815
1812 } // namespace dart 1816 } // namespace dart
1813 1817
1814 #endif // defined TARGET_ARCH_MIPS 1818 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698