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

Side by Side Diff: src/compiler/operator-properties-inl.h

Issue 613683002: [turbofan] Some javascript operators are globally shared singletons. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 6 years, 2 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/machine-operator-reducer.cc ('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/compiler/common-operator.h" 8 #include "src/compiler/common-operator.h"
9 #include "src/compiler/js-operator.h" 9 #include "src/compiler/js-operator.h"
10 #include "src/compiler/linkage.h"
10 #include "src/compiler/opcodes.h" 11 #include "src/compiler/opcodes.h"
11 #include "src/compiler/operator-properties.h" 12 #include "src/compiler/operator-properties.h"
12 13
13 namespace v8 { 14 namespace v8 {
14 namespace internal { 15 namespace internal {
15 namespace compiler { 16 namespace compiler {
16 17
17 inline bool OperatorProperties::HasValueInput(const Operator* op) { 18 inline bool OperatorProperties::HasValueInput(const Operator* op) {
18 return OperatorProperties::GetValueInputCount(op) > 0; 19 return OperatorProperties::GetValueInputCount(op) > 0;
19 } 20 }
(...skipping 13 matching lines...) Expand all
33 34
34 inline bool OperatorProperties::HasFrameStateInput(const Operator* op) { 35 inline bool OperatorProperties::HasFrameStateInput(const Operator* op) {
35 if (!FLAG_turbo_deoptimization) { 36 if (!FLAG_turbo_deoptimization) {
36 return false; 37 return false;
37 } 38 }
38 39
39 switch (op->opcode()) { 40 switch (op->opcode()) {
40 case IrOpcode::kFrameState: 41 case IrOpcode::kFrameState:
41 return true; 42 return true;
42 case IrOpcode::kJSCallRuntime: { 43 case IrOpcode::kJSCallRuntime: {
43 Runtime::FunctionId function = OpParameter<Runtime::FunctionId>(op); 44 const CallRuntimeParameters& p = CallRuntimeParametersOf(op);
44 return Linkage::NeedsFrameState(function); 45 return Linkage::NeedsFrameState(p.id());
45 } 46 }
46 47
47 // Strict equality cannot lazily deoptimize. 48 // Strict equality cannot lazily deoptimize.
48 case IrOpcode::kJSStrictEqual: 49 case IrOpcode::kJSStrictEqual:
49 case IrOpcode::kJSStrictNotEqual: 50 case IrOpcode::kJSStrictNotEqual:
50 return false; 51 return false;
51 52
52 // Calls 53 // Calls
53 case IrOpcode::kJSCallFunction: 54 case IrOpcode::kJSCallFunction:
54 case IrOpcode::kJSCallConstruct: 55 case IrOpcode::kJSCallConstruct:
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || 180 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop ||
180 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || 181 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue ||
181 opcode == IrOpcode::kIfFalse; 182 opcode == IrOpcode::kIfFalse;
182 } 183 }
183 184
184 } // namespace compiler 185 } // namespace compiler
185 } // namespace internal 186 } // namespace internal
186 } // namespace v8 187 } // namespace v8
187 188
188 #endif // V8_COMPILER_OPERATOR_PROPERTIES_INL_H_ 189 #endif // V8_COMPILER_OPERATOR_PROPERTIES_INL_H_
OLDNEW
« no previous file with comments | « src/compiler/machine-operator-reducer.cc ('k') | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698