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

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

Issue 201015: Second step in allocating objects in generated code on ARM (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 3 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 | « src/ia32/macro-assembler-ia32.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 1768 matching lines...) Expand 10 before | Expand all | Expand 10 after
1779 1779
1780 // Now allocate the JSObject on the heap by moving the new space allocation 1780 // Now allocate the JSObject on the heap by moving the new space allocation
1781 // top forward. 1781 // top forward.
1782 // edi: constructor 1782 // edi: constructor
1783 // ebx: initial map 1783 // ebx: initial map
1784 __ movzx_b(ecx, FieldOperand(ebx, Map::kInstanceSizeOffset)); 1784 __ movzx_b(ecx, FieldOperand(ebx, Map::kInstanceSizeOffset));
1785 __ shl(ecx, kPointerSizeLog2); 1785 __ shl(ecx, kPointerSizeLog2);
1786 // Make sure that the maximum heap object size will never cause us 1786 // Make sure that the maximum heap object size will never cause us
1787 // problems here. 1787 // problems here.
1788 ASSERT(Heap::MaxObjectSizeInPagedSpace() >= JSObject::kMaxInstanceSize); 1788 ASSERT(Heap::MaxObjectSizeInPagedSpace() >= JSObject::kMaxInstanceSize);
1789 __ AllocateObjectInNewSpace(ecx, edx, ecx, no_reg, &generic_stub_call, false); 1789 __ AllocateObjectInNewSpace(ecx,
1790 edx,
1791 ecx,
1792 no_reg,
1793 &generic_stub_call,
1794 NO_ALLOCATION_FLAGS);
1790 1795
1791 // Allocated the JSObject, now initialize the fields and add the heap tag. 1796 // Allocated the JSObject, now initialize the fields and add the heap tag.
1792 // ebx: initial map 1797 // ebx: initial map
1793 // edx: JSObject (untagged) 1798 // edx: JSObject (untagged)
1794 __ mov(Operand(edx, JSObject::kMapOffset), ebx); 1799 __ mov(Operand(edx, JSObject::kMapOffset), ebx);
1795 __ mov(ebx, Factory::empty_fixed_array()); 1800 __ mov(ebx, Factory::empty_fixed_array());
1796 __ mov(Operand(edx, JSObject::kPropertiesOffset), ebx); 1801 __ mov(Operand(edx, JSObject::kPropertiesOffset), ebx);
1797 __ mov(Operand(edx, JSObject::kElementsOffset), ebx); 1802 __ mov(Operand(edx, JSObject::kElementsOffset), ebx);
1798 1803
1799 // Push the allocated object to the stack. This is the object that will be 1804 // Push the allocated object to the stack. This is the object that will be
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
1865 __ jmp(generic_construct_stub, RelocInfo::CODE_TARGET); 1870 __ jmp(generic_construct_stub, RelocInfo::CODE_TARGET);
1866 1871
1867 // Return the generated code. 1872 // Return the generated code.
1868 return GetCode(); 1873 return GetCode();
1869 } 1874 }
1870 1875
1871 1876
1872 #undef __ 1877 #undef __
1873 1878
1874 } } // namespace v8::internal 1879 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698