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

Side by Side Diff: src/compiler.cc

Issue 337045: Support for property access (named, keyed) in the 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 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 Visit(expr->value()); 690 Visit(expr->value());
691 } 691 }
692 692
693 693
694 void CodeGenSelector::VisitThrow(Throw* expr) { 694 void CodeGenSelector::VisitThrow(Throw* expr) {
695 BAILOUT("Throw"); 695 BAILOUT("Throw");
696 } 696 }
697 697
698 698
699 void CodeGenSelector::VisitProperty(Property* expr) { 699 void CodeGenSelector::VisitProperty(Property* expr) {
700 BAILOUT("Property"); 700 Visit(expr->obj());
701 CHECK_BAILOUT;
702 Visit(expr->key());
701 } 703 }
702 704
703 705
704 void CodeGenSelector::VisitCall(Call* expr) { 706 void CodeGenSelector::VisitCall(Call* expr) {
705 Expression* fun = expr->expression(); 707 Expression* fun = expr->expression();
706 ZoneList<Expression*>* args = expr->arguments(); 708 ZoneList<Expression*>* args = expr->arguments();
707 Variable* var = fun->AsVariableProxy()->AsVariable(); 709 Variable* var = fun->AsVariableProxy()->AsVariable();
708 710
709 // Check for supported calls 711 // Check for supported calls
710 if (var != NULL && var->is_possibly_eval()) { 712 if (var != NULL && var->is_possibly_eval()) {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 777
776 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { 778 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) {
777 BAILOUT("ThisFunction"); 779 BAILOUT("ThisFunction");
778 } 780 }
779 781
780 #undef BAILOUT 782 #undef BAILOUT
781 #undef CHECK_BAILOUT 783 #undef CHECK_BAILOUT
782 784
783 785
784 } } // namespace v8::internal 786 } } // 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