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

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

Issue 1150723005: [turbofan] Optimized lowering of DYNAMIC_GLOBAL lookup slot loads. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 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
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 case IrOpcode::kJSEqual: 42 case IrOpcode::kJSEqual:
43 case IrOpcode::kJSNotEqual: 43 case IrOpcode::kJSNotEqual:
44 case IrOpcode::kJSHasProperty: 44 case IrOpcode::kJSHasProperty:
45 case IrOpcode::kJSInstanceOf: 45 case IrOpcode::kJSInstanceOf:
46 46
47 // Object operations 47 // Object operations
48 case IrOpcode::kJSCreateLiteralArray: 48 case IrOpcode::kJSCreateLiteralArray:
49 case IrOpcode::kJSCreateLiteralObject: 49 case IrOpcode::kJSCreateLiteralObject:
50 50
51 // Context operations 51 // Context operations
52 case IrOpcode::kJSLoadDynamicGlobal:
53 case IrOpcode::kJSLoadDynamicContext: 52 case IrOpcode::kJSLoadDynamicContext:
54 case IrOpcode::kJSCreateScriptContext: 53 case IrOpcode::kJSCreateScriptContext:
55 case IrOpcode::kJSCreateWithContext: 54 case IrOpcode::kJSCreateWithContext:
56 55
57 // Conversions 56 // Conversions
58 case IrOpcode::kJSToObject: 57 case IrOpcode::kJSToObject:
59 case IrOpcode::kJSToNumber: 58 case IrOpcode::kJSToNumber:
60 case IrOpcode::kJSToName: 59 case IrOpcode::kJSToName:
61 60
62 // Misc operations 61 // Misc operations
63 case IrOpcode::kJSForInNext: 62 case IrOpcode::kJSForInNext:
64 case IrOpcode::kJSForInPrepare: 63 case IrOpcode::kJSForInPrepare:
65 case IrOpcode::kJSStackCheck: 64 case IrOpcode::kJSStackCheck:
66 case IrOpcode::kJSDeleteProperty: 65 case IrOpcode::kJSDeleteProperty:
67 return 1; 66 return 1;
68 67
69 // We record the frame state immediately before and immediately after 68 // We record the frame state immediately before and immediately after
70 // every property access. 69 // every property or global variable access.
71 case IrOpcode::kJSLoadNamed: 70 case IrOpcode::kJSLoadNamed:
72 case IrOpcode::kJSStoreNamed: 71 case IrOpcode::kJSStoreNamed:
73 case IrOpcode::kJSLoadProperty: 72 case IrOpcode::kJSLoadProperty:
74 case IrOpcode::kJSStoreProperty: 73 case IrOpcode::kJSStoreProperty:
74 case IrOpcode::kJSLoadDynamicGlobal:
75 return 2; 75 return 2;
76 76
77 // Binary operators that can deopt in the middle the operation (e.g., 77 // Binary operators that can deopt in the middle the operation (e.g.,
78 // as a result of lazy deopt in ToNumber conversion) need a second frame 78 // as a result of lazy deopt in ToNumber conversion) need a second frame
79 // state so that we can resume before the operation. 79 // state so that we can resume before the operation.
80 case IrOpcode::kJSMultiply: 80 case IrOpcode::kJSMultiply:
81 case IrOpcode::kJSAdd: 81 case IrOpcode::kJSAdd:
82 case IrOpcode::kJSBitwiseAnd: 82 case IrOpcode::kJSBitwiseAnd:
83 case IrOpcode::kJSBitwiseOr: 83 case IrOpcode::kJSBitwiseOr:
84 case IrOpcode::kJSBitwiseXor: 84 case IrOpcode::kJSBitwiseXor:
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || 120 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop ||
121 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || 121 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue ||
122 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess || 122 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess ||
123 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue || 123 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue ||
124 opcode == IrOpcode::kIfDefault; 124 opcode == IrOpcode::kIfDefault;
125 } 125 }
126 126
127 } // namespace compiler 127 } // namespace compiler
128 } // namespace internal 128 } // namespace internal
129 } // namespace v8 129 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | test/unittests/compiler/js-typed-lowering-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698