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

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

Issue 504493002: Fix deoptimization address patching in Turbofan to use safepoints. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Compilation fix. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/deoptimizer.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/instruction-selector.h" 5 #include "src/compiler/instruction-selector.h"
6 6
7 #include "src/compiler/instruction-selector-impl.h" 7 #include "src/compiler/instruction-selector-impl.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/compiler/node-properties-inl.h" 9 #include "src/compiler/node-properties-inl.h"
10 #include "src/compiler/pipeline.h" 10 #include "src/compiler/pipeline.h"
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 1032
1033 1033
1034 static InstructionOperand* UseOrImmediate(OperandGenerator* g, Node* input) { 1034 static InstructionOperand* UseOrImmediate(OperandGenerator* g, Node* input) {
1035 switch (input->opcode()) { 1035 switch (input->opcode()) {
1036 case IrOpcode::kInt32Constant: 1036 case IrOpcode::kInt32Constant:
1037 case IrOpcode::kNumberConstant: 1037 case IrOpcode::kNumberConstant:
1038 case IrOpcode::kFloat64Constant: 1038 case IrOpcode::kFloat64Constant:
1039 case IrOpcode::kHeapConstant: 1039 case IrOpcode::kHeapConstant:
1040 return g->UseImmediate(input); 1040 return g->UseImmediate(input);
1041 default: 1041 default:
1042 return g->Use(input); 1042 return g->UseUnique(input);
1043 } 1043 }
1044 } 1044 }
1045 1045
1046 1046
1047 void InstructionSelector::AddFrameStateInputs( 1047 void InstructionSelector::AddFrameStateInputs(
1048 Node* state, InstructionOperandVector* inputs, 1048 Node* state, InstructionOperandVector* inputs,
1049 FrameStateDescriptor* descriptor) { 1049 FrameStateDescriptor* descriptor) {
1050 DCHECK_EQ(IrOpcode::kFrameState, state->op()->opcode()); 1050 DCHECK_EQ(IrOpcode::kFrameState, state->op()->opcode());
1051 1051
1052 Node* parameters = state->InputAt(0); 1052 Node* parameters = state->InputAt(0);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 1127
1128 1128
1129 void InstructionSelector::VisitCall(Node* call, BasicBlock* continuation, 1129 void InstructionSelector::VisitCall(Node* call, BasicBlock* continuation,
1130 BasicBlock* deoptimization) {} 1130 BasicBlock* deoptimization) {}
1131 1131
1132 #endif // !V8_TURBOFAN_BACKEND 1132 #endif // !V8_TURBOFAN_BACKEND
1133 1133
1134 } // namespace compiler 1134 } // namespace compiler
1135 } // namespace internal 1135 } // namespace internal
1136 } // namespace v8 1136 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698