OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/js-native-context-specialization.h" | 5 #include "src/compiler/js-native-context-specialization.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/compilation-dependencies.h" | 9 #include "src/compilation-dependencies.h" |
10 #include "src/compiler/access-builder.h" | 10 #include "src/compiler/access-builder.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 Node* node, Node* value, MapHandleList const& receiver_maps, | 105 Node* node, Node* value, MapHandleList const& receiver_maps, |
106 Handle<Name> name, AccessMode access_mode, LanguageMode language_mode, | 106 Handle<Name> name, AccessMode access_mode, LanguageMode language_mode, |
107 Node* index) { | 107 Node* index) { |
108 DCHECK(node->opcode() == IrOpcode::kJSLoadNamed || | 108 DCHECK(node->opcode() == IrOpcode::kJSLoadNamed || |
109 node->opcode() == IrOpcode::kJSStoreNamed || | 109 node->opcode() == IrOpcode::kJSStoreNamed || |
110 node->opcode() == IrOpcode::kJSLoadProperty || | 110 node->opcode() == IrOpcode::kJSLoadProperty || |
111 node->opcode() == IrOpcode::kJSStoreProperty); | 111 node->opcode() == IrOpcode::kJSStoreProperty); |
112 Node* receiver = NodeProperties::GetValueInput(node, 0); | 112 Node* receiver = NodeProperties::GetValueInput(node, 0); |
113 Node* context = NodeProperties::GetContextInput(node); | 113 Node* context = NodeProperties::GetContextInput(node); |
114 Node* frame_state_eager = NodeProperties::FindFrameStateBefore(node); | 114 Node* frame_state_eager = NodeProperties::FindFrameStateBefore(node); |
115 Node* frame_state_lazy = NodeProperties::GetFrameStateInput(node, 0); | 115 Node* frame_state_lazy = NodeProperties::GetFrameStateInput(node); |
116 Node* effect = NodeProperties::GetEffectInput(node); | 116 Node* effect = NodeProperties::GetEffectInput(node); |
117 Node* control = NodeProperties::GetControlInput(node); | 117 Node* control = NodeProperties::GetControlInput(node); |
118 | 118 |
119 // Not much we can do if deoptimization support is disabled. | 119 // Not much we can do if deoptimization support is disabled. |
120 if (!(flags() & kDeoptimizationEnabled)) return NoChange(); | 120 if (!(flags() & kDeoptimizationEnabled)) return NoChange(); |
121 | 121 |
122 // Retrieve the native context from the given {node}. | 122 // Retrieve the native context from the given {node}. |
123 Handle<Context> native_context; | 123 Handle<Context> native_context; |
124 if (!GetNativeContext(node).ToHandle(&native_context)) return NoChange(); | 124 if (!GetNativeContext(node).ToHandle(&native_context)) return NoChange(); |
125 | 125 |
(...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1339 } | 1339 } |
1340 | 1340 |
1341 | 1341 |
1342 SimplifiedOperatorBuilder* JSNativeContextSpecialization::simplified() const { | 1342 SimplifiedOperatorBuilder* JSNativeContextSpecialization::simplified() const { |
1343 return jsgraph()->simplified(); | 1343 return jsgraph()->simplified(); |
1344 } | 1344 } |
1345 | 1345 |
1346 } // namespace compiler | 1346 } // namespace compiler |
1347 } // namespace internal | 1347 } // namespace internal |
1348 } // namespace v8 | 1348 } // namespace v8 |
OLD | NEW |