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

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

Issue 219030: Change the functions named AllocateObjectInNewSpace to AllocateInNewSpace (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/macro-assembler.h » ('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 1765 matching lines...) Expand 10 before | Expand all | Expand 10 after
1776 __ CmpInstanceType(ebx, JS_FUNCTION_TYPE); 1776 __ CmpInstanceType(ebx, JS_FUNCTION_TYPE);
1777 __ Assert(not_equal, "Function constructed by construct stub."); 1777 __ Assert(not_equal, "Function constructed by construct stub.");
1778 #endif 1778 #endif
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 __ AllocateObjectInNewSpace(ecx, 1786 __ AllocateInNewSpace(ecx,
1787 edx, 1787 edx,
1788 ecx, 1788 ecx,
1789 no_reg, 1789 no_reg,
1790 &generic_stub_call, 1790 &generic_stub_call,
1791 NO_ALLOCATION_FLAGS); 1791 NO_ALLOCATION_FLAGS);
1792 1792
1793 // Allocated the JSObject, now initialize the fields and add the heap tag. 1793 // Allocated the JSObject, now initialize the fields and add the heap tag.
1794 // ebx: initial map 1794 // ebx: initial map
1795 // edx: JSObject (untagged) 1795 // edx: JSObject (untagged)
1796 __ mov(Operand(edx, JSObject::kMapOffset), ebx); 1796 __ mov(Operand(edx, JSObject::kMapOffset), ebx);
1797 __ mov(ebx, Factory::empty_fixed_array()); 1797 __ mov(ebx, Factory::empty_fixed_array());
1798 __ mov(Operand(edx, JSObject::kPropertiesOffset), ebx); 1798 __ mov(Operand(edx, JSObject::kPropertiesOffset), ebx);
1799 __ mov(Operand(edx, JSObject::kElementsOffset), ebx); 1799 __ mov(Operand(edx, JSObject::kElementsOffset), ebx);
1800 1800
1801 // Push the allocated object to the stack. This is the object that will be 1801 // 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
1867 __ jmp(generic_construct_stub, RelocInfo::CODE_TARGET); 1867 __ jmp(generic_construct_stub, RelocInfo::CODE_TARGET);
1868 1868
1869 // Return the generated code. 1869 // Return the generated code.
1870 return GetCode(); 1870 return GetCode();
1871 } 1871 }
1872 1872
1873 1873
1874 #undef __ 1874 #undef __
1875 1875
1876 } } // namespace v8::internal 1876 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/macro-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698