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

Side by Side Diff: src/x64/full-codegen-x64.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/mips/full-codegen-mips.cc ('k') | no next file » | 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 2170 matching lines...) Expand 10 before | Expand all | Expand 10 after
2181 } 2181 }
2182 2182
2183 2183
2184 void FullCodeGenerator::VisitProperty(Property* expr) { 2184 void FullCodeGenerator::VisitProperty(Property* expr) {
2185 Comment cmnt(masm_, "[ Property"); 2185 Comment cmnt(masm_, "[ Property");
2186 Expression* key = expr->key(); 2186 Expression* key = expr->key();
2187 2187
2188 if (key->IsPropertyName()) { 2188 if (key->IsPropertyName()) {
2189 VisitForAccumulatorValue(expr->obj()); 2189 VisitForAccumulatorValue(expr->obj());
2190 EmitNamedPropertyLoad(expr); 2190 EmitNamedPropertyLoad(expr);
2191 PrepareForBailoutForId(expr->ReturnId(), TOS_REG);
2191 context()->Plug(rax); 2192 context()->Plug(rax);
2192 } else { 2193 } else {
2193 VisitForStackValue(expr->obj()); 2194 VisitForStackValue(expr->obj());
2194 VisitForAccumulatorValue(expr->key()); 2195 VisitForAccumulatorValue(expr->key());
2195 __ pop(rdx); 2196 __ pop(rdx);
2196 EmitKeyedPropertyLoad(expr); 2197 EmitKeyedPropertyLoad(expr);
2197 context()->Plug(rax); 2198 context()->Plug(rax);
2198 } 2199 }
2199 } 2200 }
2200 2201
(...skipping 2342 matching lines...) Expand 10 before | Expand all | Expand 10 after
4543 *context_length = 0; 4544 *context_length = 0;
4544 return previous_; 4545 return previous_;
4545 } 4546 }
4546 4547
4547 4548
4548 #undef __ 4549 #undef __
4549 4550
4550 } } // namespace v8::internal 4551 } } // namespace v8::internal
4551 4552
4552 #endif // V8_TARGET_ARCH_X64 4553 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698