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

Unified Diff: src/compiler.h

Issue 1890803002: [wasm] Generate source position information (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@wasm-throw-error
Patch Set: some doc and fixes Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/pipeline.cc » ('j') | src/compiler/source-position.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.h
diff --git a/src/compiler.h b/src/compiler.h
index 88956f434fdc6c96aa0e199e97cb88a98b0b180a..b78dbee618ee5c2daf47bc3efdd2d2fe6e5cd96d 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -21,6 +21,9 @@ class JavaScriptFrame;
class OptimizedCompileJob;
class ParseInfo;
class ScriptData;
+namespace compiler {
+class SourcePositionTable;
+}
// The V8 compiler API.
//
@@ -457,6 +460,14 @@ class CompilationInfo {
StackFrame::Type GetOutputStackFrameType() const;
+ void SetSourcePositionTable(compiler::SourcePositionTable* table) {
+ source_position_table_ = table;
titzer 2016/04/18 11:03:51 I'm not sure that the CompilationInfo is the best
Michael Starzinger 2016/04/18 11:08:47 Not a fan of adding this to CompilationInfo either
Clemens Hammacher 2016/04/18 11:18:09 Sounds reasonable. I will try to change it that wa
+ }
+
+ compiler::SourcePositionTable* GetSourcePositionTable() {
+ return source_position_table_;
+ }
+
protected:
ParseInfo* parse_info_;
@@ -554,6 +565,8 @@ class CompilationInfo {
const char* debug_name_;
+ compiler::SourcePositionTable* source_position_table_ = nullptr;
+
DISALLOW_COPY_AND_ASSIGN(CompilationInfo);
};
« no previous file with comments | « no previous file | src/compiler/pipeline.cc » ('j') | src/compiler/source-position.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698