Index: src/rewriter.cc |
diff --git a/src/rewriter.cc b/src/rewriter.cc |
index 1ac2bb890aa868b4bf08e58a77455d28de6b5b76..e8ca5b9de67983a1a7cf368d349c582a316fbf96 100644 |
--- a/src/rewriter.cc |
+++ b/src/rewriter.cc |
@@ -67,8 +67,11 @@ class Processor: public AstVisitor { |
Expression* SetResult(Expression* value) { |
result_assigned_ = true; |
Zone* zone = isolate()->zone(); |
- VariableProxy* result_proxy = new(zone) VariableProxy(result_); |
- return new(zone) Assignment(Token::ASSIGN, result_proxy, value, |
+ VariableProxy* result_proxy = new(zone) VariableProxy(isolate(), result_); |
+ return new(zone) Assignment(isolate(), |
+ Token::ASSIGN, |
+ result_proxy, |
+ value, |
RelocInfo::kNoPosition); |
} |
@@ -230,8 +233,9 @@ bool Rewriter::Rewrite(CompilationInfo* info) { |
if (processor.HasStackOverflow()) return false; |
if (processor.result_assigned()) { |
- Zone* zone = info->isolate()->zone(); |
- VariableProxy* result_proxy = new(zone) VariableProxy(result); |
+ Isolate* isolate = info->isolate(); |
+ Zone* zone = isolate->zone(); |
+ VariableProxy* result_proxy = new(zone) VariableProxy(isolate, result); |
body->Add(new(zone) ReturnStatement(result_proxy)); |
} |
} |