OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 Visit(expr->value()); | 690 Visit(expr->value()); |
691 } | 691 } |
692 | 692 |
693 | 693 |
694 void CodeGenSelector::VisitThrow(Throw* expr) { | 694 void CodeGenSelector::VisitThrow(Throw* expr) { |
695 BAILOUT("Throw"); | 695 BAILOUT("Throw"); |
696 } | 696 } |
697 | 697 |
698 | 698 |
699 void CodeGenSelector::VisitProperty(Property* expr) { | 699 void CodeGenSelector::VisitProperty(Property* expr) { |
700 BAILOUT("Property"); | 700 Visit(expr->obj()); |
| 701 CHECK_BAILOUT; |
| 702 Visit(expr->key()); |
701 } | 703 } |
702 | 704 |
703 | 705 |
704 void CodeGenSelector::VisitCall(Call* expr) { | 706 void CodeGenSelector::VisitCall(Call* expr) { |
705 Expression* fun = expr->expression(); | 707 Expression* fun = expr->expression(); |
706 ZoneList<Expression*>* args = expr->arguments(); | 708 ZoneList<Expression*>* args = expr->arguments(); |
707 Variable* var = fun->AsVariableProxy()->AsVariable(); | 709 Variable* var = fun->AsVariableProxy()->AsVariable(); |
708 | 710 |
709 // Check for supported calls | 711 // Check for supported calls |
710 if (var != NULL && var->is_possibly_eval()) { | 712 if (var != NULL && var->is_possibly_eval()) { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 | 777 |
776 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { | 778 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { |
777 BAILOUT("ThisFunction"); | 779 BAILOUT("ThisFunction"); |
778 } | 780 } |
779 | 781 |
780 #undef BAILOUT | 782 #undef BAILOUT |
781 #undef CHECK_BAILOUT | 783 #undef CHECK_BAILOUT |
782 | 784 |
783 | 785 |
784 } } // namespace v8::internal | 786 } } // namespace v8::internal |
OLD | NEW |