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

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

Issue 199044: Allign Intel macro assemblers with changes to ARM macro assembler (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/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 1766 matching lines...) Expand 10 before | Expand all | Expand 10 after
1777 // rbx: initial map 1777 // rbx: initial map
1778 __ CmpInstanceType(rbx, JS_FUNCTION_TYPE); 1778 __ CmpInstanceType(rbx, JS_FUNCTION_TYPE);
1779 __ Assert(not_equal, "Function constructed by construct stub."); 1779 __ Assert(not_equal, "Function constructed by construct stub.");
1780 #endif 1780 #endif
1781 1781
1782 // Now allocate the JSObject in new space. 1782 // Now allocate the JSObject in new space.
1783 // rdi: constructor 1783 // rdi: constructor
1784 // rbx: initial map 1784 // rbx: initial map
1785 __ movzxbq(rcx, FieldOperand(rbx, Map::kInstanceSizeOffset)); 1785 __ movzxbq(rcx, FieldOperand(rbx, Map::kInstanceSizeOffset));
1786 __ shl(rcx, Immediate(kPointerSizeLog2)); 1786 __ shl(rcx, Immediate(kPointerSizeLog2));
1787 // Make sure that the maximum heap object size will never cause us
1788 // problems here.
1789 ASSERT(Heap::MaxObjectSizeInPagedSpace() >= JSObject::kMaxInstanceSize);
1790 __ AllocateObjectInNewSpace(rcx, 1787 __ AllocateObjectInNewSpace(rcx,
1791 rdx, 1788 rdx,
1792 rcx, 1789 rcx,
1793 no_reg, 1790 no_reg,
1794 &generic_stub_call, 1791 &generic_stub_call,
1795 NO_ALLOCATION_FLAGS); 1792 NO_ALLOCATION_FLAGS);
1796 1793
1797 // Allocated the JSObject, now initialize the fields and add the heap tag. 1794 // Allocated the JSObject, now initialize the fields and add the heap tag.
1798 // rbx: initial map 1795 // rbx: initial map
1799 // rdx: JSObject (untagged) 1796 // rdx: JSObject (untagged)
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
1869 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); 1866 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET);
1870 1867
1871 // Return the generated code. 1868 // Return the generated code.
1872 return GetCode(); 1869 return GetCode();
1873 } 1870 }
1874 1871
1875 1872
1876 #undef __ 1873 #undef __
1877 1874
1878 } } // namespace v8::internal 1875 } } // 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