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

Side by Side Diff: src/compiler/common-operator.h

Issue 515723004: Deoptimize context value in Turbofan (and Crankshaft). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix tests. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/compiler/graph-builder.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 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 #ifndef V8_COMPILER_COMMON_OPERATOR_H_ 5 #ifndef V8_COMPILER_COMMON_OPERATOR_H_
6 #define V8_COMPILER_COMMON_OPERATOR_H_ 6 #define V8_COMPILER_COMMON_OPERATOR_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/assembler.h" 10 #include "src/assembler.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 DCHECK(arguments > 0); // Disallow empty finishes. 144 DCHECK(arguments > 0); // Disallow empty finishes.
145 return new (zone_) Operator1<int>(IrOpcode::kFinish, Operator::kPure, 1, 1, 145 return new (zone_) Operator1<int>(IrOpcode::kFinish, Operator::kPure, 1, 1,
146 "Finish", arguments); 146 "Finish", arguments);
147 } 147 }
148 Operator* StateValues(int arguments) { 148 Operator* StateValues(int arguments) {
149 return new (zone_) Operator1<int>(IrOpcode::kStateValues, Operator::kPure, 149 return new (zone_) Operator1<int>(IrOpcode::kStateValues, Operator::kPure,
150 arguments, 1, "StateValues", arguments); 150 arguments, 1, "StateValues", arguments);
151 } 151 }
152 Operator* FrameState(BailoutId ast_id) { 152 Operator* FrameState(BailoutId ast_id) {
153 return new (zone_) Operator1<BailoutId>( 153 return new (zone_) Operator1<BailoutId>(
154 IrOpcode::kFrameState, Operator::kPure, 3, 1, "FrameState", ast_id); 154 IrOpcode::kFrameState, Operator::kPure, 4, 1, "FrameState", ast_id);
155 } 155 }
156 Operator* Call(CallDescriptor* descriptor) { 156 Operator* Call(CallDescriptor* descriptor) {
157 return new (zone_) CallOperator(descriptor, "Call"); 157 return new (zone_) CallOperator(descriptor, "Call");
158 } 158 }
159 Operator* Projection(int index) { 159 Operator* Projection(int index) {
160 return new (zone_) Operator1<int>(IrOpcode::kProjection, Operator::kPure, 1, 160 return new (zone_) Operator1<int>(IrOpcode::kProjection, Operator::kPure, 1,
161 1, "Projection", index); 161 1, "Projection", index);
162 } 162 }
163 163
164 private: 164 private:
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 290
291 template <typename T> 291 template <typename T>
292 inline T ValueOf(Operator* op) { 292 inline T ValueOf(Operator* op) {
293 return CommonOperatorTraits<T>::ValueOf(op); 293 return CommonOperatorTraits<T>::ValueOf(op);
294 } 294 }
295 } 295 }
296 } 296 }
297 } // namespace v8::internal::compiler 297 } // namespace v8::internal::compiler
298 298
299 #endif // V8_COMPILER_COMMON_OPERATOR_H_ 299 #endif // V8_COMPILER_COMMON_OPERATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/compiler/graph-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698