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

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

Issue 758073002: [turbofan] Use special constant type for RPO block number operands. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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/arm/code-generator-arm.cc ('k') | src/compiler/code-generator-impl.h » ('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 6
7 #include "src/arm64/macro-assembler-arm64.h" 7 #include "src/arm64/macro-assembler-arm64.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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 case Constant::kFloat32: 135 case Constant::kFloat32:
136 return Operand( 136 return Operand(
137 isolate()->factory()->NewNumber(constant.ToFloat32(), TENURED)); 137 isolate()->factory()->NewNumber(constant.ToFloat32(), TENURED));
138 case Constant::kFloat64: 138 case Constant::kFloat64:
139 return Operand( 139 return Operand(
140 isolate()->factory()->NewNumber(constant.ToFloat64(), TENURED)); 140 isolate()->factory()->NewNumber(constant.ToFloat64(), TENURED));
141 case Constant::kExternalReference: 141 case Constant::kExternalReference:
142 return Operand(constant.ToExternalReference()); 142 return Operand(constant.ToExternalReference());
143 case Constant::kHeapObject: 143 case Constant::kHeapObject:
144 return Operand(constant.ToHeapObject()); 144 return Operand(constant.ToHeapObject());
145 case Constant::kRpoNumber:
146 UNREACHABLE(); // TODO(dcarney): RPO immediates on arm64.
147 break;
145 } 148 }
146 UNREACHABLE(); 149 UNREACHABLE();
147 return Operand(-1); 150 return Operand(-1);
148 } 151 }
149 152
150 MemOperand ToMemOperand(InstructionOperand* op, MacroAssembler* masm) const { 153 MemOperand ToMemOperand(InstructionOperand* op, MacroAssembler* masm) const {
151 DCHECK(op != NULL); 154 DCHECK(op != NULL);
152 DCHECK(!op->IsRegister()); 155 DCHECK(!op->IsRegister());
153 DCHECK(!op->IsDoubleRegister()); 156 DCHECK(!op->IsDoubleRegister());
154 DCHECK(op->IsStackSlot() || op->IsDoubleStackSlot()); 157 DCHECK(op->IsStackSlot() || op->IsDoubleStackSlot());
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 } 1016 }
1014 } 1017 }
1015 MarkLazyDeoptSite(); 1018 MarkLazyDeoptSite();
1016 } 1019 }
1017 1020
1018 #undef __ 1021 #undef __
1019 1022
1020 } // namespace compiler 1023 } // namespace compiler
1021 } // namespace internal 1024 } // namespace internal
1022 } // namespace v8 1025 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm/code-generator-arm.cc ('k') | src/compiler/code-generator-impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698