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

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

Issue 2062003002: [wasm] Relocatable Globals (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: {float|double}_t -> {float|double} 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/arm64/code-generator-arm64.cc ('k') | src/compiler/mips/code-generator-mips.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 Operand HighOperand(InstructionOperand* op) { 61 Operand HighOperand(InstructionOperand* op) {
62 DCHECK(op->IsFPStackSlot()); 62 DCHECK(op->IsFPStackSlot());
63 return ToOperand(op, kPointerSize); 63 return ToOperand(op, kPointerSize);
64 } 64 }
65 65
66 Immediate ToImmediate(InstructionOperand* operand) { 66 Immediate ToImmediate(InstructionOperand* operand) {
67 Constant constant = ToConstant(operand); 67 Constant constant = ToConstant(operand);
68 if (constant.type() == Constant::kInt32 && 68 if (constant.type() == Constant::kInt32 &&
69 (constant.rmode() == RelocInfo::WASM_MEMORY_REFERENCE || 69 (constant.rmode() == RelocInfo::WASM_MEMORY_REFERENCE ||
70 constant.rmode() == RelocInfo::WASM_GLOBAL_REFERENCE ||
70 constant.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE)) { 71 constant.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE)) {
71 return Immediate(reinterpret_cast<Address>(constant.ToInt32()), 72 return Immediate(reinterpret_cast<Address>(constant.ToInt32()),
72 constant.rmode()); 73 constant.rmode());
73 } 74 }
74 switch (constant.type()) { 75 switch (constant.type()) {
75 case Constant::kInt32: 76 case Constant::kInt32:
76 return Immediate(constant.ToInt32()); 77 return Immediate(constant.ToInt32());
77 case Constant::kFloat32: 78 case Constant::kFloat32:
78 return Immediate( 79 return Immediate(
79 isolate()->factory()->NewNumber(constant.ToFloat32(), TENURED)); 80 isolate()->factory()->NewNumber(constant.ToFloat32(), TENURED));
(...skipping 1925 matching lines...) Expand 10 before | Expand all | Expand 10 after
2005 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2006 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2006 __ Nop(padding_size); 2007 __ Nop(padding_size);
2007 } 2008 }
2008 } 2009 }
2009 2010
2010 #undef __ 2011 #undef __
2011 2012
2012 } // namespace compiler 2013 } // namespace compiler
2013 } // namespace internal 2014 } // namespace internal
2014 } // namespace v8 2015 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm64/code-generator-arm64.cc ('k') | src/compiler/mips/code-generator-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698