| Index: src/rewriter.cc
|
| ===================================================================
|
| --- src/rewriter.cc (revision 8778)
|
| +++ src/rewriter.cc (working copy)
|
| @@ -66,9 +66,13 @@
|
|
|
| Expression* SetResult(Expression* value) {
|
| result_assigned_ = true;
|
| - VariableProxy* result_proxy = new VariableProxy(result_);
|
| - return new Assignment(Token::ASSIGN, result_proxy, value,
|
| - RelocInfo::kNoPosition);
|
| + Zone* zone = isolate()->zone();
|
| + VariableProxy* result_proxy = new(zone) VariableProxy(isolate(), result_);
|
| + return new(zone) Assignment(isolate(),
|
| + Token::ASSIGN,
|
| + result_proxy,
|
| + value,
|
| + RelocInfo::kNoPosition);
|
| }
|
|
|
| // Node visitors.
|
| @@ -229,8 +233,10 @@
|
| if (processor.HasStackOverflow()) return false;
|
|
|
| if (processor.result_assigned()) {
|
| - VariableProxy* result_proxy = new VariableProxy(result);
|
| - body->Add(new ReturnStatement(result_proxy));
|
| + Isolate* isolate = info->isolate();
|
| + Zone* zone = isolate->zone();
|
| + VariableProxy* result_proxy = new(zone) VariableProxy(isolate, result);
|
| + body->Add(new(zone) ReturnStatement(result_proxy));
|
| }
|
| }
|
|
|
|
|