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

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

Issue 8383002: Handle COW-arrays correctly when converting smi->double fast elements. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | « no previous file | src/x64/codegen-x64.cc » ('j') | src/x64/codegen-x64.cc » ('J')
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 5671 matching lines...) Expand 10 before | Expand all | Expand 10 after
5682 // GenerateStoreField calls the stub with two different permutations of 5682 // GenerateStoreField calls the stub with two different permutations of
5683 // registers. This is the second. 5683 // registers. This is the second.
5684 { rbx, rcx, rdx, EMIT_REMEMBERED_SET }, 5684 { rbx, rcx, rdx, EMIT_REMEMBERED_SET },
5685 // StoreIC::GenerateNormal via GenerateDictionaryStore. 5685 // StoreIC::GenerateNormal via GenerateDictionaryStore.
5686 { rbx, r8, r9, EMIT_REMEMBERED_SET }, 5686 { rbx, r8, r9, EMIT_REMEMBERED_SET },
5687 // KeyedStoreIC::GenerateGeneric. 5687 // KeyedStoreIC::GenerateGeneric.
5688 { rbx, rdx, rcx, EMIT_REMEMBERED_SET}, 5688 { rbx, rdx, rcx, EMIT_REMEMBERED_SET},
5689 // KeyedStoreStubCompiler::GenerateStoreFastElement. 5689 // KeyedStoreStubCompiler::GenerateStoreFastElement.
5690 { rdi, rdx, rcx, EMIT_REMEMBERED_SET}, 5690 { rdi, rdx, rcx, EMIT_REMEMBERED_SET},
5691 // ElementsTransitionGenerator::GenerateSmiOnlyToObject 5691 // ElementsTransitionGenerator::GenerateSmiOnlyToObject
5692 // and ElementsTransitionGenerator::GenerateSmiOnlyToObject
5692 // and ElementsTransitionGenerator::GenerateDoubleToObject 5693 // and ElementsTransitionGenerator::GenerateDoubleToObject
5693 { rdx, rbx, rdi, EMIT_REMEMBERED_SET}, 5694 { rdx, rbx, rdi, EMIT_REMEMBERED_SET},
5695 // ElementsTransitionGenerator::GenerateSmiOnlyToDouble
5696 // and ElementsTransitionGenerator::GenerateDoubleToObject
5697 { rdx, r11, r15, EMIT_REMEMBERED_SET},
5694 // ElementsTransitionGenerator::GenerateDoubleToObject 5698 // ElementsTransitionGenerator::GenerateDoubleToObject
5695 { rax, r11, r15, EMIT_REMEMBERED_SET}, 5699 { r11, rax, r15, EMIT_REMEMBERED_SET},
5696 { rdx, rax, rdi, EMIT_REMEMBERED_SET},
5697 // Null termination. 5700 // Null termination.
5698 { no_reg, no_reg, no_reg, EMIT_REMEMBERED_SET} 5701 { no_reg, no_reg, no_reg, EMIT_REMEMBERED_SET}
5699 }; 5702 };
5700 5703
5701 5704
5702 bool RecordWriteStub::IsPregenerated() { 5705 bool RecordWriteStub::IsPregenerated() {
5703 for (AheadOfTimeWriteBarrierStubList* entry = kAheadOfTime; 5706 for (AheadOfTimeWriteBarrierStubList* entry = kAheadOfTime;
5704 !entry->object.is(no_reg); 5707 !entry->object.is(no_reg);
5705 entry++) { 5708 entry++) {
5706 if (object_.is(entry->object) && 5709 if (object_.is(entry->object) &&
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
5939 __ bind(&need_incremental); 5942 __ bind(&need_incremental);
5940 5943
5941 // Fall through when we need to inform the incremental marker. 5944 // Fall through when we need to inform the incremental marker.
5942 } 5945 }
5943 5946
5944 #undef __ 5947 #undef __
5945 5948
5946 } } // namespace v8::internal 5949 } } // namespace v8::internal
5947 5950
5948 #endif // V8_TARGET_ARCH_X64 5951 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | src/x64/codegen-x64.cc » ('j') | src/x64/codegen-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698