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

Side by Side Diff: src/compiler.cc

Issue 334041: Add VisitCallNew to fast compiler. (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
« no previous file with comments | « src/arm/fast-codegen-arm.cc ('k') | src/fast-codegen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 } 718 }
719 // Check all arguments to the call 719 // Check all arguments to the call
720 for (int i = 0; i < args->length(); i++) { 720 for (int i = 0; i < args->length(); i++) {
721 Visit(args->at(i)); 721 Visit(args->at(i));
722 CHECK_BAILOUT; 722 CHECK_BAILOUT;
723 } 723 }
724 } 724 }
725 725
726 726
727 void CodeGenSelector::VisitCallNew(CallNew* expr) { 727 void CodeGenSelector::VisitCallNew(CallNew* expr) {
728 BAILOUT("CallNew"); 728 Visit(expr->expression());
729 CHECK_BAILOUT;
730 ZoneList<Expression*>* args = expr->arguments();
731 // Check all arguments to the call
732 for (int i = 0; i < args->length(); i++) {
733 Visit(args->at(i));
734 CHECK_BAILOUT;
735 }
729 } 736 }
730 737
731 738
732 void CodeGenSelector::VisitCallRuntime(CallRuntime* expr) { 739 void CodeGenSelector::VisitCallRuntime(CallRuntime* expr) {
733 // In case of JS runtime function bail out. 740 // In case of JS runtime function bail out.
734 if (expr->function() == NULL) BAILOUT("CallRuntime"); 741 if (expr->function() == NULL) BAILOUT("CallRuntime");
735 // Check for inline runtime call 742 // Check for inline runtime call
736 if (expr->name()->Get(0) == '_' && 743 if (expr->name()->Get(0) == '_' &&
737 CodeGenerator::FindInlineRuntimeLUT(expr->name()) != NULL) { 744 CodeGenerator::FindInlineRuntimeLUT(expr->name()) != NULL) {
738 BAILOUT("InlineRuntimeCall"); 745 BAILOUT("InlineRuntimeCall");
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 782
776 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { 783 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) {
777 BAILOUT("ThisFunction"); 784 BAILOUT("ThisFunction");
778 } 785 }
779 786
780 #undef BAILOUT 787 #undef BAILOUT
781 #undef CHECK_BAILOUT 788 #undef CHECK_BAILOUT
782 789
783 790
784 } } // namespace v8::internal 791 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/fast-codegen-arm.cc ('k') | src/fast-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698