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/compilation-dependencies.h" | 8 #include "src/compilation-dependencies.h" |
9 #include "src/compiler/access-builder.h" | 9 #include "src/compiler/access-builder.h" |
10 #include "src/compiler/js-graph.h" | 10 #include "src/compiler/js-graph.h" |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 PropertyAccessInfo access_info; | 421 PropertyAccessInfo access_info; |
422 if (!ComputePropertyAccessInfo(map, name, &access_info)) return false; | 422 if (!ComputePropertyAccessInfo(map, name, &access_info)) return false; |
423 access_infos->push_back(access_info); | 423 access_infos->push_back(access_info); |
424 } | 424 } |
425 return true; | 425 return true; |
426 } | 426 } |
427 | 427 |
428 | 428 |
429 Reduction JSNativeContextSpecialization::ReduceJSLoadNamed(Node* node) { | 429 Reduction JSNativeContextSpecialization::ReduceJSLoadNamed(Node* node) { |
430 DCHECK_EQ(IrOpcode::kJSLoadNamed, node->opcode()); | 430 DCHECK_EQ(IrOpcode::kJSLoadNamed, node->opcode()); |
431 LoadNamedParameters const p = LoadNamedParametersOf(node->op()); | 431 NamedAccess const& p = NamedAccessOf(node->op()); |
432 Handle<Name> name = p.name(); | 432 Handle<Name> name = p.name(); |
433 Node* receiver = NodeProperties::GetValueInput(node, 0); | 433 Node* receiver = NodeProperties::GetValueInput(node, 0); |
434 Node* frame_state = NodeProperties::GetFrameStateInput(node, 1); | 434 Node* frame_state = NodeProperties::GetFrameStateInput(node, 1); |
435 Node* effect = NodeProperties::GetEffectInput(node); | 435 Node* effect = NodeProperties::GetEffectInput(node); |
436 Node* control = NodeProperties::GetControlInput(node); | 436 Node* control = NodeProperties::GetControlInput(node); |
437 | 437 |
438 // Not much we can do if deoptimization support is disabled. | 438 // Not much we can do if deoptimization support is disabled. |
439 if (!(flags() & kDeoptimizationEnabled)) return NoChange(); | 439 if (!(flags() & kDeoptimizationEnabled)) return NoChange(); |
440 | 440 |
441 // Extract receiver maps from the LOAD_IC using the LoadICNexus. | 441 // Extract receiver maps from the LOAD_IC using the LoadICNexus. |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 } | 709 } |
710 | 710 |
711 | 711 |
712 SimplifiedOperatorBuilder* JSNativeContextSpecialization::simplified() const { | 712 SimplifiedOperatorBuilder* JSNativeContextSpecialization::simplified() const { |
713 return jsgraph()->simplified(); | 713 return jsgraph()->simplified(); |
714 } | 714 } |
715 | 715 |
716 } // namespace compiler | 716 } // namespace compiler |
717 } // namespace internal | 717 } // namespace internal |
718 } // namespace v8 | 718 } // namespace v8 |
OLD | NEW |