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

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

Issue 6788009: Revert "Never use classic code generator." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/v8.cc ('k') | test/cctest/test-deoptimization.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 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 2229 matching lines...) Expand 10 before | Expand all | Expand 10 after
2240 __ push(FieldOperand(rcx, GlobalObject::kGlobalReceiverOffset)); 2240 __ push(FieldOperand(rcx, GlobalObject::kGlobalReceiverOffset));
2241 EmitCallWithStub(expr); 2241 EmitCallWithStub(expr);
2242 } else { 2242 } else {
2243 { PreservePositionScope scope(masm()->positions_recorder()); 2243 { PreservePositionScope scope(masm()->positions_recorder());
2244 VisitForStackValue(prop->obj()); 2244 VisitForStackValue(prop->obj());
2245 } 2245 }
2246 EmitKeyedCallWithIC(expr, prop->key(), RelocInfo::CODE_TARGET); 2246 EmitKeyedCallWithIC(expr, prop->key(), RelocInfo::CODE_TARGET);
2247 } 2247 }
2248 } 2248 }
2249 } else { 2249 } else {
2250 // Call to some other expression. If the expression is an anonymous
2251 // function literal not called in a loop, mark it as one that should
2252 // also use the full code generator.
2253 FunctionLiteral* lit = fun->AsFunctionLiteral();
2254 if (lit != NULL &&
2255 lit->name()->Equals(isolate()->heap()->empty_string()) &&
2256 loop_depth() == 0) {
2257 lit->set_try_full_codegen(true);
2258 }
2250 { PreservePositionScope scope(masm()->positions_recorder()); 2259 { PreservePositionScope scope(masm()->positions_recorder());
2251 VisitForStackValue(fun); 2260 VisitForStackValue(fun);
2252 } 2261 }
2253 // Load global receiver object. 2262 // Load global receiver object.
2254 __ movq(rbx, GlobalObjectOperand()); 2263 __ movq(rbx, GlobalObjectOperand());
2255 __ push(FieldOperand(rbx, GlobalObject::kGlobalReceiverOffset)); 2264 __ push(FieldOperand(rbx, GlobalObject::kGlobalReceiverOffset));
2256 // Emit function call. 2265 // Emit function call.
2257 EmitCallWithStub(expr); 2266 EmitCallWithStub(expr);
2258 } 2267 }
2259 2268
(...skipping 2070 matching lines...) Expand 10 before | Expand all | Expand 10 after
4330 __ ret(0); 4339 __ ret(0);
4331 } 4340 }
4332 4341
4333 4342
4334 #undef __ 4343 #undef __
4335 4344
4336 4345
4337 } } // namespace v8::internal 4346 } } // namespace v8::internal
4338 4347
4339 #endif // V8_TARGET_ARCH_X64 4348 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/v8.cc ('k') | test/cctest/test-deoptimization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698