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

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

Issue 15094018: Create AllocationSite objects, pointed to by AllocationSiteInfo. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comment response Created 7 years, 5 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/arm/lithium-codegen-arm.cc ('k') | src/ast.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 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 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after
1721 // Check that the maps haven't changed. 1721 // Check that the maps haven't changed.
1722 CheckPrototypes(Handle<JSObject>::cast(object), receiver, holder, r3, r0, 1722 CheckPrototypes(Handle<JSObject>::cast(object), receiver, holder, r3, r0,
1723 r4, name, &miss); 1723 r4, name, &miss);
1724 } else { 1724 } else {
1725 ASSERT(cell->value() == *function); 1725 ASSERT(cell->value() == *function);
1726 GenerateGlobalReceiverCheck(Handle<JSObject>::cast(object), holder, name, 1726 GenerateGlobalReceiverCheck(Handle<JSObject>::cast(object), holder, name,
1727 &miss); 1727 &miss);
1728 GenerateLoadFunctionFromCell(cell, function, &miss); 1728 GenerateLoadFunctionFromCell(cell, function, &miss);
1729 } 1729 }
1730 1730
1731 Handle<Smi> kind(Smi::FromInt(GetInitialFastElementsKind()), isolate()); 1731 Handle<AllocationSite> site = isolate()->factory()->NewAllocationSite();
1732 Handle<Cell> kind_feedback_cell = 1732 site->set_payload(Smi::FromInt(GetInitialFastElementsKind()));
1733 isolate()->factory()->NewCell(kind); 1733 Handle<Cell> site_feedback_cell = isolate()->factory()->NewCell(site);
1734 __ mov(r0, Operand(argc)); 1734 __ mov(r0, Operand(argc));
1735 __ mov(r2, Operand(kind_feedback_cell)); 1735 __ mov(r2, Operand(site_feedback_cell));
1736 __ mov(r1, Operand(function)); 1736 __ mov(r1, Operand(function));
1737 1737
1738 ArrayConstructorStub stub(isolate()); 1738 ArrayConstructorStub stub(isolate());
1739 __ TailCallStub(&stub); 1739 __ TailCallStub(&stub);
1740 1740
1741 __ bind(&miss); 1741 __ bind(&miss);
1742 GenerateMissBranch(); 1742 GenerateMissBranch();
1743 1743
1744 // Return the generated code. 1744 // Return the generated code.
1745 return GetCode(type, name); 1745 return GetCode(type, name);
(...skipping 1989 matching lines...) Expand 10 before | Expand all | Expand 10 after
3735 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); 3735 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow);
3736 } 3736 }
3737 } 3737 }
3738 3738
3739 3739
3740 #undef __ 3740 #undef __
3741 3741
3742 } } // namespace v8::internal 3742 } } // namespace v8::internal
3743 3743
3744 #endif // V8_TARGET_ARCH_ARM 3744 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698