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

Side by Side Diff: src/compiler/operator-properties-inl.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/opcodes.h ('k') | src/compiler/typer.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 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_OPERATOR_PROPERTIES_INL_H_ 5 #ifndef V8_COMPILER_OPERATOR_PROPERTIES_INL_H_
6 #define V8_COMPILER_OPERATOR_PROPERTIES_INL_H_ 6 #define V8_COMPILER_OPERATOR_PROPERTIES_INL_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/compiler/js-operator.h" 10 #include "src/compiler/js-operator.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // ----------------------------------------------------------------------------- 84 // -----------------------------------------------------------------------------
85 // Output properties. 85 // Output properties.
86 86
87 inline bool OperatorProperties::HasValueOutput(Operator* op) { 87 inline bool OperatorProperties::HasValueOutput(Operator* op) {
88 return GetValueOutputCount(op) > 0; 88 return GetValueOutputCount(op) > 0;
89 } 89 }
90 90
91 inline bool OperatorProperties::HasEffectOutput(Operator* op) { 91 inline bool OperatorProperties::HasEffectOutput(Operator* op) {
92 return op->opcode() == IrOpcode::kStart || 92 return op->opcode() == IrOpcode::kStart ||
93 op->opcode() == IrOpcode::kControlEffect || 93 op->opcode() == IrOpcode::kControlEffect ||
94 op->opcode() == IrOpcode::kValueEffect ||
94 (op->opcode() != IrOpcode::kFinish && GetEffectInputCount(op) > 0); 95 (op->opcode() != IrOpcode::kFinish && GetEffectInputCount(op) > 0);
95 } 96 }
96 97
97 inline bool OperatorProperties::HasControlOutput(Operator* op) { 98 inline bool OperatorProperties::HasControlOutput(Operator* op) {
98 IrOpcode::Value opcode = static_cast<IrOpcode::Value>(op->opcode()); 99 IrOpcode::Value opcode = static_cast<IrOpcode::Value>(op->opcode());
99 return (opcode != IrOpcode::kEnd && IrOpcode::IsControlOpcode(opcode)) || 100 return (opcode != IrOpcode::kEnd && IrOpcode::IsControlOpcode(opcode)) ||
100 CanLazilyDeoptimize(op); 101 CanLazilyDeoptimize(op);
101 } 102 }
102 103
103 104
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 default: 172 default:
172 return false; 173 return false;
173 } 174 }
174 return false; 175 return false;
175 } 176 }
176 } 177 }
177 } 178 }
178 } // namespace v8::internal::compiler 179 } // namespace v8::internal::compiler
179 180
180 #endif // V8_COMPILER_OPERATOR_PROPERTIES_INL_H_ 181 #endif // V8_COMPILER_OPERATOR_PROPERTIES_INL_H_
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698