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

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: rebase 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
« no previous file with comments | « 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 3050 matching lines...) Expand 10 before | Expand all | Expand 10 after
3061 #endif 3061 #endif
3062 LoadAddress(kScratchRegister, ext); 3062 LoadAddress(kScratchRegister, ext);
3063 call(kScratchRegister); 3063 call(kScratchRegister);
3064 #ifdef DEBUG 3064 #ifdef DEBUG
3065 CHECK_EQ(end_position, pc_offset()); 3065 CHECK_EQ(end_position, pc_offset());
3066 #endif 3066 #endif
3067 } 3067 }
3068 3068
3069 3069
3070 void MacroAssembler::Call(const Operand& op) { 3070 void MacroAssembler::Call(const Operand& op) {
3071 if (kPointerSize == kInt64Size) { 3071 if (kPointerSize == kInt64Size && !CpuFeatures::IsSupported(ATOM)) {
3072 call(op); 3072 call(op);
3073 } else { 3073 } else {
3074 movp(kScratchRegister, op); 3074 movp(kScratchRegister, op);
3075 call(kScratchRegister); 3075 call(kScratchRegister);
3076 } 3076 }
3077 } 3077 }
3078 3078
3079 3079
3080 void MacroAssembler::Call(Address destination, RelocInfo::Mode rmode) { 3080 void MacroAssembler::Call(Address destination, RelocInfo::Mode rmode) {
3081 #ifdef DEBUG 3081 #ifdef DEBUG
(...skipping 2321 matching lines...) Expand 10 before | Expand all | Expand 10 after
5403 if (mag.shift > 0) sarl(rdx, Immediate(mag.shift)); 5403 if (mag.shift > 0) sarl(rdx, Immediate(mag.shift));
5404 movl(rax, dividend); 5404 movl(rax, dividend);
5405 shrl(rax, Immediate(31)); 5405 shrl(rax, Immediate(31));
5406 addl(rdx, rax); 5406 addl(rdx, rax);
5407 } 5407 }
5408 5408
5409 5409
5410 } } // namespace v8::internal 5410 } } // namespace v8::internal
5411 5411
5412 #endif // V8_TARGET_ARCH_X64 5412 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698