OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 2613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2624 ASSERT(context->IsValue()); | 2624 ASSERT(context->IsValue()); |
2625 CHECK_ALIVE(VisitForValue(stmt->expression())); | 2625 CHECK_ALIVE(VisitForValue(stmt->expression())); |
2626 HValue* return_value = environment()->Pop(); | 2626 HValue* return_value = environment()->Pop(); |
2627 current_block()->AddLeaveInlined(return_value, function_return()); | 2627 current_block()->AddLeaveInlined(return_value, function_return()); |
2628 } | 2628 } |
2629 set_current_block(NULL); | 2629 set_current_block(NULL); |
2630 } | 2630 } |
2631 } | 2631 } |
2632 | 2632 |
2633 | 2633 |
2634 void HGraphBuilder::VisitEnterWithContextStatement( | 2634 void HGraphBuilder::VisitWithStatement(WithStatement* stmt) { |
2635 EnterWithContextStatement* stmt) { | |
2636 ASSERT(!HasStackOverflow()); | 2635 ASSERT(!HasStackOverflow()); |
2637 ASSERT(current_block() != NULL); | 2636 ASSERT(current_block() != NULL); |
2638 ASSERT(current_block()->HasPredecessor()); | 2637 ASSERT(current_block()->HasPredecessor()); |
2639 return Bailout("EnterWithContextStatement"); | 2638 return Bailout("WithStatement"); |
2640 } | 2639 } |
2641 | 2640 |
2642 | 2641 |
2643 void HGraphBuilder::VisitExitContextStatement(ExitContextStatement* stmt) { | 2642 void HGraphBuilder::VisitExitContextStatement(ExitContextStatement* stmt) { |
2644 ASSERT(!HasStackOverflow()); | 2643 ASSERT(!HasStackOverflow()); |
2645 ASSERT(current_block() != NULL); | 2644 ASSERT(current_block() != NULL); |
2646 ASSERT(current_block()->HasPredecessor()); | 2645 ASSERT(current_block()->HasPredecessor()); |
2647 return Bailout("ExitContextStatement"); | 2646 return Bailout("ExitContextStatement"); |
2648 } | 2647 } |
2649 | 2648 |
(...skipping 4097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6747 } | 6746 } |
6748 } | 6747 } |
6749 | 6748 |
6750 #ifdef DEBUG | 6749 #ifdef DEBUG |
6751 if (graph_ != NULL) graph_->Verify(); | 6750 if (graph_ != NULL) graph_->Verify(); |
6752 if (allocator_ != NULL) allocator_->Verify(); | 6751 if (allocator_ != NULL) allocator_->Verify(); |
6753 #endif | 6752 #endif |
6754 } | 6753 } |
6755 | 6754 |
6756 } } // namespace v8::internal | 6755 } } // namespace v8::internal |
OLD | NEW |