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

Side by Side Diff: src/arm/stub-cache-arm.cc

Issue 155373: Port the function prototype load stub to ARM. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 5 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/ic-arm.cc ('k') | 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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 __ bind(&check_wrapper); 240 __ bind(&check_wrapper);
241 __ cmp(scratch1, Operand(JS_VALUE_TYPE)); 241 __ cmp(scratch1, Operand(JS_VALUE_TYPE));
242 __ b(ne, miss); 242 __ b(ne, miss);
243 243
244 // Unwrap the value in place and check if the wrapped value is a string. 244 // Unwrap the value in place and check if the wrapped value is a string.
245 __ ldr(receiver, FieldMemOperand(receiver, JSValue::kValueOffset)); 245 __ ldr(receiver, FieldMemOperand(receiver, JSValue::kValueOffset));
246 __ b(&check_string); 246 __ b(&check_string);
247 } 247 }
248 248
249 249
250 void StubCompiler::GenerateLoadFunctionPrototype(MacroAssembler* masm,
251 Register receiver,
252 Register scratch1,
253 Register scratch2,
254 Label* miss_label) {
255 __ TryGetFunctionPrototype(receiver, scratch1, scratch2, miss_label);
256 __ mov(r0, scratch1);
257 __ Ret();
258 }
259
260
250 // Generate StoreField code, value is passed in r0 register. 261 // Generate StoreField code, value is passed in r0 register.
251 // After executing generated code, the receiver_reg and name_reg 262 // After executing generated code, the receiver_reg and name_reg
252 // may be clobbered. 263 // may be clobbered.
253 void StubCompiler::GenerateStoreField(MacroAssembler* masm, 264 void StubCompiler::GenerateStoreField(MacroAssembler* masm,
254 Builtins::Name storage_extend, 265 Builtins::Name storage_extend,
255 JSObject* object, 266 JSObject* object,
256 int index, 267 int index,
257 Map* transition, 268 Map* transition,
258 Register receiver_reg, 269 Register receiver_reg,
259 Register name_reg, 270 Register name_reg,
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after
1319 __ Jump(ic, RelocInfo::CODE_TARGET); 1330 __ Jump(ic, RelocInfo::CODE_TARGET);
1320 1331
1321 // Return the generated code. 1332 // Return the generated code.
1322 return GetCode(transition == NULL ? FIELD : MAP_TRANSITION, name); 1333 return GetCode(transition == NULL ? FIELD : MAP_TRANSITION, name);
1323 } 1334 }
1324 1335
1325 1336
1326 #undef __ 1337 #undef __
1327 1338
1328 } } // namespace v8::internal 1339 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/ic-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698