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 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 | 607 |
608 void CodeGenSelector::VisitVariableProxy(VariableProxy* expr) { | 608 void CodeGenSelector::VisitVariableProxy(VariableProxy* expr) { |
609 Expression* rewrite = expr->var()->rewrite(); | 609 Expression* rewrite = expr->var()->rewrite(); |
610 if (rewrite == NULL) BAILOUT("global variable reference"); | 610 if (rewrite == NULL) BAILOUT("global variable reference"); |
611 Visit(rewrite); | 611 Visit(rewrite); |
612 } | 612 } |
613 | 613 |
614 | 614 |
615 void CodeGenSelector::VisitLiteral(Literal* expr) { | 615 void CodeGenSelector::VisitLiteral(Literal* expr) { |
616 // All literals are supported. | 616 // All literals are supported. |
| 617 expr->set_location(Location::Constant()); |
617 } | 618 } |
618 | 619 |
619 | 620 |
620 void CodeGenSelector::VisitRegExpLiteral(RegExpLiteral* expr) { | 621 void CodeGenSelector::VisitRegExpLiteral(RegExpLiteral* expr) { |
621 BAILOUT("RegExpLiteral"); | 622 BAILOUT("RegExpLiteral"); |
622 } | 623 } |
623 | 624 |
624 | 625 |
625 void CodeGenSelector::VisitObjectLiteral(ObjectLiteral* expr) { | 626 void CodeGenSelector::VisitObjectLiteral(ObjectLiteral* expr) { |
626 BAILOUT("ObjectLiteral"); | 627 BAILOUT("ObjectLiteral"); |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 | 709 |
709 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { | 710 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { |
710 BAILOUT("ThisFunction"); | 711 BAILOUT("ThisFunction"); |
711 } | 712 } |
712 | 713 |
713 #undef BAILOUT | 714 #undef BAILOUT |
714 #undef CHECK_BAILOUT | 715 #undef CHECK_BAILOUT |
715 | 716 |
716 | 717 |
717 } } // namespace v8::internal | 718 } } // namespace v8::internal |
OLD | NEW |