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

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

Issue 2451853002: Uniform and precise source positions for inlining (Closed)
Patch Set: fixed gcmole issue Created 4 years, 1 month 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
Index: src/compiler/wasm-compiler.cc
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
index c59e5a6ae6d08871cf6e4fb0f2fb50c33710e017..1b61c1504edee8cec84e72d1f03489d4c24494d1 100644
--- a/src/compiler/wasm-compiler.cc
+++ b/src/compiler/wasm-compiler.cc
@@ -13,6 +13,7 @@
#include "src/compiler/access-builder.h"
#include "src/compiler/common-operator.h"
+#include "src/compiler/compiler-source-position-table.h"
#include "src/compiler/diamond.h"
#include "src/compiler/graph-visualizer.h"
#include "src/compiler/graph.h"
@@ -25,7 +26,6 @@
#include "src/compiler/node-matchers.h"
#include "src/compiler/pipeline.h"
#include "src/compiler/simd-scalar-lowering.h"
-#include "src/compiler/source-position.h"
#include "src/compiler/zone-stats.h"
#include "src/code-factory.h"
@@ -3086,9 +3086,8 @@ void WasmGraphBuilder::SimdScalarLoweringForTesting() {
void WasmGraphBuilder::SetSourcePosition(Node* node,
wasm::WasmCodePosition position) {
DCHECK_NE(position, wasm::kNoCodePosition);
- compiler::SourcePosition pos(position);
if (source_position_table_)
- source_position_table_->SetSourcePosition(node, pos);
+ source_position_table_->SetSourcePosition(node, SourcePosition(position));
}
Node* WasmGraphBuilder::CreateS128Value(int32_t value) {

Powered by Google App Engine
This is Rietveld 408576698