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

Side by Side Diff: src/compiler/instruction-selector-impl.h

Issue 1314473007: [turbofan] Remove usage of Unique<T> from graph. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased and fixed. Created 5 years, 3 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/instruction-selector-ia32.cc ('k') | src/compiler/interpreter-assembler.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 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ 5 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_
6 #define V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ 6 #define V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_
7 7
8 #include "src/compiler/instruction.h" 8 #include "src/compiler/instruction.h"
9 #include "src/compiler/instruction-selector.h" 9 #include "src/compiler/instruction-selector.h"
10 #include "src/compiler/linkage.h" 10 #include "src/compiler/linkage.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 case IrOpcode::kInt64Constant: 176 case IrOpcode::kInt64Constant:
177 return Constant(OpParameter<int64_t>(node)); 177 return Constant(OpParameter<int64_t>(node));
178 case IrOpcode::kFloat32Constant: 178 case IrOpcode::kFloat32Constant:
179 return Constant(OpParameter<float>(node)); 179 return Constant(OpParameter<float>(node));
180 case IrOpcode::kFloat64Constant: 180 case IrOpcode::kFloat64Constant:
181 case IrOpcode::kNumberConstant: 181 case IrOpcode::kNumberConstant:
182 return Constant(OpParameter<double>(node)); 182 return Constant(OpParameter<double>(node));
183 case IrOpcode::kExternalConstant: 183 case IrOpcode::kExternalConstant:
184 return Constant(OpParameter<ExternalReference>(node)); 184 return Constant(OpParameter<ExternalReference>(node));
185 case IrOpcode::kHeapConstant: 185 case IrOpcode::kHeapConstant:
186 return Constant(OpParameter<Unique<HeapObject> >(node).handle()); 186 return Constant(OpParameter<Handle<HeapObject>>(node));
187 default: 187 default:
188 break; 188 break;
189 } 189 }
190 UNREACHABLE(); 190 UNREACHABLE();
191 return Constant(static_cast<int32_t>(0)); 191 return Constant(static_cast<int32_t>(0));
192 } 192 }
193 193
194 UnallocatedOperand Define(Node* node, UnallocatedOperand operand) { 194 UnallocatedOperand Define(Node* node, UnallocatedOperand operand) {
195 DCHECK_NOT_NULL(node); 195 DCHECK_NOT_NULL(node);
196 DCHECK_EQ(operand.virtual_register(), GetVReg(node)); 196 DCHECK_EQ(operand.virtual_register(), GetVReg(node));
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 : (frame_state_descriptor->GetTotalSize() + 376 : (frame_state_descriptor->GetTotalSize() +
377 1); // Include deopt id. 377 1); // Include deopt id.
378 } 378 }
379 }; 379 };
380 380
381 } // namespace compiler 381 } // namespace compiler
382 } // namespace internal 382 } // namespace internal
383 } // namespace v8 383 } // namespace v8
384 384
385 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_ 385 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_IMPL_H_
OLDNEW
« no previous file with comments | « src/compiler/ia32/instruction-selector-ia32.cc ('k') | src/compiler/interpreter-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698