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

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

Issue 1433243003: Background compilation work: (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: d Created 5 years, 1 month 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
« no previous file with comments | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/assembler_mips.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" // NOLINT 5 #include "vm/globals.h" // NOLINT
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
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/cpu.h" 10 #include "vm/cpu.h"
(...skipping 2552 matching lines...) Expand 10 before | Expand all | Expand 10 after
2563 }; 2563 };
2564 2564
2565 2565
2566 // XMM0 is used only as a scratch register in the optimized code. No need to 2566 // XMM0 is used only as a scratch register in the optimized code. No need to
2567 // save it. 2567 // save it.
2568 static const intptr_t kNumberOfVolatileXmmRegisters = 2568 static const intptr_t kNumberOfVolatileXmmRegisters =
2569 kNumberOfXmmRegisters - 1; 2569 kNumberOfXmmRegisters - 1;
2570 2570
2571 2571
2572 void Assembler::EnterCallRuntimeFrame(intptr_t frame_space) { 2572 void Assembler::EnterCallRuntimeFrame(intptr_t frame_space) {
2573 Comment("EnterCallRuntimeFrame");
2573 EnterFrame(0); 2574 EnterFrame(0);
2574 2575
2575 // Preserve volatile CPU registers. 2576 // Preserve volatile CPU registers.
2576 for (intptr_t i = 0; i < kNumberOfVolatileCpuRegisters; i++) { 2577 for (intptr_t i = 0; i < kNumberOfVolatileCpuRegisters; i++) {
2577 pushl(volatile_cpu_registers[i]); 2578 pushl(volatile_cpu_registers[i]);
2578 } 2579 }
2579 2580
2580 // Preserve all XMM registers except XMM0 2581 // Preserve all XMM registers except XMM0
2581 subl(ESP, Immediate((kNumberOfXmmRegisters - 1) * kFpuRegisterSize)); 2582 subl(ESP, Immediate((kNumberOfXmmRegisters - 1) * kFpuRegisterSize));
2582 // Store XMM registers with the lowest register number at the lowest 2583 // Store XMM registers with the lowest register number at the lowest
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
3211 3212
3212 const char* Assembler::FpuRegisterName(FpuRegister reg) { 3213 const char* Assembler::FpuRegisterName(FpuRegister reg) {
3213 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); 3214 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters));
3214 return xmm_reg_names[reg]; 3215 return xmm_reg_names[reg];
3215 } 3216 }
3216 3217
3217 3218
3218 } // namespace dart 3219 } // namespace dart
3219 3220
3220 #endif // defined TARGET_ARCH_IA32 3221 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/assembler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698