| Index: src/rewriter.cc
|
| diff --git a/src/rewriter.cc b/src/rewriter.cc
|
| index c52051aba367d2a4ac7299353ccbf586d7a87c4e..66961278a76f0161e5152b7f5ce10aea7efc22b5 100644
|
| --- a/src/rewriter.cc
|
| +++ b/src/rewriter.cc
|
| @@ -15,13 +15,14 @@ namespace internal {
|
|
|
| class Processor: public AstVisitor {
|
| public:
|
| - Processor(Variable* result, AstValueFactory* ast_value_factory)
|
| + Processor(Isolate* isolate, Variable* result,
|
| + AstValueFactory* ast_value_factory)
|
| : result_(result),
|
| result_assigned_(false),
|
| is_set_(false),
|
| in_try_(false),
|
| factory_(ast_value_factory) {
|
| - InitializeAstVisitor(ast_value_factory->zone());
|
| + InitializeAstVisitor(isolate, ast_value_factory->zone());
|
| }
|
|
|
| virtual ~Processor() { }
|
| @@ -235,7 +236,7 @@ bool Rewriter::Rewrite(CompilationInfo* info) {
|
| scope->NewTemporary(info->ast_value_factory()->dot_result_string());
|
| // The name string must be internalized at this point.
|
| DCHECK(!result->name().is_null());
|
| - Processor processor(result, info->ast_value_factory());
|
| + Processor processor(info->isolate(), result, info->ast_value_factory());
|
| processor.Process(body);
|
| if (processor.HasStackOverflow()) return false;
|
|
|
|
|