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

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

Issue 2061833003: [wasm] Support for memory size relocation for asm-wasm. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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/compiler/x64/code-generator-x64.cc ('k') | test/cctest/wasm/test-run-wasm-asmjs.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 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_IA32 5 #if V8_TARGET_ARCH_IA32
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 2661 matching lines...) Expand 10 before | Expand all | Expand 10 after
2672 2672
2673 2673
2674 void MacroAssembler::Move(Register dst, Register src) { 2674 void MacroAssembler::Move(Register dst, Register src) {
2675 if (!dst.is(src)) { 2675 if (!dst.is(src)) {
2676 mov(dst, src); 2676 mov(dst, src);
2677 } 2677 }
2678 } 2678 }
2679 2679
2680 2680
2681 void MacroAssembler::Move(Register dst, const Immediate& x) { 2681 void MacroAssembler::Move(Register dst, const Immediate& x) {
2682 if (x.is_zero()) { 2682 if (x.is_zero() && RelocInfo::IsNone(x.rmode_)) {
2683 xor_(dst, dst); // Shorter than mov of 32-bit immediate 0. 2683 xor_(dst, dst); // Shorter than mov of 32-bit immediate 0.
2684 } else { 2684 } else {
2685 mov(dst, x); 2685 mov(dst, x);
2686 } 2686 }
2687 } 2687 }
2688 2688
2689 2689
2690 void MacroAssembler::Move(const Operand& dst, const Immediate& x) { 2690 void MacroAssembler::Move(const Operand& dst, const Immediate& x) {
2691 mov(dst, x); 2691 mov(dst, x);
2692 } 2692 }
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
3456 mov(eax, dividend); 3456 mov(eax, dividend);
3457 shr(eax, 31); 3457 shr(eax, 31);
3458 add(edx, eax); 3458 add(edx, eax);
3459 } 3459 }
3460 3460
3461 3461
3462 } // namespace internal 3462 } // namespace internal
3463 } // namespace v8 3463 } // namespace v8
3464 3464
3465 #endif // V8_TARGET_ARCH_IA32 3465 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/compiler/x64/code-generator-x64.cc ('k') | test/cctest/wasm/test-run-wasm-asmjs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698