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

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 6112001: Implement DoFunctionLiteral on ARM. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 11 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 | 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 2205 matching lines...) Expand 10 before | Expand all | Expand 10 after
2216 } 2216 }
2217 } 2217 }
2218 2218
2219 2219
2220 void LCodeGen::DoRegExpLiteral(LRegExpLiteral* instr) { 2220 void LCodeGen::DoRegExpLiteral(LRegExpLiteral* instr) {
2221 Abort("DoRegExpLiteral unimplemented."); 2221 Abort("DoRegExpLiteral unimplemented.");
2222 } 2222 }
2223 2223
2224 2224
2225 void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) { 2225 void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) {
2226 Abort("DoFunctionLiteral unimplemented."); 2226 // Use the fast case closure allocation code that allocates in new
2227 // space for nested functions that don't need literals cloning.
2228 Handle<SharedFunctionInfo> shared_info = instr->shared_info();
2229 bool pretenure = !instr->hydrogen()->pretenure();
2230 if (shared_info->num_literals() == 0 && !pretenure) {
2231 FastNewClosureStub stub;
2232 __ mov(r1, Operand(shared_info));
2233 __ push(r1);
2234 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
2235 } else {
2236 __ mov(r2, Operand(shared_info));
2237 __ mov(r1, Operand(pretenure
2238 ? Factory::true_value()
2239 : Factory::false_value()));
2240 __ Push(cp, r2, r1);
2241 CallRuntime(Runtime::kNewClosure, 3, instr);
2242 }
2227 } 2243 }
2228 2244
2229 2245
2230 void LCodeGen::DoTypeof(LTypeof* instr) { 2246 void LCodeGen::DoTypeof(LTypeof* instr) {
2231 Abort("DoTypeof unimplemented."); 2247 Abort("DoTypeof unimplemented.");
2232 } 2248 }
2233 2249
2234 2250
2235 void LCodeGen::DoTypeofIs(LTypeofIs* instr) { 2251 void LCodeGen::DoTypeofIs(LTypeofIs* instr) {
2236 Abort("DoTypeofIs unimplemented."); 2252 Abort("DoTypeofIs unimplemented.");
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
2364 2380
2365 2381
2366 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { 2382 void LCodeGen::DoOsrEntry(LOsrEntry* instr) {
2367 Abort("DoOsrEntry unimplemented."); 2383 Abort("DoOsrEntry unimplemented.");
2368 } 2384 }
2369 2385
2370 2386
2371 #undef __ 2387 #undef __
2372 2388
2373 } } // namespace v8::internal 2389 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698