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

Side by Side Diff: src/compiler/instruction-selector.cc

Issue 2188533002: [turbofan] Generate loop exits in the bytecode graph builder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix 64-bit Created 4 years, 4 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/code-generator.cc ('k') | src/v8.gyp » ('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/instruction-selector.h" 5 #include "src/compiler/instruction-selector.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/adapters.h" 9 #include "src/base/adapters.h"
10 #include "src/compiler/instruction-selector-impl.h" 10 #include "src/compiler/instruction-selector-impl.h"
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 345
346 namespace { 346 namespace {
347 347
348 enum class FrameStateInputKind { kAny, kStackSlot }; 348 enum class FrameStateInputKind { kAny, kStackSlot };
349 349
350 InstructionOperand OperandForDeopt(OperandGenerator* g, Node* input, 350 InstructionOperand OperandForDeopt(OperandGenerator* g, Node* input,
351 FrameStateInputKind kind, 351 FrameStateInputKind kind,
352 MachineRepresentation rep) { 352 MachineRepresentation rep) {
353 switch (input->opcode()) { 353 switch (input->opcode()) {
354 case IrOpcode::kInt32Constant: 354 case IrOpcode::kInt32Constant:
355 case IrOpcode::kInt64Constant:
355 case IrOpcode::kNumberConstant: 356 case IrOpcode::kNumberConstant:
356 case IrOpcode::kFloat32Constant: 357 case IrOpcode::kFloat32Constant:
357 case IrOpcode::kFloat64Constant: 358 case IrOpcode::kFloat64Constant:
358 case IrOpcode::kHeapConstant: 359 case IrOpcode::kHeapConstant:
359 return g->UseImmediate(input); 360 return g->UseImmediate(input);
360 case IrOpcode::kObjectState: 361 case IrOpcode::kObjectState:
361 UNREACHABLE(); 362 UNREACHABLE();
362 break; 363 break;
363 default: 364 default:
364 if (rep == MachineRepresentation::kNone) { 365 if (rep == MachineRepresentation::kNone) {
(...skipping 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after
2067 return new (instruction_zone()) FrameStateDescriptor( 2068 return new (instruction_zone()) FrameStateDescriptor(
2068 instruction_zone(), state_info.type(), state_info.bailout_id(), 2069 instruction_zone(), state_info.type(), state_info.bailout_id(),
2069 state_info.state_combine(), parameters, locals, stack, 2070 state_info.state_combine(), parameters, locals, stack,
2070 state_info.shared_info(), outer_state); 2071 state_info.shared_info(), outer_state);
2071 } 2072 }
2072 2073
2073 2074
2074 } // namespace compiler 2075 } // namespace compiler
2075 } // namespace internal 2076 } // namespace internal
2076 } // namespace v8 2077 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698