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

Side by Side Diff: src/arm/full-codegen-arm.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 | « no previous file | src/ast.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 2333 matching lines...) Expand 10 before | Expand all | Expand 10 after
2344 __ Push(r0, r1); // Function, receiver. 2344 __ Push(r0, r1); // Function, receiver.
2345 EmitCallWithStub(expr); 2345 EmitCallWithStub(expr);
2346 } else { 2346 } else {
2347 { PreservePositionScope scope(masm()->positions_recorder()); 2347 { PreservePositionScope scope(masm()->positions_recorder());
2348 VisitForStackValue(prop->obj()); 2348 VisitForStackValue(prop->obj());
2349 } 2349 }
2350 EmitKeyedCallWithIC(expr, prop->key(), RelocInfo::CODE_TARGET); 2350 EmitKeyedCallWithIC(expr, prop->key(), RelocInfo::CODE_TARGET);
2351 } 2351 }
2352 } 2352 }
2353 } else { 2353 } else {
2354 // Call to some other expression. If the expression is an anonymous
2355 // function literal not called in a loop, mark it as one that should
2356 // also use the fast code generator.
2357 FunctionLiteral* lit = fun->AsFunctionLiteral();
2358 if (lit != NULL &&
2359 lit->name()->Equals(isolate()->heap()->empty_string()) &&
2360 loop_depth() == 0) {
2361 lit->set_try_full_codegen(true);
2362 }
2363
2354 { PreservePositionScope scope(masm()->positions_recorder()); 2364 { PreservePositionScope scope(masm()->positions_recorder());
2355 VisitForStackValue(fun); 2365 VisitForStackValue(fun);
2356 } 2366 }
2357 // Load global receiver object. 2367 // Load global receiver object.
2358 __ ldr(r1, GlobalObjectOperand()); 2368 __ ldr(r1, GlobalObjectOperand());
2359 __ ldr(r1, FieldMemOperand(r1, GlobalObject::kGlobalReceiverOffset)); 2369 __ ldr(r1, FieldMemOperand(r1, GlobalObject::kGlobalReceiverOffset));
2360 __ push(r1); 2370 __ push(r1);
2361 // Emit function call. 2371 // Emit function call.
2362 EmitCallWithStub(expr); 2372 EmitCallWithStub(expr);
2363 } 2373 }
(...skipping 2001 matching lines...) Expand 10 before | Expand all | Expand 10 after
4365 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. 4375 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value.
4366 __ add(pc, r1, Operand(masm_->CodeObject())); 4376 __ add(pc, r1, Operand(masm_->CodeObject()));
4367 } 4377 }
4368 4378
4369 4379
4370 #undef __ 4380 #undef __
4371 4381
4372 } } // namespace v8::internal 4382 } } // namespace v8::internal
4373 4383
4374 #endif // V8_TARGET_ARCH_ARM 4384 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698