| 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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 store_.Forget(); // Control may transfer here via 'throw'. | 339 store_.Forget(); // Control may transfer here via 'throw'. |
| 340 RECURSE(Visit(stmt->finally_block())); | 340 RECURSE(Visit(stmt->finally_block())); |
| 341 } | 341 } |
| 342 | 342 |
| 343 | 343 |
| 344 void AstTyper::VisitDebuggerStatement(DebuggerStatement* stmt) { | 344 void AstTyper::VisitDebuggerStatement(DebuggerStatement* stmt) { |
| 345 store_.Forget(); // May do whatever. | 345 store_.Forget(); // May do whatever. |
| 346 } | 346 } |
| 347 | 347 |
| 348 | 348 |
| 349 void AstTyper::VisitFunctionLiteral(FunctionLiteral* expr) {} | 349 void AstTyper::VisitFunctionLiteral(FunctionLiteral* expr) { |
| 350 expr->InitializeSharedInfo(Handle<Code>(info_->closure()->shared()->code())); |
| 351 } |
| 350 | 352 |
| 351 | 353 |
| 352 void AstTyper::VisitClassLiteral(ClassLiteral* expr) {} | 354 void AstTyper::VisitClassLiteral(ClassLiteral* expr) {} |
| 353 | 355 |
| 354 | 356 |
| 355 void AstTyper::VisitNativeFunctionLiteral(NativeFunctionLiteral* expr) { | 357 void AstTyper::VisitNativeFunctionLiteral(NativeFunctionLiteral* expr) { |
| 356 } | 358 } |
| 357 | 359 |
| 358 | 360 |
| 359 void AstTyper::VisitConditional(Conditional* expr) { | 361 void AstTyper::VisitConditional(Conditional* expr) { |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) { | 787 void AstTyper::VisitImportDeclaration(ImportDeclaration* declaration) { |
| 786 } | 788 } |
| 787 | 789 |
| 788 | 790 |
| 789 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) { | 791 void AstTyper::VisitExportDeclaration(ExportDeclaration* declaration) { |
| 790 } | 792 } |
| 791 | 793 |
| 792 | 794 |
| 793 } // namespace internal | 795 } // namespace internal |
| 794 } // namespace v8 | 796 } // namespace v8 |
| OLD | NEW |