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

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

Issue 19806005: Increases the number of ARM floating-point registers. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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
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" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 kFirstLocalSlotFromFp + 1 - (kNumberOfCpuRegisters - R0); 345 kFirstLocalSlotFromFp + 1 - (kNumberOfCpuRegisters - R0);
346 // Result in R0 is preserved as part of pushing all registers below. 346 // Result in R0 is preserved as part of pushing all registers below.
347 347
348 // TODO(regis): Should we align the stack before pushing the fpu registers? 348 // TODO(regis): Should we align the stack before pushing the fpu registers?
349 // If we do, saved_r0_offset_from_fp is not constant anymore. 349 // If we do, saved_r0_offset_from_fp is not constant anymore.
350 350
351 // Push registers in their enumeration order: lowest register number at 351 // Push registers in their enumeration order: lowest register number at
352 // lowest address. 352 // lowest address.
353 __ PushList(kAllCpuRegistersList); 353 __ PushList(kAllCpuRegistersList);
354 ASSERT(kFpuRegisterSize == 4 * kWordSize); 354 ASSERT(kFpuRegisterSize == 4 * kWordSize);
355 __ vstmd(DB_W, SP, D0, static_cast<DRegister>(kNumberOfDRegisters - 1)); 355 if (kNumberOfDRegisters > 16) {
356 ASSERT(kNumberOfDRegisters <= 32);
357 __ vstmd(DB_W, SP, D16, static_cast<DRegister>(kNumberOfDRegisters - 1));
358 __ vstmd(DB_W, SP, D0, D15);
359 } else {
360 __ vstmd(DB_W, SP, D0, static_cast<DRegister>(kNumberOfDRegisters - 1));
361 }
356 362
357 __ mov(R0, ShifterOperand(SP)); // Pass address of saved registers block. 363 __ mov(R0, ShifterOperand(SP)); // Pass address of saved registers block.
358 __ ReserveAlignedFrameSpace(0); 364 __ ReserveAlignedFrameSpace(0);
359 __ CallRuntime(kDeoptimizeCopyFrameRuntimeEntry); 365 __ CallRuntime(kDeoptimizeCopyFrameRuntimeEntry);
360 // Result (R0) is stack-size (FP - SP) in bytes. 366 // Result (R0) is stack-size (FP - SP) in bytes.
361 367
362 if (preserve_result) { 368 if (preserve_result) {
363 // Restore result into R1 temporarily. 369 // Restore result into R1 temporarily.
364 __ ldr(R1, Address(FP, saved_result_slot_from_fp * kWordSize)); 370 __ ldr(R1, Address(FP, saved_result_slot_from_fp * kWordSize));
365 } 371 }
(...skipping 1732 matching lines...) Expand 10 before | Expand all | Expand 10 after
2098 __ ldr(left, Address(SP, 4 * kWordSize)); 2104 __ ldr(left, Address(SP, 4 * kWordSize));
2099 __ ldr(right, Address(SP, 3 * kWordSize)); 2105 __ ldr(right, Address(SP, 3 * kWordSize));
2100 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp); 2106 GenerateIdenticalWithNumberCheckStub(assembler, left, right, temp);
2101 __ PopList((1 << R0) | (1 << R1) | (1 << R2)); 2107 __ PopList((1 << R0) | (1 << R1) | (1 << R2));
2102 __ Ret(); 2108 __ Ret();
2103 } 2109 }
2104 2110
2105 } // namespace dart 2111 } // namespace dart
2106 2112
2107 #endif // defined TARGET_ARCH_ARM 2113 #endif // defined TARGET_ARCH_ARM
OLDNEW
« runtime/vm/intermediate_language_arm.cc ('K') | « runtime/vm/simulator_arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698