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

Unified Diff: src/full-codegen/full-codegen.h

Issue 2095893002: Use source position table for unoptimized code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix gc mole 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/factory.cc ('k') | src/full-codegen/full-codegen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/full-codegen/full-codegen.h
diff --git a/src/full-codegen/full-codegen.h b/src/full-codegen/full-codegen.h
index 87367ca055fe11ff717b84eae5ece4bdb4678884..f6618fd58f00c15ee30d67ffaf13758cc061979a 100644
--- a/src/full-codegen/full-codegen.h
+++ b/src/full-codegen/full-codegen.h
@@ -47,6 +47,7 @@ class FullCodeGenerator: public AstVisitor {
info->zone()),
back_edges_(2, info->zone()),
handler_table_(info->zone()),
+ source_position_table_builder_(info->isolate(), info->zone()),
ic_total_count_(0) {
DCHECK(!info->IsStub());
Initialize();
@@ -685,6 +686,9 @@ class FullCodeGenerator: public AstVisitor {
SetCallPosition(expr);
}
+ void RecordStatementPosition(int pos);
+ void RecordPosition(int pos);
+
// Non-local control flow support.
void EnterTryBlock(int handler_index, Label* handler);
void ExitTryBlock(int handler_index);
@@ -977,6 +981,7 @@ class FullCodeGenerator: public AstVisitor {
ZoneList<BailoutEntry> bailout_entries_;
ZoneList<BackEdgeEntry> back_edges_;
ZoneVector<HandlerTableEntry> handler_table_;
+ SourcePositionTableBuilder source_position_table_builder_;
int ic_total_count_;
Handle<Cell> profiling_counter_;
« no previous file with comments | « src/factory.cc ('k') | src/full-codegen/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698