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

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

Issue 2025573003: [turbofan] Remove eager frame state from call nodes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_turbofan-checkpoint-1
Patch Set: Rebased. Created 4 years, 6 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/node-properties.cc ('k') | test/unittests/compiler/js-builtin-reducer-unittest.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
(...skipping 17 matching lines...) Expand all
28 case IrOpcode::kJSCallRuntime: { 28 case IrOpcode::kJSCallRuntime: {
29 const CallRuntimeParameters& p = CallRuntimeParametersOf(op); 29 const CallRuntimeParameters& p = CallRuntimeParametersOf(op);
30 return Linkage::FrameStateInputCount(p.id()); 30 return Linkage::FrameStateInputCount(p.id());
31 } 31 }
32 32
33 // Strict equality cannot lazily deoptimize. 33 // Strict equality cannot lazily deoptimize.
34 case IrOpcode::kJSStrictEqual: 34 case IrOpcode::kJSStrictEqual:
35 case IrOpcode::kJSStrictNotEqual: 35 case IrOpcode::kJSStrictNotEqual:
36 return 0; 36 return 0;
37 37
38 // We record the frame state immediately before and immediately after every
39 // construct/function call.
40 case IrOpcode::kJSCallConstruct:
41 case IrOpcode::kJSCallFunction:
42 return 2;
43
44 // Compare operations 38 // Compare operations
45 case IrOpcode::kJSEqual: 39 case IrOpcode::kJSEqual:
46 case IrOpcode::kJSNotEqual: 40 case IrOpcode::kJSNotEqual:
47 case IrOpcode::kJSHasProperty: 41 case IrOpcode::kJSHasProperty:
48 case IrOpcode::kJSInstanceOf: 42 case IrOpcode::kJSInstanceOf:
49 43
50 // Object operations 44 // Object operations
51 case IrOpcode::kJSCreate: 45 case IrOpcode::kJSCreate:
52 case IrOpcode::kJSCreateArguments: 46 case IrOpcode::kJSCreateArguments:
53 case IrOpcode::kJSCreateArray: 47 case IrOpcode::kJSCreateArray:
54 case IrOpcode::kJSCreateLiteralArray: 48 case IrOpcode::kJSCreateLiteralArray:
55 case IrOpcode::kJSCreateLiteralObject: 49 case IrOpcode::kJSCreateLiteralObject:
56 case IrOpcode::kJSCreateLiteralRegExp: 50 case IrOpcode::kJSCreateLiteralRegExp:
57 51
58 // Context operations 52 // Context operations
59 case IrOpcode::kJSCreateScriptContext: 53 case IrOpcode::kJSCreateScriptContext:
60 54
61 // Conversions 55 // Conversions
62 case IrOpcode::kJSToInteger: 56 case IrOpcode::kJSToInteger:
63 case IrOpcode::kJSToLength: 57 case IrOpcode::kJSToLength:
64 case IrOpcode::kJSToName: 58 case IrOpcode::kJSToName:
65 case IrOpcode::kJSToNumber: 59 case IrOpcode::kJSToNumber:
66 case IrOpcode::kJSToObject: 60 case IrOpcode::kJSToObject:
67 case IrOpcode::kJSToString: 61 case IrOpcode::kJSToString:
68 62
63 // Call operations
64 case IrOpcode::kJSCallConstruct:
65 case IrOpcode::kJSCallFunction:
66
69 // Misc operations 67 // Misc operations
70 case IrOpcode::kJSConvertReceiver: 68 case IrOpcode::kJSConvertReceiver:
71 case IrOpcode::kJSForInNext: 69 case IrOpcode::kJSForInNext:
72 case IrOpcode::kJSForInPrepare: 70 case IrOpcode::kJSForInPrepare:
73 case IrOpcode::kJSStackCheck: 71 case IrOpcode::kJSStackCheck:
74 case IrOpcode::kJSDeleteProperty: 72 case IrOpcode::kJSDeleteProperty:
75 return 1; 73 return 1;
76 74
77 // We record the frame state immediately before and immediately after 75 // We record the frame state immediately before and immediately after
78 // every property or global variable access. 76 // every property or global variable access.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || 128 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop ||
131 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || 129 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue ||
132 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess || 130 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess ||
133 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue || 131 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue ||
134 opcode == IrOpcode::kIfDefault; 132 opcode == IrOpcode::kIfDefault;
135 } 133 }
136 134
137 } // namespace compiler 135 } // namespace compiler
138 } // namespace internal 136 } // namespace internal
139 } // namespace v8 137 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/node-properties.cc ('k') | test/unittests/compiler/js-builtin-reducer-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698