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

Unified Diff: src/compiler/js-inlining.cc

Issue 1169103004: [deoptimizer] Basic support inlining based on SharedFunctionInfo. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Jaros comment. Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/js-inlining.h ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-inlining.cc
diff --git a/src/compiler/js-inlining.cc b/src/compiler/js-inlining.cc
index b26b40502de250ee685c736aea4424f0ba221957..51e7f06b4ed9bb6f7b913f2bd1c181a4b62e0fff 100644
--- a/src/compiler/js-inlining.cc
+++ b/src/compiler/js-inlining.cc
@@ -211,11 +211,12 @@ Reduction JSInliner::InlineCall(Node* call, Node* frame_state, Node* start,
}
-Node* JSInliner::CreateArgumentsAdaptorFrameState(JSCallFunctionAccessor* call,
- Zone* temp_zone) {
+Node* JSInliner::CreateArgumentsAdaptorFrameState(
+ JSCallFunctionAccessor* call, Handle<SharedFunctionInfo> shared_info,
+ Zone* temp_zone) {
const Operator* op = jsgraph_->common()->FrameState(
FrameStateType::ARGUMENTS_ADAPTOR, BailoutId(-1),
- OutputFrameStateCombine::Ignore());
+ OutputFrameStateCombine::Ignore(), shared_info);
const Operator* op0 = jsgraph_->common()->StateValues(0);
Node* node0 = jsgraph_->graph()->NewNode(op0);
NodeVector params(temp_zone);
@@ -297,7 +298,8 @@ Reduction JSInliner::Reduce(Node* node) {
call.formal_arguments() < inlinee_formal_parameters) {
return NoChange();
}
- frame_state = CreateArgumentsAdaptorFrameState(&call, info.zone());
+ frame_state = CreateArgumentsAdaptorFrameState(&call, info.shared_info(),
+ info.zone());
}
return InlineCall(node, frame_state, start, end);
« no previous file with comments | « src/compiler/js-inlining.h ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698