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

Side by Side Diff: src/compiler/arm/code-generator-arm.cc

Issue 2416543002: [wasm] Fix bounds check for zero initial memory. (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/arm/macro-assembler-arm.h" 7 #include "src/arm/macro-assembler-arm.h"
8 #include "src/compilation-info.h" 8 #include "src/compilation-info.h"
9 #include "src/compiler/code-generator-impl.h" 9 #include "src/compiler/code-generator-impl.h"
10 #include "src/compiler/gap-resolver.h" 10 #include "src/compiler/gap-resolver.h"
(...skipping 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after
1809 } 1809 }
1810 } else if (source->IsConstant()) { 1810 } else if (source->IsConstant()) {
1811 Constant src = g.ToConstant(source); 1811 Constant src = g.ToConstant(source);
1812 if (destination->IsRegister() || destination->IsStackSlot()) { 1812 if (destination->IsRegister() || destination->IsStackSlot()) {
1813 Register dst = 1813 Register dst =
1814 destination->IsRegister() ? g.ToRegister(destination) : kScratchReg; 1814 destination->IsRegister() ? g.ToRegister(destination) : kScratchReg;
1815 switch (src.type()) { 1815 switch (src.type()) {
1816 case Constant::kInt32: 1816 case Constant::kInt32:
1817 if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE || 1817 if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE ||
1818 src.rmode() == RelocInfo::WASM_GLOBAL_REFERENCE || 1818 src.rmode() == RelocInfo::WASM_GLOBAL_REFERENCE ||
1819 src.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) { 1819 RelocInfo::IsWasmMemorySizeReference(src.rmode())) {
1820 __ mov(dst, Operand(src.ToInt32(), src.rmode())); 1820 __ mov(dst, Operand(src.ToInt32(), src.rmode()));
1821 } else { 1821 } else {
1822 __ mov(dst, Operand(src.ToInt32())); 1822 __ mov(dst, Operand(src.ToInt32()));
1823 } 1823 }
1824 break; 1824 break;
1825 case Constant::kInt64: 1825 case Constant::kInt64:
1826 UNREACHABLE(); 1826 UNREACHABLE();
1827 break; 1827 break;
1828 case Constant::kFloat32: 1828 case Constant::kFloat32:
1829 __ Move(dst, 1829 __ Move(dst,
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1985 padding_size -= v8::internal::Assembler::kInstrSize; 1985 padding_size -= v8::internal::Assembler::kInstrSize;
1986 } 1986 }
1987 } 1987 }
1988 } 1988 }
1989 1989
1990 #undef __ 1990 #undef __
1991 1991
1992 } // namespace compiler 1992 } // namespace compiler
1993 } // namespace internal 1993 } // namespace internal
1994 } // namespace v8 1994 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698