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

Side by Side Diff: src/x64/stub-cache-x64.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, 2 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/x64/macro-assembler-x64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 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 1751 matching lines...) Expand 10 before | Expand all | Expand 10 after
1762 // rbx: initial map 1762 // rbx: initial map
1763 __ CmpInstanceType(rbx, JS_FUNCTION_TYPE); 1763 __ CmpInstanceType(rbx, JS_FUNCTION_TYPE);
1764 __ Assert(not_equal, "Function constructed by construct stub."); 1764 __ Assert(not_equal, "Function constructed by construct stub.");
1765 #endif 1765 #endif
1766 1766
1767 // Now allocate the JSObject in new space. 1767 // Now allocate the JSObject in new space.
1768 // rdi: constructor 1768 // rdi: constructor
1769 // rbx: initial map 1769 // rbx: initial map
1770 __ movzxbq(rcx, FieldOperand(rbx, Map::kInstanceSizeOffset)); 1770 __ movzxbq(rcx, FieldOperand(rbx, Map::kInstanceSizeOffset));
1771 __ shl(rcx, Immediate(kPointerSizeLog2)); 1771 __ shl(rcx, Immediate(kPointerSizeLog2));
1772 __ AllocateObjectInNewSpace(rcx, 1772 __ AllocateInNewSpace(rcx,
1773 rdx, 1773 rdx,
1774 rcx, 1774 rcx,
1775 no_reg, 1775 no_reg,
1776 &generic_stub_call, 1776 &generic_stub_call,
1777 NO_ALLOCATION_FLAGS); 1777 NO_ALLOCATION_FLAGS);
1778 1778
1779 // Allocated the JSObject, now initialize the fields and add the heap tag. 1779 // Allocated the JSObject, now initialize the fields and add the heap tag.
1780 // rbx: initial map 1780 // rbx: initial map
1781 // rdx: JSObject (untagged) 1781 // rdx: JSObject (untagged)
1782 __ movq(Operand(rdx, JSObject::kMapOffset), rbx); 1782 __ movq(Operand(rdx, JSObject::kMapOffset), rbx);
1783 __ Move(rbx, Factory::empty_fixed_array()); 1783 __ Move(rbx, Factory::empty_fixed_array());
1784 __ movq(Operand(rdx, JSObject::kPropertiesOffset), rbx); 1784 __ movq(Operand(rdx, JSObject::kPropertiesOffset), rbx);
1785 __ movq(Operand(rdx, JSObject::kElementsOffset), rbx); 1785 __ movq(Operand(rdx, JSObject::kElementsOffset), rbx);
1786 1786
1787 // rax: argc 1787 // rax: argc
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
1851 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); 1851 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET);
1852 1852
1853 // Return the generated code. 1853 // Return the generated code.
1854 return GetCode(); 1854 return GetCode();
1855 } 1855 }
1856 1856
1857 1857
1858 #undef __ 1858 #undef __
1859 1859
1860 } } // namespace v8::internal 1860 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698