| 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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 void AstTyper::VisitDebuggerStatement(DebuggerStatement* stmt) { | 345 void AstTyper::VisitDebuggerStatement(DebuggerStatement* stmt) { |
| 346 store_.Forget(); // May do whatever. | 346 store_.Forget(); // May do whatever. |
| 347 } | 347 } |
| 348 | 348 |
| 349 | 349 |
| 350 void AstTyper::VisitFunctionLiteral(FunctionLiteral* expr) { | 350 void AstTyper::VisitFunctionLiteral(FunctionLiteral* expr) { |
| 351 expr->InitializeSharedInfo(Handle<Code>(info_->closure()->shared()->code())); | 351 expr->InitializeSharedInfo(Handle<Code>(info_->closure()->shared()->code())); |
| 352 } | 352 } |
| 353 | 353 |
| 354 | 354 |
| 355 void AstTyper::VisitClassLiteral(ClassLiteral* expr) {} |
| 356 |
| 357 |
| 355 void AstTyper::VisitNativeFunctionLiteral(NativeFunctionLiteral* expr) { | 358 void AstTyper::VisitNativeFunctionLiteral(NativeFunctionLiteral* expr) { |
| 356 } | 359 } |
| 357 | 360 |
| 358 | 361 |
| 359 void AstTyper::VisitConditional(Conditional* expr) { | 362 void AstTyper::VisitConditional(Conditional* expr) { |
| 360 // Collect type feedback. | 363 // Collect type feedback. |
| 361 expr->condition()->RecordToBooleanTypeFeedback(oracle()); | 364 expr->condition()->RecordToBooleanTypeFeedback(oracle()); |
| 362 | 365 |
| 363 RECURSE(Visit(expr->condition())); | 366 RECURSE(Visit(expr->condition())); |
| 364 Effects then_effects = EnterEffects(); | 367 Effects then_effects = EnterEffects(); |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 void AstTyper::VisitModuleUrl(ModuleUrl* module) { | 777 void AstTyper::VisitModuleUrl(ModuleUrl* module) { |
| 775 } | 778 } |
| 776 | 779 |
| 777 | 780 |
| 778 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) { | 781 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) { |
| 779 RECURSE(Visit(stmt->body())); | 782 RECURSE(Visit(stmt->body())); |
| 780 } | 783 } |
| 781 | 784 |
| 782 | 785 |
| 783 } } // namespace v8::internal | 786 } } // namespace v8::internal |
| OLD | NEW |