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 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 AstVisitor::Visit(expr); | 906 AstVisitor::Visit(expr); |
907 forward_bailout_stack_ = saved; | 907 forward_bailout_stack_ = saved; |
908 } | 908 } |
909 | 909 |
910 | 910 |
911 void FullCodeGenerator::VisitBlock(Block* stmt) { | 911 void FullCodeGenerator::VisitBlock(Block* stmt) { |
912 Comment cmnt(masm_, "[ Block"); | 912 Comment cmnt(masm_, "[ Block"); |
913 Breakable nested_statement(this, stmt); | 913 Breakable nested_statement(this, stmt); |
914 SetStatementPosition(stmt); | 914 SetStatementPosition(stmt); |
915 | 915 |
916 PrepareForBailoutForId(stmt->EntryId(), TOS_REG); | 916 PrepareForBailoutForId(stmt->EntryId(), NO_REGISTERS); |
917 VisitStatements(stmt->statements()); | 917 VisitStatements(stmt->statements()); |
918 __ bind(nested_statement.break_target()); | 918 __ bind(nested_statement.break_target()); |
919 PrepareForBailoutForId(stmt->ExitId(), NO_REGISTERS); | 919 PrepareForBailoutForId(stmt->ExitId(), NO_REGISTERS); |
920 } | 920 } |
921 | 921 |
922 | 922 |
923 void FullCodeGenerator::VisitExpressionStatement(ExpressionStatement* stmt) { | 923 void FullCodeGenerator::VisitExpressionStatement(ExpressionStatement* stmt) { |
924 Comment cmnt(masm_, "[ ExpressionStatement"); | 924 Comment cmnt(masm_, "[ ExpressionStatement"); |
925 SetStatementPosition(stmt); | 925 SetStatementPosition(stmt); |
926 VisitForEffect(stmt->expression()); | 926 VisitForEffect(stmt->expression()); |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1385 __ Drop(stack_depth); | 1385 __ Drop(stack_depth); |
1386 __ PopTryHandler(); | 1386 __ PopTryHandler(); |
1387 return 0; | 1387 return 0; |
1388 } | 1388 } |
1389 | 1389 |
1390 | 1390 |
1391 #undef __ | 1391 #undef __ |
1392 | 1392 |
1393 | 1393 |
1394 } } // namespace v8::internal | 1394 } } // namespace v8::internal |
OLD | NEW |