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

Unified Diff: src/ast/ast.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/assembler.h ('k') | src/ast/scopes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast.h
diff --git a/src/ast/ast.h b/src/ast/ast.h
index 129147b13ce3fcecf4cf5b948eb92b0ea8a568b5..69756b8e64cea32a71f1d58f54ae3509994abc46 100644
--- a/src/ast/ast.h
+++ b/src/ast/ast.h
@@ -5,7 +5,6 @@
#ifndef V8_AST_AST_H_
#define V8_AST_AST_H_
-#include "src/assembler.h"
#include "src/ast/ast-value-factory.h"
#include "src/ast/modules.h"
#include "src/ast/variables.h"
@@ -13,6 +12,7 @@
#include "src/base/flags.h"
#include "src/base/smart-pointers.h"
#include "src/factory.h"
+#include "src/globals.h"
#include "src/isolate.h"
#include "src/list.h"
#include "src/parsing/token.h"
@@ -1263,7 +1263,7 @@ class SloppyBlockFunctionStatement final : public Statement {
private:
SloppyBlockFunctionStatement(Zone* zone, Statement* statement, Scope* scope)
- : Statement(zone, RelocInfo::kNoPosition),
+ : Statement(zone, kNoSourcePosition),
statement_(statement),
scope_(scope) {}
@@ -2704,7 +2704,7 @@ class FunctionLiteral final : public Expression {
materialized_literal_count_(materialized_literal_count),
expected_property_count_(expected_property_count),
parameter_count_(parameter_count),
- function_token_position_(RelocInfo::kNoPosition),
+ function_token_position_(kNoSourcePosition),
yield_count_(0) {
bitfield_ =
FunctionTypeBits::encode(function_type) | Pretenure::encode(false) |
@@ -3292,16 +3292,16 @@ class AstNodeFactory final BASE_EMBEDDED {
}
VariableProxy* NewVariableProxy(Variable* var,
- int start_position = RelocInfo::kNoPosition,
- int end_position = RelocInfo::kNoPosition) {
+ int start_position = kNoSourcePosition,
+ int end_position = kNoSourcePosition) {
return new (parser_zone_)
VariableProxy(parser_zone_, var, start_position, end_position);
}
VariableProxy* NewVariableProxy(const AstRawString* name,
Variable::Kind variable_kind,
- int start_position = RelocInfo::kNoPosition,
- int end_position = RelocInfo::kNoPosition) {
+ int start_position = kNoSourcePosition,
+ int end_position = kNoSourcePosition) {
DCHECK_NOT_NULL(name);
return new (parser_zone_) VariableProxy(parser_zone_, name, variable_kind,
start_position, end_position);
« no previous file with comments | « src/assembler.h ('k') | src/ast/scopes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698