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

Side by Side Diff: src/compiler/js-generic-lowering.cc

Issue 2523223003: Merged: Squashed multiple commits. (Closed)
Patch Set: Created 4 years 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-builtin-reducer.cc ('k') | src/compiler/js-native-context-specialization.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 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/js-generic-lowering.h" 5 #include "src/compiler/js-generic-lowering.h"
6 6
7 #include "src/ast/ast.h" 7 #include "src/ast/ast.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 : Runtime::kDeleteProperty_Sloppy); 344 : Runtime::kDeleteProperty_Sloppy);
345 } 345 }
346 346
347 347
348 void JSGenericLowering::LowerJSInstanceOf(Node* node) { 348 void JSGenericLowering::LowerJSInstanceOf(Node* node) {
349 CallDescriptor::Flags flags = FrameStateFlagForCall(node); 349 CallDescriptor::Flags flags = FrameStateFlagForCall(node);
350 Callable callable = CodeFactory::InstanceOf(isolate()); 350 Callable callable = CodeFactory::InstanceOf(isolate());
351 ReplaceWithStubCall(node, callable, flags); 351 ReplaceWithStubCall(node, callable, flags);
352 } 352 }
353 353
354 void JSGenericLowering::LowerJSOrdinaryHasInstance(Node* node) {
355 CallDescriptor::Flags flags = FrameStateFlagForCall(node);
356 Callable callable = CodeFactory::OrdinaryHasInstance(isolate());
357 ReplaceWithStubCall(node, callable, flags);
358 }
354 359
355 void JSGenericLowering::LowerJSLoadContext(Node* node) { 360 void JSGenericLowering::LowerJSLoadContext(Node* node) {
356 const ContextAccess& access = ContextAccessOf(node->op()); 361 const ContextAccess& access = ContextAccessOf(node->op());
357 for (size_t i = 0; i < access.depth(); ++i) { 362 for (size_t i = 0; i < access.depth(); ++i) {
358 node->ReplaceInput( 363 node->ReplaceInput(
359 0, graph()->NewNode(machine()->Load(MachineType::AnyTagged()), 364 0, graph()->NewNode(machine()->Load(MachineType::AnyTagged()),
360 NodeProperties::GetValueInput(node, 0), 365 NodeProperties::GetValueInput(node, 0),
361 jsgraph()->Int32Constant( 366 jsgraph()->Int32Constant(
362 Context::SlotOffset(Context::PREVIOUS_INDEX)), 367 Context::SlotOffset(Context::PREVIOUS_INDEX)),
363 NodeProperties::GetEffectInput(node), 368 NodeProperties::GetEffectInput(node),
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 } 710 }
706 711
707 712
708 MachineOperatorBuilder* JSGenericLowering::machine() const { 713 MachineOperatorBuilder* JSGenericLowering::machine() const {
709 return jsgraph()->machine(); 714 return jsgraph()->machine();
710 } 715 }
711 716
712 } // namespace compiler 717 } // namespace compiler
713 } // namespace internal 718 } // namespace internal
714 } // namespace v8 719 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-builtin-reducer.cc ('k') | src/compiler/js-native-context-specialization.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698