Index: src/ast.h |
diff --git a/src/ast.h b/src/ast.h |
index cb7763bfd1cab157cd677a9c51e4c0dadcbba4d9..2ae1364d32d98df66b93b0b0fd81e71a0099e151 100644 |
--- a/src/ast.h |
+++ b/src/ast.h |
@@ -1617,6 +1617,8 @@ class FunctionLiteral: public Expression { |
bool has_only_simple_this_property_assignments, |
Handle<FixedArray> this_property_assignments, |
int num_parameters, |
+ int start_position, |
+ int end_position, |
Type type, |
bool has_duplicate_parameters) |
: Expression(isolate), |
@@ -1629,6 +1631,8 @@ class FunctionLiteral: public Expression { |
has_only_simple_this_property_assignments), |
this_property_assignments_(this_property_assignments), |
num_parameters_(num_parameters), |
+ start_position_(start_position), |
+ end_position_(end_position), |
function_token_position_(RelocInfo::kNoPosition), |
inferred_name_(HEAP->empty_string()), |
is_expression_(type != DECLARATION), |
@@ -1644,8 +1648,8 @@ class FunctionLiteral: public Expression { |
ZoneList<Statement*>* body() const { return body_; } |
void set_function_token_position(int pos) { function_token_position_ = pos; } |
int function_token_position() const { return function_token_position_; } |
- int start_position() const; |
- int end_position() const; |
+ int start_position() const { return start_position_; } |
+ int end_position() const { return end_position_; } |
bool is_expression() const { return is_expression_; } |
bool is_anonymous() const { return is_anonymous_; } |
bool strict_mode() const; |