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

Side by Side Diff: src/compiler/bytecode-graph-builder.cc

Issue 1906823002: Move of the type feedback vector to the closure. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 4 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 unified diff | Download patch
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/compiler/js-create-lowering.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 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/bytecode-graph-builder.h" 5 #include "src/compiler/bytecode-graph-builder.h"
6 6
7 #include "src/compiler/bytecode-branch-analysis.h" 7 #include "src/compiler/bytecode-branch-analysis.h"
8 #include "src/compiler/linkage.h" 8 #include "src/compiler/linkage.h"
9 #include "src/compiler/operator-properties.h" 9 #include "src/compiler/operator-properties.h"
10 #include "src/interpreter/bytecodes.h" 10 #include "src/interpreter/bytecodes.h"
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 } 429 }
430 430
431 BytecodeGraphBuilder::BytecodeGraphBuilder(Zone* local_zone, 431 BytecodeGraphBuilder::BytecodeGraphBuilder(Zone* local_zone,
432 CompilationInfo* info, 432 CompilationInfo* info,
433 JSGraph* jsgraph) 433 JSGraph* jsgraph)
434 : local_zone_(local_zone), 434 : local_zone_(local_zone),
435 jsgraph_(jsgraph), 435 jsgraph_(jsgraph),
436 bytecode_array_(handle(info->shared_info()->bytecode_array())), 436 bytecode_array_(handle(info->shared_info()->bytecode_array())),
437 exception_handler_table_( 437 exception_handler_table_(
438 handle(HandlerTable::cast(bytecode_array()->handler_table()))), 438 handle(HandlerTable::cast(bytecode_array()->handler_table()))),
439 feedback_vector_(handle(info->shared_info()->feedback_vector())), 439 feedback_vector_(handle(info->closure()->feedback_vector())),
440 frame_state_function_info_(common()->CreateFrameStateFunctionInfo( 440 frame_state_function_info_(common()->CreateFrameStateFunctionInfo(
441 FrameStateType::kInterpretedFunction, 441 FrameStateType::kInterpretedFunction,
442 bytecode_array()->parameter_count(), 442 bytecode_array()->parameter_count(),
443 bytecode_array()->register_count(), info->shared_info())), 443 bytecode_array()->register_count(), info->shared_info())),
444 merge_environments_(local_zone), 444 merge_environments_(local_zone),
445 exception_handlers_(local_zone), 445 exception_handlers_(local_zone),
446 current_exception_handler_(0), 446 current_exception_handler_(0),
447 input_buffer_size_(0), 447 input_buffer_size_(0),
448 input_buffer_(nullptr), 448 input_buffer_(nullptr),
449 exit_controls_(local_zone) {} 449 exit_controls_(local_zone) {}
(...skipping 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after
1723 // Phi does not exist yet, introduce one. 1723 // Phi does not exist yet, introduce one.
1724 value = NewPhi(inputs, value, control); 1724 value = NewPhi(inputs, value, control);
1725 value->ReplaceInput(inputs - 1, other); 1725 value->ReplaceInput(inputs - 1, other);
1726 } 1726 }
1727 return value; 1727 return value;
1728 } 1728 }
1729 1729
1730 } // namespace compiler 1730 } // namespace compiler
1731 } // namespace internal 1731 } // namespace internal
1732 } // namespace v8 1732 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/compiler/js-create-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698