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

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, 7 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
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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 } 437 }
438 438
439 BytecodeGraphBuilder::BytecodeGraphBuilder(Zone* local_zone, 439 BytecodeGraphBuilder::BytecodeGraphBuilder(Zone* local_zone,
440 CompilationInfo* info, 440 CompilationInfo* info,
441 JSGraph* jsgraph) 441 JSGraph* jsgraph)
442 : local_zone_(local_zone), 442 : local_zone_(local_zone),
443 jsgraph_(jsgraph), 443 jsgraph_(jsgraph),
444 bytecode_array_(handle(info->shared_info()->bytecode_array())), 444 bytecode_array_(handle(info->shared_info()->bytecode_array())),
445 exception_handler_table_( 445 exception_handler_table_(
446 handle(HandlerTable::cast(bytecode_array()->handler_table()))), 446 handle(HandlerTable::cast(bytecode_array()->handler_table()))),
447 feedback_vector_(handle(info->shared_info()->feedback_vector())), 447 feedback_vector_(handle(info->closure()->feedback_vector())),
448 frame_state_function_info_(common()->CreateFrameStateFunctionInfo( 448 frame_state_function_info_(common()->CreateFrameStateFunctionInfo(
449 FrameStateType::kInterpretedFunction, 449 FrameStateType::kInterpretedFunction,
450 bytecode_array()->parameter_count(), 450 bytecode_array()->parameter_count(),
451 bytecode_array()->register_count(), info->shared_info())), 451 bytecode_array()->register_count(), info->shared_info())),
452 deoptimization_enabled_(info->is_deoptimization_enabled()), 452 deoptimization_enabled_(info->is_deoptimization_enabled()),
453 merge_environments_(local_zone), 453 merge_environments_(local_zone),
454 exception_handlers_(local_zone), 454 exception_handlers_(local_zone),
455 current_exception_handler_(0), 455 current_exception_handler_(0),
456 input_buffer_size_(0), 456 input_buffer_size_(0),
457 input_buffer_(nullptr), 457 input_buffer_(nullptr),
(...skipping 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1654 // Phi does not exist yet, introduce one. 1654 // Phi does not exist yet, introduce one.
1655 value = NewPhi(inputs, value, control); 1655 value = NewPhi(inputs, value, control);
1656 value->ReplaceInput(inputs - 1, other); 1656 value->ReplaceInput(inputs - 1, other);
1657 } 1657 }
1658 return value; 1658 return value;
1659 } 1659 }
1660 1660
1661 } // namespace compiler 1661 } // namespace compiler
1662 } // namespace internal 1662 } // namespace internal
1663 } // namespace v8 1663 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698