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

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 853703002: [x86] Avoid memory form of PUSH/CALL for ATOM. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove the CALL change to ia32 Created 5 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
« src/x64/assembler-x64.cc ('K') | « src/x64/assembler-x64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/division-by-constant.h" 10 #include "src/base/division-by-constant.h"
(...skipping 3043 matching lines...) Expand 10 before | Expand all | Expand 10 after
3054 #endif 3054 #endif
3055 LoadAddress(kScratchRegister, ext); 3055 LoadAddress(kScratchRegister, ext);
3056 call(kScratchRegister); 3056 call(kScratchRegister);
3057 #ifdef DEBUG 3057 #ifdef DEBUG
3058 CHECK_EQ(end_position, pc_offset()); 3058 CHECK_EQ(end_position, pc_offset());
3059 #endif 3059 #endif
3060 } 3060 }
3061 3061
3062 3062
3063 void MacroAssembler::Call(const Operand& op) { 3063 void MacroAssembler::Call(const Operand& op) {
3064 if (kPointerSize == kInt64Size) { 3064 if (kPointerSize == kInt64Size && !FLAG_intel_atom) {
3065 call(op); 3065 call(op);
3066 } else { 3066 } else {
3067 movp(kScratchRegister, op); 3067 movp(kScratchRegister, op);
3068 call(kScratchRegister); 3068 call(kScratchRegister);
3069 } 3069 }
3070 } 3070 }
3071 3071
3072 3072
3073 void MacroAssembler::Call(Address destination, RelocInfo::Mode rmode) { 3073 void MacroAssembler::Call(Address destination, RelocInfo::Mode rmode) {
3074 #ifdef DEBUG 3074 #ifdef DEBUG
(...skipping 2321 matching lines...) Expand 10 before | Expand all | Expand 10 after
5396 if (mag.shift > 0) sarl(rdx, Immediate(mag.shift)); 5396 if (mag.shift > 0) sarl(rdx, Immediate(mag.shift));
5397 movl(rax, dividend); 5397 movl(rax, dividend);
5398 shrl(rax, Immediate(31)); 5398 shrl(rax, Immediate(31));
5399 addl(rdx, rax); 5399 addl(rdx, rax);
5400 } 5400 }
5401 5401
5402 5402
5403 } } // namespace v8::internal 5403 } } // namespace v8::internal
5404 5404
5405 #endif // V8_TARGET_ARCH_X64 5405 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/x64/assembler-x64.cc ('K') | « src/x64/assembler-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698