| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 void FlowGraphBuilder::VisitDebuggerStatement(DebuggerStatement* stmt) { | 388 void FlowGraphBuilder::VisitDebuggerStatement(DebuggerStatement* stmt) { |
| 389 SetStackOverflow(); | 389 SetStackOverflow(); |
| 390 } | 390 } |
| 391 | 391 |
| 392 | 392 |
| 393 void FlowGraphBuilder::VisitFunctionLiteral(FunctionLiteral* expr) { | 393 void FlowGraphBuilder::VisitFunctionLiteral(FunctionLiteral* expr) { |
| 394 SetStackOverflow(); | 394 SetStackOverflow(); |
| 395 } | 395 } |
| 396 | 396 |
| 397 | 397 |
| 398 void FlowGraphBuilder::VisitFunctionBoilerplateLiteral( | 398 void FlowGraphBuilder::VisitSharedFunctionInfoLiteral( |
| 399 FunctionBoilerplateLiteral* expr) { | 399 SharedFunctionInfoLiteral* expr) { |
| 400 SetStackOverflow(); | 400 SetStackOverflow(); |
| 401 } | 401 } |
| 402 | 402 |
| 403 | 403 |
| 404 void FlowGraphBuilder::VisitConditional(Conditional* expr) { | 404 void FlowGraphBuilder::VisitConditional(Conditional* expr) { |
| 405 SetStackOverflow(); | 405 SetStackOverflow(); |
| 406 } | 406 } |
| 407 | 407 |
| 408 | 408 |
| 409 void FlowGraphBuilder::VisitSlot(Slot* expr) { | 409 void FlowGraphBuilder::VisitSlot(Slot* expr) { |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 DebuggerStatement* stmt) { | 710 DebuggerStatement* stmt) { |
| 711 UNREACHABLE(); | 711 UNREACHABLE(); |
| 712 } | 712 } |
| 713 | 713 |
| 714 | 714 |
| 715 void AstLabeler::VisitFunctionLiteral(FunctionLiteral* expr) { | 715 void AstLabeler::VisitFunctionLiteral(FunctionLiteral* expr) { |
| 716 UNREACHABLE(); | 716 UNREACHABLE(); |
| 717 } | 717 } |
| 718 | 718 |
| 719 | 719 |
| 720 void AstLabeler::VisitFunctionBoilerplateLiteral( | 720 void AstLabeler::VisitSharedFunctionInfoLiteral( |
| 721 FunctionBoilerplateLiteral* expr) { | 721 SharedFunctionInfoLiteral* expr) { |
| 722 UNREACHABLE(); | 722 UNREACHABLE(); |
| 723 } | 723 } |
| 724 | 724 |
| 725 | 725 |
| 726 void AstLabeler::VisitConditional(Conditional* expr) { | 726 void AstLabeler::VisitConditional(Conditional* expr) { |
| 727 UNREACHABLE(); | 727 UNREACHABLE(); |
| 728 } | 728 } |
| 729 | 729 |
| 730 | 730 |
| 731 void AstLabeler::VisitSlot(Slot* expr) { | 731 void AstLabeler::VisitSlot(Slot* expr) { |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1087 // Nothing to do. | 1087 // Nothing to do. |
| 1088 } | 1088 } |
| 1089 | 1089 |
| 1090 | 1090 |
| 1091 void AssignedVariablesAnalyzer::VisitFunctionLiteral(FunctionLiteral* expr) { | 1091 void AssignedVariablesAnalyzer::VisitFunctionLiteral(FunctionLiteral* expr) { |
| 1092 // Nothing to do. | 1092 // Nothing to do. |
| 1093 ASSERT(av_.IsEmpty()); | 1093 ASSERT(av_.IsEmpty()); |
| 1094 } | 1094 } |
| 1095 | 1095 |
| 1096 | 1096 |
| 1097 void AssignedVariablesAnalyzer::VisitFunctionBoilerplateLiteral( | 1097 void AssignedVariablesAnalyzer::VisitSharedFunctionInfoLiteral( |
| 1098 FunctionBoilerplateLiteral* expr) { | 1098 SharedFunctionInfoLiteral* expr) { |
| 1099 // Nothing to do. | 1099 // Nothing to do. |
| 1100 ASSERT(av_.IsEmpty()); | 1100 ASSERT(av_.IsEmpty()); |
| 1101 } | 1101 } |
| 1102 | 1102 |
| 1103 | 1103 |
| 1104 void AssignedVariablesAnalyzer::VisitConditional(Conditional* expr) { | 1104 void AssignedVariablesAnalyzer::VisitConditional(Conditional* expr) { |
| 1105 ASSERT(av_.IsEmpty()); | 1105 ASSERT(av_.IsEmpty()); |
| 1106 | 1106 |
| 1107 Visit(expr->condition()); | 1107 Visit(expr->condition()); |
| 1108 | 1108 |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1414 void TextInstructionPrinter::VisitDebuggerStatement(DebuggerStatement* stmt) { | 1414 void TextInstructionPrinter::VisitDebuggerStatement(DebuggerStatement* stmt) { |
| 1415 PrintF("DebuggerStatement"); | 1415 PrintF("DebuggerStatement"); |
| 1416 } | 1416 } |
| 1417 | 1417 |
| 1418 | 1418 |
| 1419 void TextInstructionPrinter::VisitFunctionLiteral(FunctionLiteral* expr) { | 1419 void TextInstructionPrinter::VisitFunctionLiteral(FunctionLiteral* expr) { |
| 1420 PrintF("FunctionLiteral"); | 1420 PrintF("FunctionLiteral"); |
| 1421 } | 1421 } |
| 1422 | 1422 |
| 1423 | 1423 |
| 1424 void TextInstructionPrinter::VisitFunctionBoilerplateLiteral( | 1424 void TextInstructionPrinter::VisitSharedFunctionInfoLiteral( |
| 1425 FunctionBoilerplateLiteral* expr) { | 1425 SharedFunctionInfoLiteral* expr) { |
| 1426 PrintF("FunctionBoilerplateLiteral"); | 1426 PrintF("SharedFunctionInfoLiteral"); |
| 1427 } | 1427 } |
| 1428 | 1428 |
| 1429 | 1429 |
| 1430 void TextInstructionPrinter::VisitConditional(Conditional* expr) { | 1430 void TextInstructionPrinter::VisitConditional(Conditional* expr) { |
| 1431 PrintF("Conditional"); | 1431 PrintF("Conditional"); |
| 1432 } | 1432 } |
| 1433 | 1433 |
| 1434 | 1434 |
| 1435 void TextInstructionPrinter::VisitSlot(Slot* expr) { | 1435 void TextInstructionPrinter::VisitSlot(Slot* expr) { |
| 1436 UNREACHABLE(); | 1436 UNREACHABLE(); |
| (...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1988 | 1988 |
| 1989 // Step 4: Based on RD_in for block nodes, propagate reaching definitions | 1989 // Step 4: Based on RD_in for block nodes, propagate reaching definitions |
| 1990 // to all variable uses in the block. | 1990 // to all variable uses in the block. |
| 1991 for (int i = 0; i < node_count; i++) { | 1991 for (int i = 0; i < node_count; i++) { |
| 1992 postorder_->at(i)->PropagateReachingDefinitions(&variables); | 1992 postorder_->at(i)->PropagateReachingDefinitions(&variables); |
| 1993 } | 1993 } |
| 1994 } | 1994 } |
| 1995 | 1995 |
| 1996 | 1996 |
| 1997 } } // namespace v8::internal | 1997 } } // namespace v8::internal |
| OLD | NEW |