Index: src/parser.h |
diff --git a/src/parser.h b/src/parser.h |
index 71f5d396e4e853c2bd27c0899813b847d0bfb7b9..13a36035852201676e3045773de22495041dc15a 100644 |
--- a/src/parser.h |
+++ b/src/parser.h |
@@ -668,9 +668,12 @@ class Parser { |
Expression* NewCall(Expression* expression, |
ZoneList<Expression*>* arguments, |
int pos) { |
- return new(zone()) Call(expression, arguments, pos); |
+ return new(zone()) Call(isolate(), expression, arguments, pos); |
} |
+ inline Literal* NewLiteral(Handle<Object> handle) { |
+ return new(zone()) Literal(isolate(), handle); |
+ } |
// Create a number literal. |
Literal* NewNumberLiteral(double value); |