Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index 41b3a31f0e1169068eaf2968fe55b67fc3904ee4..48e57116f8877e93563920ebb1abea7c1c3c4371 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -212,7 +212,7 @@ class ParserBase : public Traits { |
return next_materialized_literal_index_++; |
} |
int materialized_literal_count() { |
- return next_materialized_literal_index_ - JSFunction::kLiteralsPrefixSize; |
+ return next_materialized_literal_index_; |
} |
int NextHandlerIndex() { return next_handler_index_++; } |
@@ -1664,7 +1664,7 @@ template <class Traits> |
ParserBase<Traits>::FunctionState::FunctionState( |
FunctionState** function_state_stack, Scope** scope_stack, Scope* scope, |
FunctionKind kind, typename Traits::Type::Factory* factory) |
- : next_materialized_literal_index_(JSFunction::kLiteralsPrefixSize), |
+ : next_materialized_literal_index_(0), |
next_handler_index_(0), |
expected_property_count_(0), |
kind_(kind), |