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

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

Issue 6099006: Implement ARM lithium support for ObjectLiteral. (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 | src/ia32/lithium-codegen-ia32.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 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 2183 matching lines...) Expand 10 before | Expand all | Expand 10 after
2194 } else { 2194 } else {
2195 FastCloneShallowArrayStub::Mode mode = 2195 FastCloneShallowArrayStub::Mode mode =
2196 FastCloneShallowArrayStub::CLONE_ELEMENTS; 2196 FastCloneShallowArrayStub::CLONE_ELEMENTS;
2197 FastCloneShallowArrayStub stub(mode, length); 2197 FastCloneShallowArrayStub stub(mode, length);
2198 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); 2198 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
2199 } 2199 }
2200 } 2200 }
2201 2201
2202 2202
2203 void LCodeGen::DoObjectLiteral(LObjectLiteral* instr) { 2203 void LCodeGen::DoObjectLiteral(LObjectLiteral* instr) {
2204 Abort("DoObjectLiteral unimplemented."); 2204 __ ldr(r4, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
2205 __ ldr(r4, FieldMemOperand(r4, JSFunction::kLiteralsOffset));
2206 __ mov(r3, Operand(Smi::FromInt(instr->hydrogen()->literal_index())));
2207 __ mov(r2, Operand(instr->hydrogen()->constant_properties()));
2208 __ mov(r1, Operand(Smi::FromInt(instr->hydrogen()->fast_elements() ? 1 : 0)));
2209 __ Push(r4, r3, r2, r1);
2210
2211 // Pick the right runtime function to call.
2212 if (instr->hydrogen()->depth() > 1) {
2213 CallRuntime(Runtime::kCreateObjectLiteral, 4, instr);
2214 } else {
2215 CallRuntime(Runtime::kCreateObjectLiteralShallow, 4, instr);
2216 }
2205 } 2217 }
2206 2218
2207 2219
2208 void LCodeGen::DoRegExpLiteral(LRegExpLiteral* instr) { 2220 void LCodeGen::DoRegExpLiteral(LRegExpLiteral* instr) {
2209 Abort("DoRegExpLiteral unimplemented."); 2221 Abort("DoRegExpLiteral unimplemented.");
2210 } 2222 }
2211 2223
2212 2224
2213 void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) { 2225 void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) {
2214 Abort("DoFunctionLiteral unimplemented."); 2226 Abort("DoFunctionLiteral unimplemented.");
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
2352 2364
2353 2365
2354 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { 2366 void LCodeGen::DoOsrEntry(LOsrEntry* instr) {
2355 Abort("DoOsrEntry unimplemented."); 2367 Abort("DoOsrEntry unimplemented.");
2356 } 2368 }
2357 2369
2358 2370
2359 #undef __ 2371 #undef __
2360 2372
2361 } } // namespace v8::internal 2373 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698