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

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

Issue 2627543003: [wasm] Prerequisites for WebAssembly Table.Grow (Closed)
Patch Set: Rename update function Created 3 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/compiler/ia32/code-generator-ia32.cc ('k') | src/compiler/mips64/code-generator-mips64.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 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 #include "src/compilation-info.h" 6 #include "src/compilation-info.h"
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 2066 matching lines...) Expand 10 before | Expand all | Expand 10 after
2077 __ lw(temp, src); 2077 __ lw(temp, src);
2078 __ sw(temp, g.ToMemOperand(destination)); 2078 __ sw(temp, g.ToMemOperand(destination));
2079 } 2079 }
2080 } else if (source->IsConstant()) { 2080 } else if (source->IsConstant()) {
2081 Constant src = g.ToConstant(source); 2081 Constant src = g.ToConstant(source);
2082 if (destination->IsRegister() || destination->IsStackSlot()) { 2082 if (destination->IsRegister() || destination->IsStackSlot()) {
2083 Register dst = 2083 Register dst =
2084 destination->IsRegister() ? g.ToRegister(destination) : kScratchReg; 2084 destination->IsRegister() ? g.ToRegister(destination) : kScratchReg;
2085 switch (src.type()) { 2085 switch (src.type()) {
2086 case Constant::kInt32: 2086 case Constant::kInt32:
2087 if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE || 2087 if (RelocInfo::IsWasmReference(src.rmode())) {
2088 src.rmode() == RelocInfo::WASM_GLOBAL_REFERENCE ||
2089 src.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) {
2090 __ li(dst, Operand(src.ToInt32(), src.rmode())); 2088 __ li(dst, Operand(src.ToInt32(), src.rmode()));
2091 } else { 2089 } else {
2092 __ li(dst, Operand(src.ToInt32())); 2090 __ li(dst, Operand(src.ToInt32()));
2093 } 2091 }
2094 break; 2092 break;
2095 case Constant::kFloat32: 2093 case Constant::kFloat32:
2096 __ li(dst, isolate()->factory()->NewNumber(src.ToFloat32(), TENURED)); 2094 __ li(dst, isolate()->factory()->NewNumber(src.ToFloat32(), TENURED));
2097 break; 2095 break;
2098 case Constant::kInt64: 2096 case Constant::kInt64:
2099 UNREACHABLE(); 2097 UNREACHABLE();
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
2308 padding_size -= v8::internal::Assembler::kInstrSize; 2306 padding_size -= v8::internal::Assembler::kInstrSize;
2309 } 2307 }
2310 } 2308 }
2311 } 2309 }
2312 2310
2313 #undef __ 2311 #undef __
2314 2312
2315 } // namespace compiler 2313 } // namespace compiler
2316 } // namespace internal 2314 } // namespace internal
2317 } // namespace v8 2315 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ia32/code-generator-ia32.cc ('k') | src/compiler/mips64/code-generator-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698