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

Side by Side Diff: src/compiler.cc

Issue 463041: Push bleeding_edge revision 3429 to trunk to fix new reliability... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
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 | Annotate | Revision Log
« no previous file with comments | « src/arm/fast-codegen-arm.cc ('k') | src/ia32/fast-codegen-ia32.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 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 638
639 void CodeGenSelector::VisitStatements(ZoneList<Statement*>* stmts) { 639 void CodeGenSelector::VisitStatements(ZoneList<Statement*>* stmts) {
640 for (int i = 0, len = stmts->length(); i < len; i++) { 640 for (int i = 0, len = stmts->length(); i < len; i++) {
641 Visit(stmts->at(i)); 641 Visit(stmts->at(i));
642 CHECK_BAILOUT; 642 CHECK_BAILOUT;
643 } 643 }
644 } 644 }
645 645
646 646
647 void CodeGenSelector::VisitDeclaration(Declaration* decl) { 647 void CodeGenSelector::VisitDeclaration(Declaration* decl) {
648 Property* prop = decl->proxy()->AsProperty();
649 if (prop != NULL) {
650 // Property rewrites are shared, ensure we are not changing its
651 // expression context state.
652 ASSERT(prop->obj()->context() == Expression::kUninitialized ||
653 prop->obj()->context() == Expression::kValue);
654 ASSERT(prop->key()->context() == Expression::kUninitialized ||
655 prop->key()->context() == Expression::kValue);
656 ProcessExpression(prop->obj(), Expression::kValue);
657 ProcessExpression(prop->key(), Expression::kValue);
658 }
659
648 if (decl->fun() != NULL) { 660 if (decl->fun() != NULL) {
649 ProcessExpression(decl->fun(), Expression::kValue); 661 ProcessExpression(decl->fun(), Expression::kValue);
650 } 662 }
651 } 663 }
652 664
653 665
654 void CodeGenSelector::VisitBlock(Block* stmt) { 666 void CodeGenSelector::VisitBlock(Block* stmt) {
655 VisitStatements(stmt->statements()); 667 VisitStatements(stmt->statements());
656 } 668 }
657 669
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 1131
1120 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { 1132 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) {
1121 BAILOUT("ThisFunction"); 1133 BAILOUT("ThisFunction");
1122 } 1134 }
1123 1135
1124 #undef BAILOUT 1136 #undef BAILOUT
1125 #undef CHECK_BAILOUT 1137 #undef CHECK_BAILOUT
1126 1138
1127 1139
1128 } } // namespace v8::internal 1140 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/fast-codegen-arm.cc ('k') | src/ia32/fast-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698