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

Side by Side Diff: src/x64/stub-cache-x64.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/x64/lithium-codegen-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 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 1623 matching lines...) Expand 10 before | Expand all | Expand 10 after
1634 __ JumpIfSmi(rdx, &miss); 1634 __ JumpIfSmi(rdx, &miss);
1635 CheckPrototypes(Handle<JSObject>::cast(object), rdx, holder, rbx, rax, rdi, 1635 CheckPrototypes(Handle<JSObject>::cast(object), rdx, holder, rbx, rax, rdi,
1636 name, &miss); 1636 name, &miss);
1637 } else { 1637 } else {
1638 ASSERT(cell->value() == *function); 1638 ASSERT(cell->value() == *function);
1639 GenerateGlobalReceiverCheck(Handle<JSObject>::cast(object), holder, name, 1639 GenerateGlobalReceiverCheck(Handle<JSObject>::cast(object), holder, name,
1640 &miss); 1640 &miss);
1641 GenerateLoadFunctionFromCell(cell, function, &miss); 1641 GenerateLoadFunctionFromCell(cell, function, &miss);
1642 } 1642 }
1643 1643
1644 Handle<Smi> kind(Smi::FromInt(GetInitialFastElementsKind()), isolate()); 1644 Handle<AllocationSite> site = isolate()->factory()->NewAllocationSite();
1645 Handle<Cell> kind_feedback_cell = 1645 site->set_payload(Smi::FromInt(GetInitialFastElementsKind()));
1646 isolate()->factory()->NewCell(kind); 1646 Handle<Cell> site_feedback_cell = isolate()->factory()->NewCell(site);
1647 __ movq(rax, Immediate(argc)); 1647 __ movq(rax, Immediate(argc));
1648 __ Move(rbx, kind_feedback_cell); 1648 __ Move(rbx, site_feedback_cell);
1649 __ Move(rdi, function); 1649 __ Move(rdi, function);
1650 1650
1651 ArrayConstructorStub stub(isolate()); 1651 ArrayConstructorStub stub(isolate());
1652 __ TailCallStub(&stub); 1652 __ TailCallStub(&stub);
1653 1653
1654 __ bind(&miss); 1654 __ bind(&miss);
1655 GenerateMissBranch(); 1655 GenerateMissBranch();
1656 1656
1657 // Return the generated code. 1657 // Return the generated code.
1658 return GetCode(type, name); 1658 return GetCode(type, name);
(...skipping 1914 matching lines...) Expand 10 before | Expand all | Expand 10 after
3573 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); 3573 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow);
3574 } 3574 }
3575 } 3575 }
3576 3576
3577 3577
3578 #undef __ 3578 #undef __
3579 3579
3580 } } // namespace v8::internal 3580 } } // namespace v8::internal
3581 3581
3582 #endif // V8_TARGET_ARCH_X64 3582 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698