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

Side by Side Diff: src/compiler/js-inlining.cc

Issue 1408123002: Revert of [turbofan] Initial support for monomorphic/polymorphic property loads. (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-graph.cc ('k') | src/compiler/pipeline.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/compiler/js-inlining.h" 5 #include "src/compiler/js-inlining.h"
6 6
7 #include "src/ast.h" 7 #include "src/ast.h"
8 #include "src/ast-numbering.h" 8 #include "src/ast-numbering.h"
9 #include "src/compiler.h" 9 #include "src/compiler.h"
10 #include "src/compiler/all-nodes.h" 10 #include "src/compiler/all-nodes.h"
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 GraphReducer graph_reducer(local_zone_, &graph, jsgraph.Dead()); 362 GraphReducer graph_reducer(local_zone_, &graph, jsgraph.Dead());
363 DeadCodeElimination dead_code_elimination(&graph_reducer, &graph, 363 DeadCodeElimination dead_code_elimination(&graph_reducer, &graph,
364 jsgraph.common()); 364 jsgraph.common());
365 CommonOperatorReducer common_reducer(&graph_reducer, &graph, 365 CommonOperatorReducer common_reducer(&graph_reducer, &graph,
366 jsgraph.common(), jsgraph.machine()); 366 jsgraph.common(), jsgraph.machine());
367 JSGlobalSpecialization global_specialization( 367 JSGlobalSpecialization global_specialization(
368 &graph_reducer, &jsgraph, 368 &graph_reducer, &jsgraph,
369 info.is_deoptimization_enabled() 369 info.is_deoptimization_enabled()
370 ? JSGlobalSpecialization::kDeoptimizationEnabled 370 ? JSGlobalSpecialization::kDeoptimizationEnabled
371 : JSGlobalSpecialization::kNoFlags, 371 : JSGlobalSpecialization::kNoFlags,
372 handle(info.global_object(), info.isolate()), info_->dependencies(), 372 handle(info.global_object(), info.isolate()), info_->dependencies());
373 local_zone_);
374 graph_reducer.AddReducer(&dead_code_elimination); 373 graph_reducer.AddReducer(&dead_code_elimination);
375 graph_reducer.AddReducer(&common_reducer); 374 graph_reducer.AddReducer(&common_reducer);
376 graph_reducer.AddReducer(&global_specialization); 375 graph_reducer.AddReducer(&global_specialization);
377 graph_reducer.ReduceGraph(); 376 graph_reducer.ReduceGraph();
378 } 377 }
379 378
380 // The inlinee specializes to the context from the JSFunction object. 379 // The inlinee specializes to the context from the JSFunction object.
381 // TODO(turbofan): We might want to load the context from the JSFunction at 380 // TODO(turbofan): We might want to load the context from the JSFunction at
382 // runtime in case we only know the SharedFunctionInfo once we have dynamic 381 // runtime in case we only know the SharedFunctionInfo once we have dynamic
383 // type feedback in the compiler. 382 // type feedback in the compiler.
(...skipping 21 matching lines...) Expand all
405 404
406 // Remember that we inlined this function. 405 // Remember that we inlined this function.
407 info_->AddInlinedFunction(info.shared_info()); 406 info_->AddInlinedFunction(info.shared_info());
408 407
409 return InlineCall(node, context, frame_state, start, end); 408 return InlineCall(node, context, frame_state, start, end);
410 } 409 }
411 410
412 } // namespace compiler 411 } // namespace compiler
413 } // namespace internal 412 } // namespace internal
414 } // namespace v8 413 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-graph.cc ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698