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

Unified Diff: src/crankshaft/hydrogen.h

Issue 2109773004: Move RelocInfo::kNoPosition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@removedead
Patch Set: rebase 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/compiler/source-position.h ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/crankshaft/hydrogen.h
diff --git a/src/crankshaft/hydrogen.h b/src/crankshaft/hydrogen.h
index 8ecfaa4d6f17fd5daffa032c1c40273e6547b8ac..7c972652d8c638b805faf6e458f3398e4c0884c9 100644
--- a/src/crankshaft/hydrogen.h
+++ b/src/crankshaft/hydrogen.h
@@ -14,6 +14,7 @@
#include "src/compiler.h"
#include "src/crankshaft/compilation-phase.h"
#include "src/crankshaft/hydrogen-instructions.h"
+#include "src/globals.h"
#include "src/parsing/parser.h"
#include "src/zone.h"
@@ -1923,7 +1924,7 @@ class HGraphBuilder {
protected:
void SetSourcePosition(int position) {
- if (position != RelocInfo::kNoPosition) {
+ if (position != kNoSourcePosition) {
position_.set_position(position - start_position_);
}
// Otherwise position remains unknown.
@@ -1940,7 +1941,7 @@ class HGraphBuilder {
// the SourcePosition assuming that this position corresponds to the
// same function as current position_.
SourcePosition ScriptPositionToSourcePosition(int position) {
- if (position == RelocInfo::kNoPosition) {
+ if (position == kNoSourcePosition) {
return SourcePosition::Unknown();
}
SourcePosition pos = position_;
« no previous file with comments | « src/compiler/source-position.h ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698