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

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

Issue 481903002: [turbofan] Support lowering of ChangeFloat64ToTagged/ChangeTaggedToInt32. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: GCC fix...again 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/change-lowering.cc ('k') | src/compiler/opcodes.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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 } 127 }
128 Operator* EffectPhi(int arguments) { 128 Operator* EffectPhi(int arguments) {
129 DCHECK(arguments > 0); // Disallow empty phis. 129 DCHECK(arguments > 0); // Disallow empty phis.
130 return new (zone_) Operator1<int>(IrOpcode::kEffectPhi, Operator::kPure, 0, 130 return new (zone_) Operator1<int>(IrOpcode::kEffectPhi, Operator::kPure, 0,
131 0, "EffectPhi", arguments); 131 0, "EffectPhi", arguments);
132 } 132 }
133 Operator* ControlEffect() { 133 Operator* ControlEffect() {
134 return new (zone_) SimpleOperator(IrOpcode::kControlEffect, Operator::kPure, 134 return new (zone_) SimpleOperator(IrOpcode::kControlEffect, Operator::kPure,
135 0, 0, "ControlEffect"); 135 0, 0, "ControlEffect");
136 } 136 }
137 Operator* ValueEffect(int arguments) {
138 DCHECK(arguments > 0); // Disallow empty value effects.
139 return new (zone_) SimpleOperator(IrOpcode::kValueEffect, Operator::kPure,
140 arguments, 0, "ValueEffect");
141 }
137 Operator* Finish(int arguments) { 142 Operator* Finish(int arguments) {
138 DCHECK(arguments > 0); // Disallow empty finishes. 143 DCHECK(arguments > 0); // Disallow empty finishes.
139 return new (zone_) Operator1<int>(IrOpcode::kFinish, Operator::kPure, 1, 1, 144 return new (zone_) Operator1<int>(IrOpcode::kFinish, Operator::kPure, 1, 1,
140 "Finish", arguments); 145 "Finish", arguments);
141 } 146 }
142 Operator* StateValues(int arguments) { 147 Operator* StateValues(int arguments) {
143 return new (zone_) Operator1<int>(IrOpcode::kStateValues, Operator::kPure, 148 return new (zone_) Operator1<int>(IrOpcode::kStateValues, Operator::kPure,
144 arguments, 1, "StateValues", arguments); 149 arguments, 1, "StateValues", arguments);
145 } 150 }
146 Operator* FrameState(BailoutId ast_id) { 151 Operator* FrameState(BailoutId ast_id) {
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 289
285 template <typename T> 290 template <typename T>
286 inline T ValueOf(Operator* op) { 291 inline T ValueOf(Operator* op) {
287 return CommonOperatorTraits<T>::ValueOf(op); 292 return CommonOperatorTraits<T>::ValueOf(op);
288 } 293 }
289 } 294 }
290 } 295 }
291 } // namespace v8::internal::compiler 296 } // namespace v8::internal::compiler
292 297
293 #endif // V8_COMPILER_COMMON_OPERATOR_H_ 298 #endif // V8_COMPILER_COMMON_OPERATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/change-lowering.cc ('k') | src/compiler/opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698