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

Side by Side Diff: src/arm/code-stubs-arm.cc

Issue 10991045: Fix ARM bug introduced in r12604 that caused crashes on ARM (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 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 | « no previous file | src/arm/ic-arm.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 7543 matching lines...) Expand 10 before | Expand all | Expand 10 after
7554 // and value is Smi. 7554 // and value is Smi.
7555 __ bind(&smi_element); 7555 __ bind(&smi_element);
7556 __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset)); 7556 __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset));
7557 __ add(r6, r5, Operand(r3, LSL, kPointerSizeLog2 - kSmiTagSize)); 7557 __ add(r6, r5, Operand(r3, LSL, kPointerSizeLog2 - kSmiTagSize));
7558 __ str(r0, FieldMemOperand(r6, FixedArray::kHeaderSize)); 7558 __ str(r0, FieldMemOperand(r6, FixedArray::kHeaderSize));
7559 __ Ret(); 7559 __ Ret();
7560 7560
7561 // Array literal has ElementsKind of FAST_DOUBLE_ELEMENTS. 7561 // Array literal has ElementsKind of FAST_DOUBLE_ELEMENTS.
7562 __ bind(&double_elements); 7562 __ bind(&double_elements);
7563 __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset)); 7563 __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset));
7564 __ StoreNumberToDoubleElements(r0, r3, r1, r5, r6, r7, r9, r2, 7564 __ StoreNumberToDoubleElements(r0, r3, r1,
7565 // Overwrites all regs after this.
7566 r5, r6, r7, r9, r2,
7565 &slow_elements); 7567 &slow_elements);
7566 __ Ret(); 7568 __ Ret();
7567 } 7569 }
7568 7570
7569 7571
7570 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { 7572 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) {
7571 if (entry_hook_ != NULL) { 7573 if (entry_hook_ != NULL) {
7572 ProfileEntryHookStub stub; 7574 ProfileEntryHookStub stub;
7573 __ push(lr); 7575 __ push(lr);
7574 __ CallStub(&stub); 7576 __ CallStub(&stub);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
7623 7625
7624 __ Pop(lr, r5, r1); 7626 __ Pop(lr, r5, r1);
7625 __ Ret(); 7627 __ Ret();
7626 } 7628 }
7627 7629
7628 #undef __ 7630 #undef __
7629 7631
7630 } } // namespace v8::internal 7632 } } // namespace v8::internal
7631 7633
7632 #endif // V8_TARGET_ARCH_ARM 7634 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/ic-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698