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

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

Issue 8305001: Introduce HTransitionElementsKind instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: nits fixed Created 9 years, 2 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-codegen-arm.cc ('k') | src/builtins.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 1601 matching lines...) Expand 10 before | Expand all | Expand 10 after
1612 FixedArray::kHeaderSize - kHeapObjectTag - argc * kPointerSize; 1612 FixedArray::kHeaderSize - kHeapObjectTag - argc * kPointerSize;
1613 __ str(r4, MemOperand(end_elements, kEndElementsOffset, PreIndex)); 1613 __ str(r4, MemOperand(end_elements, kEndElementsOffset, PreIndex));
1614 1614
1615 // Check for a smi. 1615 // Check for a smi.
1616 __ Drop(argc + 1); 1616 __ Drop(argc + 1);
1617 __ Ret(); 1617 __ Ret();
1618 1618
1619 __ bind(&with_write_barrier); 1619 __ bind(&with_write_barrier);
1620 1620
1621 __ ldr(r6, FieldMemOperand(receiver, HeapObject::kMapOffset)); 1621 __ ldr(r6, FieldMemOperand(receiver, HeapObject::kMapOffset));
1622 __ CheckFastSmiOnlyElements(r6, r6, &call_builtin); 1622 __ CheckFastObjectElements(r6, r6, &call_builtin);
1623 1623
1624 // Save new length. 1624 // Save new length.
1625 __ str(r0, FieldMemOperand(receiver, JSArray::kLengthOffset)); 1625 __ str(r0, FieldMemOperand(receiver, JSArray::kLengthOffset));
1626 1626
1627 // Push the element. 1627 // Push the element.
1628 // We may need a register containing the address end_elements below, 1628 // We may need a register containing the address end_elements below,
1629 // so write back the value in end_elements. 1629 // so write back the value in end_elements.
1630 __ add(end_elements, elements, 1630 __ add(end_elements, elements,
1631 Operand(r0, LSL, kPointerSizeLog2 - kSmiTagSize)); 1631 Operand(r0, LSL, kPointerSizeLog2 - kSmiTagSize));
1632 __ str(r4, MemOperand(end_elements, kEndElementsOffset, PreIndex)); 1632 __ str(r4, MemOperand(end_elements, kEndElementsOffset, PreIndex));
(...skipping 2827 matching lines...) Expand 10 before | Expand all | Expand 10 after
4460 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss(); 4460 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss();
4461 __ Jump(ic_miss, RelocInfo::CODE_TARGET); 4461 __ Jump(ic_miss, RelocInfo::CODE_TARGET);
4462 } 4462 }
4463 4463
4464 4464
4465 #undef __ 4465 #undef __
4466 4466
4467 } } // namespace v8::internal 4467 } } // namespace v8::internal
4468 4468
4469 #endif // V8_TARGET_ARCH_ARM 4469 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698