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

Side by Side Diff: src/compiler/operator-properties.cc

Issue 1210863002: [turbofan] Use proper eager deopts for %_ThrowNotDateError(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: ports Created 5 years, 5 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
« no previous file with comments | « src/compiler/linkage-impl.h ('k') | src/ia32/full-codegen-ia32.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/operator-properties.h" 5 #include "src/compiler/operator-properties.h"
6 6
7 #include "src/compiler/js-operator.h" 7 #include "src/compiler/js-operator.h"
8 #include "src/compiler/linkage.h" 8 #include "src/compiler/linkage.h"
9 #include "src/compiler/opcodes.h" 9 #include "src/compiler/opcodes.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 namespace compiler { 13 namespace compiler {
14 14
15 // static 15 // static
16 bool OperatorProperties::HasContextInput(const Operator* op) { 16 bool OperatorProperties::HasContextInput(const Operator* op) {
17 IrOpcode::Value opcode = static_cast<IrOpcode::Value>(op->opcode()); 17 IrOpcode::Value opcode = static_cast<IrOpcode::Value>(op->opcode());
18 return IrOpcode::IsJsOpcode(opcode); 18 return IrOpcode::IsJsOpcode(opcode);
19 } 19 }
20 20
21 21
22 // static 22 // static
23 int OperatorProperties::GetFrameStateInputCount(const Operator* op) { 23 int OperatorProperties::GetFrameStateInputCount(const Operator* op) {
24 switch (op->opcode()) { 24 switch (op->opcode()) {
25 case IrOpcode::kFrameState: 25 case IrOpcode::kFrameState:
26 return 1; 26 return 1;
27 case IrOpcode::kJSCallRuntime: { 27 case IrOpcode::kJSCallRuntime: {
28 const CallRuntimeParameters& p = CallRuntimeParametersOf(op); 28 const CallRuntimeParameters& p = CallRuntimeParametersOf(op);
29 return Linkage::NeedsFrameState(p.id()); 29 return Linkage::FrameStateInputCount(p.id());
30 } 30 }
31 31
32 // Strict equality cannot lazily deoptimize. 32 // Strict equality cannot lazily deoptimize.
33 case IrOpcode::kJSStrictEqual: 33 case IrOpcode::kJSStrictEqual:
34 case IrOpcode::kJSStrictNotEqual: 34 case IrOpcode::kJSStrictNotEqual:
35 return 0; 35 return 0;
36 36
37 // Calls 37 // Calls
38 case IrOpcode::kJSCallFunction: 38 case IrOpcode::kJSCallFunction:
39 case IrOpcode::kJSCallConstruct: 39 case IrOpcode::kJSCallConstruct:
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || 122 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop ||
123 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || 123 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue ||
124 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess || 124 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess ||
125 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue || 125 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue ||
126 opcode == IrOpcode::kIfDefault; 126 opcode == IrOpcode::kIfDefault;
127 } 127 }
128 128
129 } // namespace compiler 129 } // namespace compiler
130 } // namespace internal 130 } // namespace internal
131 } // namespace v8 131 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/linkage-impl.h ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698