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

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

Issue 6794050: Revert "[Arguments] Merge (7442,7496] from bleeding_edge." (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/arguments
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/arm/lithium-arm.cc ('k') | src/arm/macro-assembler-arm.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 2145 matching lines...) Expand 10 before | Expand all | Expand 10 after
2156 __ CallRuntime(Runtime::kTraceExit, 1); 2156 __ CallRuntime(Runtime::kTraceExit, 1);
2157 } 2157 }
2158 int32_t sp_delta = (ParameterCount() + 1) * kPointerSize; 2158 int32_t sp_delta = (ParameterCount() + 1) * kPointerSize;
2159 __ mov(sp, fp); 2159 __ mov(sp, fp);
2160 __ ldm(ia_w, sp, fp.bit() | lr.bit()); 2160 __ ldm(ia_w, sp, fp.bit() | lr.bit());
2161 __ add(sp, sp, Operand(sp_delta)); 2161 __ add(sp, sp, Operand(sp_delta));
2162 __ Jump(lr); 2162 __ Jump(lr);
2163 } 2163 }
2164 2164
2165 2165
2166 void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) { 2166 void LCodeGen::DoLoadGlobal(LLoadGlobal* instr) {
2167 Register result = ToRegister(instr->result()); 2167 Register result = ToRegister(instr->result());
2168 __ mov(ip, Operand(Handle<Object>(instr->hydrogen()->cell()))); 2168 __ mov(ip, Operand(Handle<Object>(instr->hydrogen()->cell())));
2169 __ ldr(result, FieldMemOperand(ip, JSGlobalPropertyCell::kValueOffset)); 2169 __ ldr(result, FieldMemOperand(ip, JSGlobalPropertyCell::kValueOffset));
2170 if (instr->hydrogen()->check_hole_value()) { 2170 if (instr->hydrogen()->check_hole_value()) {
2171 __ LoadRoot(ip, Heap::kTheHoleValueRootIndex); 2171 __ LoadRoot(ip, Heap::kTheHoleValueRootIndex);
2172 __ cmp(result, ip); 2172 __ cmp(result, ip);
2173 DeoptimizeIf(eq, instr->environment()); 2173 DeoptimizeIf(eq, instr->environment());
2174 } 2174 }
2175 } 2175 }
2176 2176
2177 2177
2178 void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) { 2178 void LCodeGen::DoStoreGlobal(LStoreGlobal* instr) {
2179 ASSERT(ToRegister(instr->global_object()).is(r0));
2180 ASSERT(ToRegister(instr->result()).is(r0));
2181
2182 __ mov(r2, Operand(instr->name()));
2183 RelocInfo::Mode mode = instr->for_typeof() ? RelocInfo::CODE_TARGET
2184 : RelocInfo::CODE_TARGET_CONTEXT;
2185 Handle<Code> ic = isolate()->builtins()->LoadIC_Initialize();
2186 CallCode(ic, mode, instr);
2187 }
2188
2189
2190 void LCodeGen::DoStoreGlobalCell(LStoreGlobalCell* instr) {
2191 Register value = ToRegister(instr->InputAt(0)); 2179 Register value = ToRegister(instr->InputAt(0));
2192 Register scratch = scratch0(); 2180 Register scratch = scratch0();
2193 2181
2194 // Load the cell. 2182 // Load the cell.
2195 __ mov(scratch, Operand(Handle<Object>(instr->hydrogen()->cell()))); 2183 __ mov(scratch, Operand(Handle<Object>(instr->hydrogen()->cell())));
2196 2184
2197 // If the cell we are storing to contains the hole it could have 2185 // If the cell we are storing to contains the hole it could have
2198 // been deleted from the property dictionary. In that case, we need 2186 // been deleted from the property dictionary. In that case, we need
2199 // to update the property details in the property dictionary to mark 2187 // to update the property details in the property dictionary to mark
2200 // it as no longer deleted. 2188 // it as no longer deleted.
2201 if (instr->hydrogen()->check_hole_value()) { 2189 if (instr->hydrogen()->check_hole_value()) {
2202 Register scratch2 = ToRegister(instr->TempAt(0)); 2190 Register scratch2 = ToRegister(instr->TempAt(0));
2203 __ ldr(scratch2, 2191 __ ldr(scratch2,
2204 FieldMemOperand(scratch, JSGlobalPropertyCell::kValueOffset)); 2192 FieldMemOperand(scratch, JSGlobalPropertyCell::kValueOffset));
2205 __ LoadRoot(ip, Heap::kTheHoleValueRootIndex); 2193 __ LoadRoot(ip, Heap::kTheHoleValueRootIndex);
2206 __ cmp(scratch2, ip); 2194 __ cmp(scratch2, ip);
2207 DeoptimizeIf(eq, instr->environment()); 2195 DeoptimizeIf(eq, instr->environment());
2208 } 2196 }
2209 2197
2210 // Store the value. 2198 // Store the value.
2211 __ str(value, FieldMemOperand(scratch, JSGlobalPropertyCell::kValueOffset)); 2199 __ str(value, FieldMemOperand(scratch, JSGlobalPropertyCell::kValueOffset));
2212 } 2200 }
2213 2201
2214 2202
2215 void LCodeGen::DoStoreGlobalGeneric(LStoreGlobalGeneric* instr) {
2216 ASSERT(ToRegister(instr->global_object()).is(r1));
2217 ASSERT(ToRegister(instr->value()).is(r0));
2218
2219 __ mov(r2, Operand(instr->name()));
2220 Handle<Code> ic = isolate()->builtins()->StoreIC_Initialize();
2221 CallCode(ic, RelocInfo::CODE_TARGET_CONTEXT, instr);
2222 }
2223
2224
2225 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { 2203 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) {
2226 Register context = ToRegister(instr->context()); 2204 Register context = ToRegister(instr->context());
2227 Register result = ToRegister(instr->result()); 2205 Register result = ToRegister(instr->result());
2228 __ ldr(result, ContextOperand(context, instr->slot_index())); 2206 __ ldr(result, ContextOperand(context, instr->slot_index()));
2229 } 2207 }
2230 2208
2231 2209
2232 void LCodeGen::DoStoreContextSlot(LStoreContextSlot* instr) { 2210 void LCodeGen::DoStoreContextSlot(LStoreContextSlot* instr) {
2233 Register context = ToRegister(instr->context()); 2211 Register context = ToRegister(instr->context());
2234 Register value = ToRegister(instr->value()); 2212 Register value = ToRegister(instr->value());
(...skipping 1888 matching lines...) Expand 10 before | Expand all | Expand 10 after
4123 ASSERT(!environment->HasBeenRegistered()); 4101 ASSERT(!environment->HasBeenRegistered());
4124 RegisterEnvironmentForDeoptimization(environment); 4102 RegisterEnvironmentForDeoptimization(environment);
4125 ASSERT(osr_pc_offset_ == -1); 4103 ASSERT(osr_pc_offset_ == -1);
4126 osr_pc_offset_ = masm()->pc_offset(); 4104 osr_pc_offset_ = masm()->pc_offset();
4127 } 4105 }
4128 4106
4129 4107
4130 #undef __ 4108 #undef __
4131 4109
4132 } } // namespace v8::internal 4110 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698