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

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

Issue 2788413004: [inspector] cache stack frame for call sites (Closed)
Patch Set: reverted v8-debugger change Created 3 years, 8 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/api.cc ('k') | src/debug/debug.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/ast/ast.h" 7 #include "src/ast/ast.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/compiler/access-builder.h" 9 #include "src/compiler/access-builder.h"
10 #include "src/compiler/compiler-source-position-table.h" 10 #include "src/compiler/compiler-source-position-table.h"
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 631
632 void BytecodeGraphBuilder::VisitBytecodes(bool stack_check) { 632 void BytecodeGraphBuilder::VisitBytecodes(bool stack_check) {
633 BytecodeAnalysis bytecode_analysis(bytecode_array(), local_zone(), 633 BytecodeAnalysis bytecode_analysis(bytecode_array(), local_zone(),
634 FLAG_analyze_environment_liveness); 634 FLAG_analyze_environment_liveness);
635 bytecode_analysis.Analyze(osr_ast_id_); 635 bytecode_analysis.Analyze(osr_ast_id_);
636 set_bytecode_analysis(&bytecode_analysis); 636 set_bytecode_analysis(&bytecode_analysis);
637 637
638 interpreter::BytecodeArrayIterator iterator(bytecode_array()); 638 interpreter::BytecodeArrayIterator iterator(bytecode_array());
639 set_bytecode_iterator(&iterator); 639 set_bytecode_iterator(&iterator);
640 SourcePositionTableIterator source_position_iterator( 640 SourcePositionTableIterator source_position_iterator(
641 bytecode_array()->source_position_table()); 641 bytecode_array()->SourcePositionTable());
642 642
643 if (FLAG_trace_environment_liveness) { 643 if (FLAG_trace_environment_liveness) {
644 OFStream of(stdout); 644 OFStream of(stdout);
645 645
646 bytecode_analysis.PrintLivenessTo(of); 646 bytecode_analysis.PrintLivenessTo(of);
647 } 647 }
648 648
649 BuildOSRNormalEntryPoint(); 649 BuildOSRNormalEntryPoint();
650 650
651 for (; !iterator.done(); iterator.Advance()) { 651 for (; !iterator.done(); iterator.Advance()) {
(...skipping 2180 matching lines...) Expand 10 before | Expand all | Expand 10 after
2832 it->source_position().ScriptOffset(), start_position_.InliningId())); 2832 it->source_position().ScriptOffset(), start_position_.InliningId()));
2833 it->Advance(); 2833 it->Advance();
2834 } else { 2834 } else {
2835 DCHECK_GT(it->code_offset(), offset); 2835 DCHECK_GT(it->code_offset(), offset);
2836 } 2836 }
2837 } 2837 }
2838 2838
2839 } // namespace compiler 2839 } // namespace compiler
2840 } // namespace internal 2840 } // namespace internal
2841 } // namespace v8 2841 } // namespace v8
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/debug/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698