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

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

Issue 11817017: Additional work to get array literal allocation tracking working, even with --always-opt (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Removed MIPs changes, and found a bug. COPY_ON_WRITE shallow array stub didn't track allocation inf… Created 7 years, 11 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 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after
1572 // rbx: map 1572 // rbx: map
1573 1573
1574 Label try_holey_map; 1574 Label try_holey_map;
1575 __ LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS, 1575 __ LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS,
1576 FAST_ELEMENTS, 1576 FAST_ELEMENTS,
1577 rbx, 1577 rbx,
1578 rdi, 1578 rdi,
1579 &try_holey_map); 1579 &try_holey_map);
1580 1580
1581 ElementsTransitionGenerator:: 1581 ElementsTransitionGenerator::
1582 GenerateMapChangeElementsTransition(masm()); 1582 GenerateMapChangeElementsTransition(masm(), NULL);
1583 // Restore edi. 1583 // Restore edi.
1584 __ movq(rdi, FieldOperand(rdx, JSArray::kElementsOffset)); 1584 __ movq(rdi, FieldOperand(rdx, JSArray::kElementsOffset));
1585 __ jmp(&fast_object); 1585 __ jmp(&fast_object);
1586 1586
1587 __ bind(&try_holey_map); 1587 __ bind(&try_holey_map);
1588 __ LoadTransitionedArrayMapConditional(FAST_HOLEY_SMI_ELEMENTS, 1588 __ LoadTransitionedArrayMapConditional(FAST_HOLEY_SMI_ELEMENTS,
1589 FAST_HOLEY_ELEMENTS, 1589 FAST_HOLEY_ELEMENTS,
1590 rbx, 1590 rbx,
1591 rdi, 1591 rdi,
1592 &call_builtin); 1592 &call_builtin);
1593 ElementsTransitionGenerator:: 1593 ElementsTransitionGenerator::
1594 GenerateMapChangeElementsTransition(masm()); 1594 GenerateMapChangeElementsTransition(masm(), NULL);
1595 __ movq(rdi, FieldOperand(rdx, JSArray::kElementsOffset)); 1595 __ movq(rdi, FieldOperand(rdx, JSArray::kElementsOffset));
1596 __ bind(&fast_object); 1596 __ bind(&fast_object);
1597 } else { 1597 } else {
1598 __ CheckFastObjectElements(rbx, &call_builtin); 1598 __ CheckFastObjectElements(rbx, &call_builtin);
1599 } 1599 }
1600 1600
1601 // Save new length. 1601 // Save new length.
1602 __ Integer32ToSmiField(FieldOperand(rdx, JSArray::kLengthOffset), rax); 1602 __ Integer32ToSmiField(FieldOperand(rdx, JSArray::kLengthOffset), rax);
1603 1603
1604 // Store the value. 1604 // Store the value.
(...skipping 2323 matching lines...) Expand 10 before | Expand all | Expand 10 after
3928 __ jmp(ic_slow, RelocInfo::CODE_TARGET); 3928 __ jmp(ic_slow, RelocInfo::CODE_TARGET);
3929 } 3929 }
3930 } 3930 }
3931 3931
3932 3932
3933 #undef __ 3933 #undef __
3934 3934
3935 } } // namespace v8::internal 3935 } } // namespace v8::internal
3936 3936
3937 #endif // V8_TARGET_ARCH_X64 3937 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698