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

Side by Side Diff: src/arm/builtins-arm.cc

Issue 8820014: Support Smi->Double->HeapObject transitions in constructed Arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 9 years 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/builtins.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 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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 // Fill arguments as array elements. Copy from the top of the stack (last 387 // Fill arguments as array elements. Copy from the top of the stack (last
388 // element) to the array backing store filling it backwards. Note: 388 // element) to the array backing store filling it backwards. Note:
389 // elements_array_end points after the backing store therefore PreIndex is 389 // elements_array_end points after the backing store therefore PreIndex is
390 // used when filling the backing store. 390 // used when filling the backing store.
391 // r0: argc 391 // r0: argc
392 // r3: JSArray 392 // r3: JSArray
393 // r4: elements_array storage start (untagged) 393 // r4: elements_array storage start (untagged)
394 // r5: elements_array_end (untagged) 394 // r5: elements_array_end (untagged)
395 // sp[0]: last argument 395 // sp[0]: last argument
396 Label loop, entry; 396 Label loop, entry;
397 __ mov(r7, sp);
397 __ jmp(&entry); 398 __ jmp(&entry);
398 __ bind(&loop); 399 __ bind(&loop);
399 __ ldr(r2, MemOperand(sp, kPointerSize, PostIndex)); 400 __ ldr(r2, MemOperand(r7, kPointerSize, PostIndex));
401 if (FLAG_smi_only_arrays) {
402 __ JumpIfNotSmi(r2, call_generic_code);
403 }
400 __ str(r2, MemOperand(r5, -kPointerSize, PreIndex)); 404 __ str(r2, MemOperand(r5, -kPointerSize, PreIndex));
401 __ bind(&entry); 405 __ bind(&entry);
402 __ cmp(r4, r5); 406 __ cmp(r4, r5);
403 __ b(lt, &loop); 407 __ b(lt, &loop);
408 __ mov(sp, r7);
404 409
405 // Remove caller arguments and receiver from the stack, setup return value and 410 // Remove caller arguments and receiver from the stack, setup return value and
406 // return. 411 // return.
407 // r0: argc 412 // r0: argc
408 // r3: JSArray 413 // r3: JSArray
409 // sp[0]: receiver 414 // sp[0]: receiver
410 __ add(sp, sp, Operand(kPointerSize)); 415 __ add(sp, sp, Operand(kPointerSize));
411 __ mov(r0, r3); 416 __ mov(r0, r3);
412 __ Jump(lr); 417 __ Jump(lr);
413 } 418 }
(...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 __ bind(&dont_adapt_arguments); 1719 __ bind(&dont_adapt_arguments);
1715 __ Jump(r3); 1720 __ Jump(r3);
1716 } 1721 }
1717 1722
1718 1723
1719 #undef __ 1724 #undef __
1720 1725
1721 } } // namespace v8::internal 1726 } } // namespace v8::internal
1722 1727
1723 #endif // V8_TARGET_ARCH_ARM 1728 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698