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

Side by Side Diff: src/compiler/js-native-context-specialization.cc

Issue 1418993002: [turbofan] Unify NamedAccess and PropertyAccess operator parameters. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/js-generic-lowering.cc ('k') | src/compiler/js-operator.h » ('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 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
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
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
OLDNEW
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/compiler/js-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698