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

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

Issue 1425883004: [turbofan] Fix missing bailout point before calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update unittests. Created 5 years, 1 month 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/ast-graph-builder.cc ('k') | src/compiler/js-inlining.cc » ('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/code-factory.h" 5 #include "src/code-factory.h"
6 #include "src/code-stubs.h" 6 #include "src/code-stubs.h"
7 #include "src/compiler/common-operator.h" 7 #include "src/compiler/common-operator.h"
8 #include "src/compiler/js-generic-lowering.h" 8 #include "src/compiler/js-generic-lowering.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/compiler/machine-operator.h" 10 #include "src/compiler/machine-operator.h"
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 CallDescriptor* desc = Linkage::GetStubCallDescriptor( 562 CallDescriptor* desc = Linkage::GetStubCallDescriptor(
563 isolate(), zone(), d, static_cast<int>(p.arity() - 1), flags); 563 isolate(), zone(), d, static_cast<int>(p.arity() - 1), flags);
564 Node* stub_code = jsgraph()->HeapConstant(stub.GetCode()); 564 Node* stub_code = jsgraph()->HeapConstant(stub.GetCode());
565 node->InsertInput(zone(), 0, stub_code); 565 node->InsertInput(zone(), 0, stub_code);
566 NodeProperties::ChangeOp(node, common()->Call(desc)); 566 NodeProperties::ChangeOp(node, common()->Call(desc));
567 } 567 }
568 568
569 569
570 void JSGenericLowering::LowerJSCallRuntime(Node* node) { 570 void JSGenericLowering::LowerJSCallRuntime(Node* node) {
571 const CallRuntimeParameters& p = CallRuntimeParametersOf(node->op()); 571 const CallRuntimeParameters& p = CallRuntimeParametersOf(node->op());
572 AdjustFrameStatesForCall(node);
572 ReplaceWithRuntimeCall(node, p.id(), static_cast<int>(p.arity())); 573 ReplaceWithRuntimeCall(node, p.id(), static_cast<int>(p.arity()));
573 } 574 }
574 575
575 576
576 void JSGenericLowering::LowerJSForInDone(Node* node) { 577 void JSGenericLowering::LowerJSForInDone(Node* node) {
577 ReplaceWithRuntimeCall(node, Runtime::kForInDone); 578 ReplaceWithRuntimeCall(node, Runtime::kForInDone);
578 } 579 }
579 580
580 581
581 void JSGenericLowering::LowerJSForInNext(Node* node) { 582 void JSGenericLowering::LowerJSForInNext(Node* node) {
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 } 840 }
840 841
841 842
842 MachineOperatorBuilder* JSGenericLowering::machine() const { 843 MachineOperatorBuilder* JSGenericLowering::machine() const {
843 return jsgraph()->machine(); 844 return jsgraph()->machine();
844 } 845 }
845 846
846 } // namespace compiler 847 } // namespace compiler
847 } // namespace internal 848 } // namespace internal
848 } // namespace v8 849 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/compiler/js-inlining.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698