| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "rewriter.h" | 7 #include "src/rewriter.h" |
| 8 | 8 |
| 9 #include "ast.h" | 9 #include "src/ast.h" |
| 10 #include "compiler.h" | 10 #include "src/compiler.h" |
| 11 #include "scopes.h" | 11 #include "src/scopes.h" |
| 12 | 12 |
| 13 namespace v8 { | 13 namespace v8 { |
| 14 namespace internal { | 14 namespace internal { |
| 15 | 15 |
| 16 class Processor: public AstVisitor { | 16 class Processor: public AstVisitor { |
| 17 public: | 17 public: |
| 18 Processor(Variable* result, Zone* zone) | 18 Processor(Variable* result, Zone* zone) |
| 19 : result_(result), | 19 : result_(result), |
| 20 result_assigned_(false), | 20 result_assigned_(false), |
| 21 is_set_(false), | 21 is_set_(false), |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 processor.factory()->NewReturnStatement(result_proxy, pos); | 256 processor.factory()->NewReturnStatement(result_proxy, pos); |
| 257 body->Add(result_statement, info->zone()); | 257 body->Add(result_statement, info->zone()); |
| 258 } | 258 } |
| 259 } | 259 } |
| 260 | 260 |
| 261 return true; | 261 return true; |
| 262 } | 262 } |
| 263 | 263 |
| 264 | 264 |
| 265 } } // namespace v8::internal | 265 } } // namespace v8::internal |
| OLD | NEW |