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

Side by Side Diff: src/x64/ic-x64.cc

Issue 10209027: Implement tracking and optimizations of packed arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: New upload Created 8 years, 8 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 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 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 __ movq(rbx, FieldOperand(rdx, JSObject::kElementsOffset)); 780 __ movq(rbx, FieldOperand(rdx, JSObject::kElementsOffset));
781 __ jmp(&fast_double_without_map_check); 781 __ jmp(&fast_double_without_map_check);
782 782
783 __ bind(&non_double_value); 783 __ bind(&non_double_value);
784 // Value is not a double, FAST_SMI_ONLY_ELEMENTS -> FAST_ELEMENTS 784 // Value is not a double, FAST_SMI_ONLY_ELEMENTS -> FAST_ELEMENTS
785 __ LoadTransitionedArrayMapConditional(FAST_SMI_ONLY_ELEMENTS, 785 __ LoadTransitionedArrayMapConditional(FAST_SMI_ONLY_ELEMENTS,
786 FAST_ELEMENTS, 786 FAST_ELEMENTS,
787 rbx, 787 rbx,
788 rdi, 788 rdi,
789 &slow); 789 &slow);
790 ElementsTransitionGenerator::GenerateSmiOnlyToObject(masm); 790 ElementsTransitionGenerator::GenerateMapChangeElementTransition(masm);
791 __ movq(rbx, FieldOperand(rdx, JSObject::kElementsOffset)); 791 __ movq(rbx, FieldOperand(rdx, JSObject::kElementsOffset));
792 __ jmp(&finish_object_store); 792 __ jmp(&finish_object_store);
793 793
794 __ bind(&transition_double_elements); 794 __ bind(&transition_double_elements);
795 // Elements are FAST_DOUBLE_ELEMENTS, but value is an Object that's not a 795 // Elements are FAST_DOUBLE_ELEMENTS, but value is an Object that's not a
796 // HeapNumber. Make sure that the receiver is a Array with FAST_ELEMENTS and 796 // HeapNumber. Make sure that the receiver is a Array with FAST_ELEMENTS and
797 // transition array from FAST_DOUBLE_ELEMENTS to FAST_ELEMENTS 797 // transition array from FAST_DOUBLE_ELEMENTS to FAST_ELEMENTS
798 __ movq(rbx, FieldOperand(rdx, HeapObject::kMapOffset)); 798 __ movq(rbx, FieldOperand(rdx, HeapObject::kMapOffset));
799 __ LoadTransitionedArrayMapConditional(FAST_DOUBLE_ELEMENTS, 799 __ LoadTransitionedArrayMapConditional(FAST_DOUBLE_ELEMENTS,
800 FAST_ELEMENTS, 800 FAST_ELEMENTS,
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
1774 Condition cc = *jmp_address == Assembler::kJncShortOpcode 1774 Condition cc = *jmp_address == Assembler::kJncShortOpcode
1775 ? not_zero 1775 ? not_zero
1776 : zero; 1776 : zero;
1777 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1777 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1778 } 1778 }
1779 1779
1780 1780
1781 } } // namespace v8::internal 1781 } } // namespace v8::internal
1782 1782
1783 #endif // V8_TARGET_ARCH_X64 1783 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/objects.cc ('K') | « src/x64/codegen-x64.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698