Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: src/compiler.cc

Issue 339004: Eliminate the constant location used for literals in the AST.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698