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

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

Issue 8329022: Porting r9605 to arm (elements kind conversion in generated code). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Reset flag definitions to default. 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
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 6001 matching lines...) Expand 10 before | Expand all | Expand 10 after
6012 __ lea(rdi, Operand(r9, times_pointer_size, FixedArray::kHeaderSize)); 6012 __ lea(rdi, Operand(r9, times_pointer_size, FixedArray::kHeaderSize));
6013 __ AllocateInNewSpace(rdi, rax, r14, r15, &gc_required, TAG_OBJECT); 6013 __ AllocateInNewSpace(rdi, rax, r14, r15, &gc_required, TAG_OBJECT);
6014 // rax: destination FixedArray 6014 // rax: destination FixedArray
6015 __ LoadRoot(rdi, Heap::kFixedArrayMapRootIndex); 6015 __ LoadRoot(rdi, Heap::kFixedArrayMapRootIndex);
6016 __ movq(FieldOperand(rax, HeapObject::kMapOffset), rdi); 6016 __ movq(FieldOperand(rax, HeapObject::kMapOffset), rdi);
6017 __ Integer32ToSmi(r14, r9); 6017 __ Integer32ToSmi(r14, r9);
6018 __ movq(FieldOperand(rax, FixedArray::kLengthOffset), r14); 6018 __ movq(FieldOperand(rax, FixedArray::kLengthOffset), r14);
6019 6019
6020 // Prepare for conversion loop. 6020 // Prepare for conversion loop.
6021 __ movq(rsi, BitCast<int64_t, uint64_t>(kHoleNanInt64), RelocInfo::NONE); 6021 __ movq(rsi, BitCast<int64_t, uint64_t>(kHoleNanInt64), RelocInfo::NONE);
6022 __ Move(rdi, masm->isolate()->factory()->the_hole_value()); 6022 __ LoadRoot(rdi, Heap::kTheHoleValueRootIndex);
6023 // rsi: the-hole NaN 6023 // rsi: the-hole NaN
6024 // rdi: pointer to the-hole 6024 // rdi: pointer to the-hole
6025 __ jmp(&entry); 6025 __ jmp(&entry);
6026 6026
6027 // Call into runtime if GC is required. 6027 // Call into runtime if GC is required.
6028 __ bind(&gc_required); 6028 __ bind(&gc_required);
6029 __ pop(rax); 6029 __ pop(rax);
6030 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); 6030 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset));
6031 KeyedStoreIC::GenerateRuntimeSetProperty(masm, strict_mode); 6031 KeyedStoreIC::GenerateRuntimeSetProperty(masm, strict_mode);
6032 6032
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
6092 OMIT_SMI_CHECK); 6092 OMIT_SMI_CHECK);
6093 __ pop(rax); 6093 __ pop(rax);
6094 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); 6094 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset));
6095 } 6095 }
6096 6096
6097 #undef __ 6097 #undef __
6098 6098
6099 } } // namespace v8::internal 6099 } } // namespace v8::internal
6100 6100
6101 #endif // V8_TARGET_ARCH_X64 6101 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698