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

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

Issue 1424943008: [turbofan] Desugar lookup slot optimization in graph builder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comment. Created 5 years, 1 month 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/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 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 case IrOpcode::kJSNotEqual: 47 case IrOpcode::kJSNotEqual:
48 case IrOpcode::kJSHasProperty: 48 case IrOpcode::kJSHasProperty:
49 case IrOpcode::kJSInstanceOf: 49 case IrOpcode::kJSInstanceOf:
50 50
51 // Object operations 51 // Object operations
52 case IrOpcode::kJSCreateArguments: 52 case IrOpcode::kJSCreateArguments:
53 case IrOpcode::kJSCreateLiteralArray: 53 case IrOpcode::kJSCreateLiteralArray:
54 case IrOpcode::kJSCreateLiteralObject: 54 case IrOpcode::kJSCreateLiteralObject:
55 55
56 // Context operations 56 // Context operations
57 case IrOpcode::kJSLoadDynamicContext: 57 case IrOpcode::kJSLoadDynamic:
58 case IrOpcode::kJSCreateScriptContext: 58 case IrOpcode::kJSCreateScriptContext:
59 case IrOpcode::kJSCreateWithContext: 59 case IrOpcode::kJSCreateWithContext:
60 60
61 // Conversions 61 // Conversions
62 case IrOpcode::kJSToObject: 62 case IrOpcode::kJSToObject:
63 case IrOpcode::kJSToNumber: 63 case IrOpcode::kJSToNumber:
64 case IrOpcode::kJSToName: 64 case IrOpcode::kJSToName:
65 65
66 // Misc operations 66 // Misc operations
67 case IrOpcode::kJSConvertReceiver: 67 case IrOpcode::kJSConvertReceiver:
68 case IrOpcode::kJSForInNext: 68 case IrOpcode::kJSForInNext:
69 case IrOpcode::kJSForInPrepare: 69 case IrOpcode::kJSForInPrepare:
70 case IrOpcode::kJSStackCheck: 70 case IrOpcode::kJSStackCheck:
71 case IrOpcode::kJSDeleteProperty: 71 case IrOpcode::kJSDeleteProperty:
72 return 1; 72 return 1;
73 73
74 // We record the frame state immediately before and immediately after 74 // We record the frame state immediately before and immediately after
75 // every property or global variable access. 75 // every property or global variable access.
76 case IrOpcode::kJSLoadNamed: 76 case IrOpcode::kJSLoadNamed:
77 case IrOpcode::kJSStoreNamed: 77 case IrOpcode::kJSStoreNamed:
78 case IrOpcode::kJSLoadProperty: 78 case IrOpcode::kJSLoadProperty:
79 case IrOpcode::kJSStoreProperty: 79 case IrOpcode::kJSStoreProperty:
80 case IrOpcode::kJSLoadGlobal: 80 case IrOpcode::kJSLoadGlobal:
81 case IrOpcode::kJSStoreGlobal: 81 case IrOpcode::kJSStoreGlobal:
82 case IrOpcode::kJSLoadDynamicGlobal:
83 return 2; 82 return 2;
84 83
85 // Binary operators that can deopt in the middle the operation (e.g., 84 // Binary operators that can deopt in the middle the operation (e.g.,
86 // as a result of lazy deopt in ToNumber conversion) need a second frame 85 // as a result of lazy deopt in ToNumber conversion) need a second frame
87 // state so that we can resume before the operation. 86 // state so that we can resume before the operation.
88 case IrOpcode::kJSMultiply: 87 case IrOpcode::kJSMultiply:
89 case IrOpcode::kJSAdd: 88 case IrOpcode::kJSAdd:
90 case IrOpcode::kJSBitwiseAnd: 89 case IrOpcode::kJSBitwiseAnd:
91 case IrOpcode::kJSBitwiseOr: 90 case IrOpcode::kJSBitwiseOr:
92 case IrOpcode::kJSBitwiseXor: 91 case IrOpcode::kJSBitwiseXor:
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || 127 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop ||
129 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || 128 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue ||
130 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess || 129 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess ||
131 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue || 130 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue ||
132 opcode == IrOpcode::kIfDefault; 131 opcode == IrOpcode::kIfDefault;
133 } 132 }
134 133
135 } // namespace compiler 134 } // namespace compiler
136 } // namespace internal 135 } // namespace internal
137 } // namespace v8 136 } // namespace v8
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