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

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

Issue 1759873002: Assembler changes for enabling GrowHeap in Wasm (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compile Created 4 years, 9 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/macro-assembler-x64.h ('k') | test/cctest/cctest.gyp » ('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 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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/base/division-by-constant.h" 8 #include "src/base/division-by-constant.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 xorl(dst, dst); 1107 xorl(dst, dst);
1108 } else if (is_uint32(x)) { 1108 } else if (is_uint32(x)) {
1109 movl(dst, Immediate(static_cast<uint32_t>(x))); 1109 movl(dst, Immediate(static_cast<uint32_t>(x)));
1110 } else if (is_int32(x)) { 1110 } else if (is_int32(x)) {
1111 movq(dst, Immediate(static_cast<int32_t>(x))); 1111 movq(dst, Immediate(static_cast<int32_t>(x)));
1112 } else { 1112 } else {
1113 movq(dst, x); 1113 movq(dst, x);
1114 } 1114 }
1115 } 1115 }
1116 1116
1117 void MacroAssembler::Set(Register dst, int64_t x, RelocInfo::Mode rmode) {
1118 if (rmode == RelocInfo::WASM_MEMORY_REFERENCE) {
1119 DCHECK(x != 0);
1120 movq(dst, x, rmode);
1121 } else {
1122 DCHECK(RelocInfo::IsNone(rmode));
1123 }
1124 }
1117 1125
1118 void MacroAssembler::Set(const Operand& dst, intptr_t x) { 1126 void MacroAssembler::Set(const Operand& dst, intptr_t x) {
1119 if (kPointerSize == kInt64Size) { 1127 if (kPointerSize == kInt64Size) {
1120 if (is_int32(x)) { 1128 if (is_int32(x)) {
1121 movp(dst, Immediate(static_cast<int32_t>(x))); 1129 movp(dst, Immediate(static_cast<int32_t>(x)));
1122 } else { 1130 } else {
1123 Set(kScratchRegister, x); 1131 Set(kScratchRegister, x);
1124 movp(dst, kScratchRegister); 1132 movp(dst, kScratchRegister);
1125 } 1133 }
1126 } else { 1134 } else {
(...skipping 4537 matching lines...) Expand 10 before | Expand all | Expand 10 after
5664 movl(rax, dividend); 5672 movl(rax, dividend);
5665 shrl(rax, Immediate(31)); 5673 shrl(rax, Immediate(31));
5666 addl(rdx, rax); 5674 addl(rdx, rax);
5667 } 5675 }
5668 5676
5669 5677
5670 } // namespace internal 5678 } // namespace internal
5671 } // namespace v8 5679 } // namespace v8
5672 5680
5673 #endif // V8_TARGET_ARCH_X64 5681 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | test/cctest/cctest.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698