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

Side by Side Diff: src/compiler.cc

Issue 491077: Fast codegen: Implement with. (Closed)
Patch Set: Created 11 years 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
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 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 void CodeGenSelector::VisitBreakStatement(BreakStatement* stmt) { 696 void CodeGenSelector::VisitBreakStatement(BreakStatement* stmt) {
697 } 697 }
698 698
699 699
700 void CodeGenSelector::VisitReturnStatement(ReturnStatement* stmt) { 700 void CodeGenSelector::VisitReturnStatement(ReturnStatement* stmt) {
701 ProcessExpression(stmt->expression(), Expression::kValue); 701 ProcessExpression(stmt->expression(), Expression::kValue);
702 } 702 }
703 703
704 704
705 void CodeGenSelector::VisitWithEnterStatement(WithEnterStatement* stmt) { 705 void CodeGenSelector::VisitWithEnterStatement(WithEnterStatement* stmt) {
706 BAILOUT("WithEnterStatement"); 706 ProcessExpression(stmt->expression(), Expression::kValue);
707 } 707 }
708 708
709 709
710 void CodeGenSelector::VisitWithExitStatement(WithExitStatement* stmt) { 710 void CodeGenSelector::VisitWithExitStatement(WithExitStatement* stmt) {
711 BAILOUT("WithExitStatement"); 711 // Supported.
712 } 712 }
713 713
714 714
715 void CodeGenSelector::VisitSwitchStatement(SwitchStatement* stmt) { 715 void CodeGenSelector::VisitSwitchStatement(SwitchStatement* stmt) {
716 BAILOUT("SwitchStatement"); 716 BAILOUT("SwitchStatement");
717 } 717 }
718 718
719 719
720 void CodeGenSelector::VisitDoWhileStatement(DoWhileStatement* stmt) { 720 void CodeGenSelector::VisitDoWhileStatement(DoWhileStatement* stmt) {
721 // We do not handle loops with breaks or continue statements in their 721 // We do not handle loops with breaks or continue statements in their
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 1109
1110 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { 1110 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) {
1111 // ThisFunction is supported. 1111 // ThisFunction is supported.
1112 } 1112 }
1113 1113
1114 #undef BAILOUT 1114 #undef BAILOUT
1115 #undef CHECK_BAILOUT 1115 #undef CHECK_BAILOUT
1116 1116
1117 1117
1118 } } // namespace v8::internal 1118 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/fast-codegen-arm.cc ('k') | src/fast-codegen.h » ('j') | src/fast-codegen.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698