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

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

Issue 6771045: Never use classic code generator. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments and fix testing Created 9 years, 8 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/flag-definitions.h ('k') | src/objects.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 2250 matching lines...) Expand 10 before | Expand all | Expand 10 after
2261 __ push(FieldOperand(ecx, GlobalObject::kGlobalReceiverOffset)); 2261 __ push(FieldOperand(ecx, GlobalObject::kGlobalReceiverOffset));
2262 EmitCallWithStub(expr); 2262 EmitCallWithStub(expr);
2263 } else { 2263 } else {
2264 { PreservePositionScope scope(masm()->positions_recorder()); 2264 { PreservePositionScope scope(masm()->positions_recorder());
2265 VisitForStackValue(prop->obj()); 2265 VisitForStackValue(prop->obj());
2266 } 2266 }
2267 EmitKeyedCallWithIC(expr, prop->key(), RelocInfo::CODE_TARGET); 2267 EmitKeyedCallWithIC(expr, prop->key(), RelocInfo::CODE_TARGET);
2268 } 2268 }
2269 } 2269 }
2270 } else { 2270 } else {
2271 // Call to some other expression. If the expression is an anonymous
2272 // function literal not called in a loop, mark it as one that should
2273 // also use the full code generator.
2274 FunctionLiteral* lit = fun->AsFunctionLiteral();
2275 if (lit != NULL &&
2276 lit->name()->Equals(isolate()->heap()->empty_string()) &&
2277 loop_depth() == 0) {
2278 lit->set_try_full_codegen(true);
2279 }
2280 { PreservePositionScope scope(masm()->positions_recorder()); 2271 { PreservePositionScope scope(masm()->positions_recorder());
2281 VisitForStackValue(fun); 2272 VisitForStackValue(fun);
2282 } 2273 }
2283 // Load global receiver object. 2274 // Load global receiver object.
2284 __ mov(ebx, GlobalObjectOperand()); 2275 __ mov(ebx, GlobalObjectOperand());
2285 __ push(FieldOperand(ebx, GlobalObject::kGlobalReceiverOffset)); 2276 __ push(FieldOperand(ebx, GlobalObject::kGlobalReceiverOffset));
2286 // Emit function call. 2277 // Emit function call.
2287 EmitCallWithStub(expr); 2278 EmitCallWithStub(expr);
2288 } 2279 }
2289 2280
(...skipping 2064 matching lines...) Expand 10 before | Expand all | Expand 10 after
4354 // And return. 4345 // And return.
4355 __ ret(0); 4346 __ ret(0);
4356 } 4347 }
4357 4348
4358 4349
4359 #undef __ 4350 #undef __
4360 4351
4361 } } // namespace v8::internal 4352 } } // namespace v8::internal
4362 4353
4363 #endif // V8_TARGET_ARCH_IA32 4354 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698