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

Side by Side Diff: src/compiler.cc

Issue 466033: Fast codegen: Working break and continue. (Closed)
Patch Set: Fixed bug in ARM PopTryHandler, merge with head. 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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 void CodeGenSelector::VisitIfStatement(IfStatement* stmt) { 683 void CodeGenSelector::VisitIfStatement(IfStatement* stmt) {
684 ProcessExpression(stmt->condition(), Expression::kTest); 684 ProcessExpression(stmt->condition(), Expression::kTest);
685 CHECK_BAILOUT; 685 CHECK_BAILOUT;
686 Visit(stmt->then_statement()); 686 Visit(stmt->then_statement());
687 CHECK_BAILOUT; 687 CHECK_BAILOUT;
688 Visit(stmt->else_statement()); 688 Visit(stmt->else_statement());
689 } 689 }
690 690
691 691
692 void CodeGenSelector::VisitContinueStatement(ContinueStatement* stmt) { 692 void CodeGenSelector::VisitContinueStatement(ContinueStatement* stmt) {
693 BAILOUT("ContinueStatement");
694 } 693 }
695 694
696 695
697 void CodeGenSelector::VisitBreakStatement(BreakStatement* stmt) { 696 void CodeGenSelector::VisitBreakStatement(BreakStatement* stmt) {
698 BAILOUT("BreakStatement");
699 } 697 }
700 698
701 699
702 void CodeGenSelector::VisitReturnStatement(ReturnStatement* stmt) { 700 void CodeGenSelector::VisitReturnStatement(ReturnStatement* stmt) {
703 ProcessExpression(stmt->expression(), Expression::kValue); 701 ProcessExpression(stmt->expression(), Expression::kValue);
704 } 702 }
705 703
706 704
707 void CodeGenSelector::VisitWithEnterStatement(WithEnterStatement* stmt) { 705 void CodeGenSelector::VisitWithEnterStatement(WithEnterStatement* stmt) {
708 BAILOUT("WithEnterStatement"); 706 BAILOUT("WithEnterStatement");
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 1124
1127 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { 1125 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) {
1128 // ThisFunction is supported. 1126 // ThisFunction is supported.
1129 } 1127 }
1130 1128
1131 #undef BAILOUT 1129 #undef BAILOUT
1132 #undef CHECK_BAILOUT 1130 #undef CHECK_BAILOUT
1133 1131
1134 1132
1135 } } // namespace v8::internal 1133 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/fast-codegen.h » ('j') | src/fast-codegen.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698