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

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

Issue 1813803002: [compiler] Allocate SharedFunctionInfo before compile. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments. Created 4 years, 9 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.cc ('k') | src/factory.h » ('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 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_(info->feedback_vector()), 447 feedback_vector_(handle(info->shared_info()->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 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after
1756 // Phi does not exist yet, introduce one. 1756 // Phi does not exist yet, introduce one.
1757 value = NewPhi(inputs, value, control); 1757 value = NewPhi(inputs, value, control);
1758 value->ReplaceInput(inputs - 1, other); 1758 value->ReplaceInput(inputs - 1, other);
1759 } 1759 }
1760 return value; 1760 return value;
1761 } 1761 }
1762 1762
1763 } // namespace compiler 1763 } // namespace compiler
1764 } // namespace internal 1764 } // namespace internal
1765 } // namespace v8 1765 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698