| 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 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 } | 621 } |
| 622 | 622 |
| 623 | 623 |
| 624 void CodeGenSelector::VisitVariableProxy(VariableProxy* expr) { | 624 void CodeGenSelector::VisitVariableProxy(VariableProxy* expr) { |
| 625 Expression* rewrite = expr->var()->rewrite(); | 625 Expression* rewrite = expr->var()->rewrite(); |
| 626 if (rewrite != NULL) Visit(rewrite); | 626 if (rewrite != NULL) Visit(rewrite); |
| 627 } | 627 } |
| 628 | 628 |
| 629 | 629 |
| 630 void CodeGenSelector::VisitLiteral(Literal* expr) { | 630 void CodeGenSelector::VisitLiteral(Literal* expr) { |
| 631 // All literals are supported. | 631 // Literals are supported. |
| 632 expr->set_location(Location::Constant()); | |
| 633 } | 632 } |
| 634 | 633 |
| 635 | 634 |
| 636 void CodeGenSelector::VisitRegExpLiteral(RegExpLiteral* expr) { | 635 void CodeGenSelector::VisitRegExpLiteral(RegExpLiteral* expr) { |
| 637 // RegexpLiterals are supported. | 636 // RegexpLiterals are supported. |
| 638 } | 637 } |
| 639 | 638 |
| 640 | 639 |
| 641 void CodeGenSelector::VisitObjectLiteral(ObjectLiteral* expr) { | 640 void CodeGenSelector::VisitObjectLiteral(ObjectLiteral* expr) { |
| 642 for (int i = 0; i < expr->properties()->length(); i++) { | 641 for (int i = 0; i < expr->properties()->length(); i++) { |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 | 775 |
| 777 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { | 776 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { |
| 778 BAILOUT("ThisFunction"); | 777 BAILOUT("ThisFunction"); |
| 779 } | 778 } |
| 780 | 779 |
| 781 #undef BAILOUT | 780 #undef BAILOUT |
| 782 #undef CHECK_BAILOUT | 781 #undef CHECK_BAILOUT |
| 783 | 782 |
| 784 | 783 |
| 785 } } // namespace v8::internal | 784 } } // namespace v8::internal |
| OLD | NEW |