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

Side by Side Diff: src/ia32/stub-cache-ia32.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 1598 matching lines...) Expand 10 before | Expand all | Expand 10 after
1609 // edx: receiver 1609 // edx: receiver
1610 // ebx: map 1610 // ebx: map
1611 Label try_holey_map; 1611 Label try_holey_map;
1612 __ LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS, 1612 __ LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS,
1613 FAST_ELEMENTS, 1613 FAST_ELEMENTS,
1614 ebx, 1614 ebx,
1615 edi, 1615 edi,
1616 &try_holey_map); 1616 &try_holey_map);
1617 1617
1618 ElementsTransitionGenerator:: 1618 ElementsTransitionGenerator::
1619 GenerateMapChangeElementsTransition(masm()); 1619 GenerateMapChangeElementsTransition(masm(), NULL);
1620 // Restore edi. 1620 // Restore edi.
1621 __ mov(edi, FieldOperand(edx, JSArray::kElementsOffset)); 1621 __ mov(edi, FieldOperand(edx, JSArray::kElementsOffset));
1622 __ jmp(&fast_object); 1622 __ jmp(&fast_object);
1623 1623
1624 __ bind(&try_holey_map); 1624 __ bind(&try_holey_map);
1625 __ LoadTransitionedArrayMapConditional(FAST_HOLEY_SMI_ELEMENTS, 1625 __ LoadTransitionedArrayMapConditional(FAST_HOLEY_SMI_ELEMENTS,
1626 FAST_HOLEY_ELEMENTS, 1626 FAST_HOLEY_ELEMENTS,
1627 ebx, 1627 ebx,
1628 edi, 1628 edi,
1629 &call_builtin); 1629 &call_builtin);
1630 ElementsTransitionGenerator:: 1630 ElementsTransitionGenerator::
1631 GenerateMapChangeElementsTransition(masm()); 1631 GenerateMapChangeElementsTransition(masm(), NULL);
1632 // Restore edi. 1632 // Restore edi.
1633 __ mov(edi, FieldOperand(edx, JSArray::kElementsOffset)); 1633 __ mov(edi, FieldOperand(edx, JSArray::kElementsOffset));
1634 __ bind(&fast_object); 1634 __ bind(&fast_object);
1635 } else { 1635 } else {
1636 __ CheckFastObjectElements(ebx, &call_builtin); 1636 __ CheckFastObjectElements(ebx, &call_builtin);
1637 } 1637 }
1638 1638
1639 // Save new length. 1639 // Save new length.
1640 __ mov(FieldOperand(edx, JSArray::kLengthOffset), eax); 1640 __ mov(FieldOperand(edx, JSArray::kLengthOffset), eax);
1641 1641
(...skipping 2518 matching lines...) Expand 10 before | Expand all | Expand 10 after
4160 __ jmp(ic_slow, RelocInfo::CODE_TARGET); 4160 __ jmp(ic_slow, RelocInfo::CODE_TARGET);
4161 } 4161 }
4162 } 4162 }
4163 4163
4164 4164
4165 #undef __ 4165 #undef __
4166 4166
4167 } } // namespace v8::internal 4167 } } // namespace v8::internal
4168 4168
4169 #endif // V8_TARGET_ARCH_IA32 4169 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698