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

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

Issue 12028002: Replace "enter" instruction with "push(ebp); mov(ebp, esp);" sequence. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/assembler_ia32.cc ('k') | no next file » | 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_X64) 6 #if defined(TARGET_ARCH_X64)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/heap.h" 9 #include "vm/heap.h"
10 #include "vm/memory_region.h" 10 #include "vm/memory_region.h"
(...skipping 1903 matching lines...) Expand 10 before | Expand all | Expand 10 after
1914 RAX, RCX, RDX, RSI, RDI, R8, R9, R10, R11 1914 RAX, RCX, RDX, RSI, RDI, R8, R9, R10, R11
1915 }; 1915 };
1916 1916
1917 // XMM0 is used only as a scratch register in the optimized code. No need to 1917 // XMM0 is used only as a scratch register in the optimized code. No need to
1918 // save it. 1918 // save it.
1919 static const intptr_t kNumberOfVolatileXmmRegisters = 1919 static const intptr_t kNumberOfVolatileXmmRegisters =
1920 kNumberOfXmmRegisters - 1; 1920 kNumberOfXmmRegisters - 1;
1921 1921
1922 1922
1923 void Assembler::EnterCallRuntimeFrame(intptr_t frame_space) { 1923 void Assembler::EnterCallRuntimeFrame(intptr_t frame_space) {
1924 enter(Immediate(0)); 1924 EnterFrame(0);
1925 1925
1926 // Preserve volatile CPU registers. 1926 // Preserve volatile CPU registers.
1927 for (intptr_t i = 0; i < kNumberOfVolatileCpuRegisters; i++) { 1927 for (intptr_t i = 0; i < kNumberOfVolatileCpuRegisters; i++) {
1928 pushq(volatile_cpu_registers[i]); 1928 pushq(volatile_cpu_registers[i]);
1929 } 1929 }
1930 1930
1931 // Preserve all XMM registers except XMM0 1931 // Preserve all XMM registers except XMM0
1932 subq(RSP, Immediate((kNumberOfXmmRegisters - 1) * kDoubleSize)); 1932 subq(RSP, Immediate((kNumberOfXmmRegisters - 1) * kDoubleSize));
1933 // Store XMM registers with the lowest register number at the lowest 1933 // Store XMM registers with the lowest register number at the lowest
1934 // address. 1934 // address.
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
2190 2190
2191 const char* Assembler::XmmRegisterName(XmmRegister reg) { 2191 const char* Assembler::XmmRegisterName(XmmRegister reg) {
2192 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); 2192 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters));
2193 return xmm_reg_names[reg]; 2193 return xmm_reg_names[reg];
2194 } 2194 }
2195 2195
2196 2196
2197 } // namespace dart 2197 } // namespace dart
2198 2198
2199 #endif // defined TARGET_ARCH_X64 2199 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698