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

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

Issue 5982004: Revert r6160 from trunk. (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
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 2029 matching lines...) Expand 10 before | Expand all | Expand 10 after
2040 Abort("LoadPrototype unimplemented."); 2040 Abort("LoadPrototype unimplemented.");
2041 } 2041 }
2042 2042
2043 2043
2044 void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) { 2044 void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) {
2045 Abort("DoCheckPrototypeMaps unimplemented."); 2045 Abort("DoCheckPrototypeMaps unimplemented.");
2046 } 2046 }
2047 2047
2048 2048
2049 void LCodeGen::DoArrayLiteral(LArrayLiteral* instr) { 2049 void LCodeGen::DoArrayLiteral(LArrayLiteral* instr) {
2050 __ ldr(r3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 2050 Abort("DoArrayLiteral unimplemented.");
2051 __ ldr(r3, FieldMemOperand(r3, JSFunction::kLiteralsOffset));
2052 __ mov(r2, Operand(Smi::FromInt(instr->hydrogen()->literal_index())));
2053 __ mov(r1, Operand(instr->hydrogen()->constant_elements()));
2054 __ Push(r3, r2, r1);
2055
2056 // Pick the right runtime function or stub to call.
2057 int length = instr->hydrogen()->length();
2058 if (instr->hydrogen()->IsCopyOnWrite()) {
2059 ASSERT(instr->hydrogen()->depth() == 1);
2060 FastCloneShallowArrayStub::Mode mode =
2061 FastCloneShallowArrayStub::COPY_ON_WRITE_ELEMENTS;
2062 FastCloneShallowArrayStub stub(mode, length);
2063 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
2064 } else if (instr->hydrogen()->depth() > 1) {
2065 CallRuntime(Runtime::kCreateArrayLiteral, 3, instr);
2066 } else if (length > FastCloneShallowArrayStub::kMaximumClonedLength) {
2067 CallRuntime(Runtime::kCreateArrayLiteralShallow, 3, instr);
2068 } else {
2069 FastCloneShallowArrayStub::Mode mode =
2070 FastCloneShallowArrayStub::CLONE_ELEMENTS;
2071 FastCloneShallowArrayStub stub(mode, length);
2072 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
2073 }
2074 } 2051 }
2075 2052
2076 2053
2077 void LCodeGen::DoObjectLiteral(LObjectLiteral* instr) { 2054 void LCodeGen::DoObjectLiteral(LObjectLiteral* instr) {
2078 Abort("DoObjectLiteral unimplemented."); 2055 Abort("DoObjectLiteral unimplemented.");
2079 } 2056 }
2080 2057
2081 2058
2082 void LCodeGen::DoRegExpLiteral(LRegExpLiteral* instr) { 2059 void LCodeGen::DoRegExpLiteral(LRegExpLiteral* instr) {
2083 Abort("DoRegExpLiteral unimplemented."); 2060 Abort("DoRegExpLiteral unimplemented.");
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
2227 2204
2228 2205
2229 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { 2206 void LCodeGen::DoOsrEntry(LOsrEntry* instr) {
2230 Abort("DoOsrEntry unimplemented."); 2207 Abort("DoOsrEntry unimplemented.");
2231 } 2208 }
2232 2209
2233 2210
2234 #undef __ 2211 #undef __
2235 2212
2236 } } // namespace v8::internal 2213 } } // 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