OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 | 298 |
299 void AstTyper::VisitDebuggerStatement(DebuggerStatement* stmt) { | 299 void AstTyper::VisitDebuggerStatement(DebuggerStatement* stmt) { |
300 store_.Forget(); // May do whatever. | 300 store_.Forget(); // May do whatever. |
301 } | 301 } |
302 | 302 |
303 | 303 |
304 void AstTyper::VisitFunctionLiteral(FunctionLiteral* expr) { | 304 void AstTyper::VisitFunctionLiteral(FunctionLiteral* expr) { |
305 } | 305 } |
306 | 306 |
307 | 307 |
308 void AstTyper::VisitSharedFunctionInfoLiteral(SharedFunctionInfoLiteral* expr) { | 308 void AstTyper::VisitNativeFunctionLiteral(NativeFunctionLiteral* expr) { |
309 } | 309 } |
310 | 310 |
311 | 311 |
312 void AstTyper::VisitConditional(Conditional* expr) { | 312 void AstTyper::VisitConditional(Conditional* expr) { |
313 // Collect type feedback. | 313 // Collect type feedback. |
314 expr->condition()->RecordToBooleanTypeFeedback(oracle()); | 314 expr->condition()->RecordToBooleanTypeFeedback(oracle()); |
315 | 315 |
316 RECURSE(Visit(expr->condition())); | 316 RECURSE(Visit(expr->condition())); |
317 Effects then_effects = EnterEffects(); | 317 Effects then_effects = EnterEffects(); |
318 RECURSE(Visit(expr->then_expression())); | 318 RECURSE(Visit(expr->then_expression())); |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
695 void AstTyper::VisitModuleUrl(ModuleUrl* module) { | 695 void AstTyper::VisitModuleUrl(ModuleUrl* module) { |
696 } | 696 } |
697 | 697 |
698 | 698 |
699 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) { | 699 void AstTyper::VisitModuleStatement(ModuleStatement* stmt) { |
700 RECURSE(Visit(stmt->body())); | 700 RECURSE(Visit(stmt->body())); |
701 } | 701 } |
702 | 702 |
703 | 703 |
704 } } // namespace v8::internal | 704 } } // namespace v8::internal |
OLD | NEW |