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

Unified Diff: src/compiler/wasm-compiler.h

Issue 1890803002: [wasm] Generate source position information (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@wasm-throw-error
Patch Set: avoid using std::tie 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 | « src/compiler/source-position.cc ('k') | src/compiler/wasm-compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/wasm-compiler.h
diff --git a/src/compiler/wasm-compiler.h b/src/compiler/wasm-compiler.h
index 91774c081629b4a6b3268f14eea18f39f125ded1..a27571f22b105b171b2c31cd83b2a5876c8967fa 100644
--- a/src/compiler/wasm-compiler.h
+++ b/src/compiler/wasm-compiler.h
@@ -19,6 +19,7 @@ class Node;
class JSGraph;
class Graph;
class Operator;
+class SourcePositionTable;
}
namespace wasm {
@@ -56,7 +57,9 @@ Handle<JSFunction> CompileJSToWasmWrapper(
class WasmTrapHelper;
class WasmGraphBuilder {
public:
- WasmGraphBuilder(Zone* z, JSGraph* g, wasm::FunctionSig* function_signature);
+ WasmGraphBuilder(
+ Zone* z, JSGraph* g, wasm::FunctionSig* function_signature,
+ compiler::SourcePositionTable* source_position_table = nullptr);
Node** Buffer(size_t count) {
if (count > cur_bufsize_) {
@@ -140,6 +143,8 @@ class WasmGraphBuilder {
void Int64LoweringForTesting();
+ void SetSourcePosition(Node* node, int position);
+
private:
static const int kDefaultBufferSize = 16;
friend class WasmTrapHelper;
@@ -160,6 +165,8 @@ class WasmGraphBuilder {
wasm::FunctionSig* function_signature_;
SetOncePointer<const Operator> allocate_heap_number_operator_;
+ compiler::SourcePositionTable* source_position_table_ = nullptr;
+
// Internal helper methods.
JSGraph* jsgraph() { return jsgraph_; }
Graph* graph();
« no previous file with comments | « src/compiler/source-position.cc ('k') | src/compiler/wasm-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698