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

Side by Side Diff: src/mips/full-codegen-mips.cc

Issue 10828066: Inline simple getter calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Incorporated review comments. Created 8 years, 4 months 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/ia32/full-codegen-ia32.cc ('k') | src/x64/full-codegen-x64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 2281 matching lines...) Expand 10 before | Expand all | Expand 10 after
2292 } 2292 }
2293 2293
2294 2294
2295 void FullCodeGenerator::VisitProperty(Property* expr) { 2295 void FullCodeGenerator::VisitProperty(Property* expr) {
2296 Comment cmnt(masm_, "[ Property"); 2296 Comment cmnt(masm_, "[ Property");
2297 Expression* key = expr->key(); 2297 Expression* key = expr->key();
2298 2298
2299 if (key->IsPropertyName()) { 2299 if (key->IsPropertyName()) {
2300 VisitForAccumulatorValue(expr->obj()); 2300 VisitForAccumulatorValue(expr->obj());
2301 EmitNamedPropertyLoad(expr); 2301 EmitNamedPropertyLoad(expr);
2302 PrepareForBailoutForId(expr->ReturnId(), TOS_REG);
2302 context()->Plug(v0); 2303 context()->Plug(v0);
2303 } else { 2304 } else {
2304 VisitForStackValue(expr->obj()); 2305 VisitForStackValue(expr->obj());
2305 VisitForAccumulatorValue(expr->key()); 2306 VisitForAccumulatorValue(expr->key());
2306 __ pop(a1); 2307 __ pop(a1);
2307 EmitKeyedPropertyLoad(expr); 2308 EmitKeyedPropertyLoad(expr);
2308 context()->Plug(v0); 2309 context()->Plug(v0);
2309 } 2310 }
2310 } 2311 }
2311 2312
(...skipping 2302 matching lines...) Expand 10 before | Expand all | Expand 10 after
4614 *context_length = 0; 4615 *context_length = 0;
4615 return previous_; 4616 return previous_;
4616 } 4617 }
4617 4618
4618 4619
4619 #undef __ 4620 #undef __
4620 4621
4621 } } // namespace v8::internal 4622 } } // namespace v8::internal
4622 4623
4623 #endif // V8_TARGET_ARCH_MIPS 4624 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698