Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 8d2d2146247f7b93f5387cf8625d8fe7da0f3a92..2aab01ffcb4e597a7d563590857ba219ebf17b90 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -35,6 +35,7 @@ |
#include "src/crankshaft/typing.h" |
#include "src/field-type.h" |
#include "src/full-codegen/full-codegen.h" |
+#include "src/globals.h" |
#include "src/ic/call-optimization.h" |
#include "src/ic/ic.h" |
// GetRootConstructor |
@@ -78,7 +79,7 @@ class HOptimizedGraphBuilderWithPositions : public HOptimizedGraphBuilder { |
#define DEF_VISIT(type) \ |
void Visit##type(type* node) override { \ |
SourcePosition old_position = SourcePosition::Unknown(); \ |
- if (node->position() != RelocInfo::kNoPosition) { \ |
+ if (node->position() != kNoSourcePosition) { \ |
old_position = source_position(); \ |
SetSourcePosition(node->position()); \ |
} \ |
@@ -93,7 +94,7 @@ class HOptimizedGraphBuilderWithPositions : public HOptimizedGraphBuilder { |
#define DEF_VISIT(type) \ |
void Visit##type(type* node) override { \ |
SourcePosition old_position = SourcePosition::Unknown(); \ |
- if (node->position() != RelocInfo::kNoPosition) { \ |
+ if (node->position() != kNoSourcePosition) { \ |
old_position = source_position(); \ |
SetSourcePosition(node->position()); \ |
} \ |