| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 "src/typing.h" | 5 #include "src/typing.h" |
| 6 | 6 |
| 7 #include "src/frames.h" | 7 #include "src/frames.h" |
| 8 #include "src/frames-inl.h" | 8 #include "src/frames-inl.h" |
| 9 #include "src/ostreams.h" | 9 #include "src/ostreams.h" |
| 10 #include "src/parser.h" // for CompileTimeValue; TODO(rossberg): should move | 10 #include "src/parser.h" // for CompileTimeValue; TODO(rossberg): should move |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 DCHECK(!visitor->HasStackOverflow()); \ | 31 DCHECK(!visitor->HasStackOverflow()); \ |
| 32 call; \ | 32 call; \ |
| 33 if (visitor->HasStackOverflow()) return; \ | 33 if (visitor->HasStackOverflow()) return; \ |
| 34 } while (false) | 34 } while (false) |
| 35 | 35 |
| 36 void AstTyper::Run(CompilationInfo* info) { | 36 void AstTyper::Run(CompilationInfo* info) { |
| 37 AstTyper* visitor = new(info->zone()) AstTyper(info); | 37 AstTyper* visitor = new(info->zone()) AstTyper(info); |
| 38 Scope* scope = info->scope(); | 38 Scope* scope = info->scope(); |
| 39 | 39 |
| 40 RECURSE(visitor->VisitDeclarations(scope->declarations())); | 40 RECURSE(visitor->VisitDeclarations(scope->declarations())); |
| 41 RECURSE(visitor->VisitStatements(info->function()->body())); | 41 RECURSE(visitor->VisitStatements(info->literal()->body())); |
| 42 } | 42 } |
| 43 | 43 |
| 44 #undef RECURSE | 44 #undef RECURSE |
| 45 | 45 |
| 46 | 46 |
| 47 #ifdef OBJECT_PRINT | 47 #ifdef OBJECT_PRINT |
| 48 static void PrintObserved(Variable* var, Object* value, Type* type) { | 48 static void PrintObserved(Variable* var, Object* value, Type* type) { |
| 49 OFStream os(stdout); | 49 OFStream os(stdout); |
| 50 os << " observed " << (var->IsParameter() ? "param" : "local") << " "; | 50 os << " observed " << (var->IsParameter() ? "param" : "local") << " "; |
| 51 var->name()->Print(os); | 51 var->name()->Print(os); |
| (...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) { | 783 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) { |
| 784 } | 784 } |
| 785 | 785 |
| 786 | 786 |
| 787 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) { | 787 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) { |
| 788 } | 788 } |
| 789 | 789 |
| 790 | 790 |
| 791 } // namespace internal | 791 } // namespace internal |
| 792 } // namespace v8 | 792 } // namespace v8 |
| OLD | NEW |