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

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

Issue 55933002: Inline array constructor. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added comment to CreateArrayDispatchOneArgument Created 7 years, 1 month 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/code-stubs-x64.cc ('k') | test/mjsunit/array-constructor-feedback.js » ('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 1611 matching lines...) Expand 10 before | Expand all | Expand 10 after
1622 CheckPrototypes(Handle<JSObject>::cast(object), rdx, holder, rbx, rax, rdi, 1622 CheckPrototypes(Handle<JSObject>::cast(object), rdx, holder, rbx, rax, rdi,
1623 name, &miss); 1623 name, &miss);
1624 } else { 1624 } else {
1625 ASSERT(cell->value() == *function); 1625 ASSERT(cell->value() == *function);
1626 GenerateGlobalReceiverCheck(Handle<JSObject>::cast(object), holder, name, 1626 GenerateGlobalReceiverCheck(Handle<JSObject>::cast(object), holder, name,
1627 &miss); 1627 &miss);
1628 GenerateLoadFunctionFromCell(cell, function, &miss); 1628 GenerateLoadFunctionFromCell(cell, function, &miss);
1629 } 1629 }
1630 1630
1631 Handle<AllocationSite> site = isolate()->factory()->NewAllocationSite(); 1631 Handle<AllocationSite> site = isolate()->factory()->NewAllocationSite();
1632 site->set_transition_info(Smi::FromInt(GetInitialFastElementsKind())); 1632 site->SetElementsKind(GetInitialFastElementsKind());
1633 Handle<Cell> site_feedback_cell = isolate()->factory()->NewCell(site); 1633 Handle<Cell> site_feedback_cell = isolate()->factory()->NewCell(site);
1634 __ movq(rax, Immediate(argc)); 1634 __ movq(rax, Immediate(argc));
1635 __ Move(rbx, site_feedback_cell); 1635 __ Move(rbx, site_feedback_cell);
1636 __ Move(rdi, function); 1636 __ Move(rdi, function);
1637 1637
1638 ArrayConstructorStub stub(isolate()); 1638 ArrayConstructorStub stub(isolate());
1639 __ TailCallStub(&stub); 1639 __ TailCallStub(&stub);
1640 1640
1641 __ bind(&miss); 1641 __ bind(&miss);
1642 GenerateMissBranch(); 1642 GenerateMissBranch();
(...skipping 1503 matching lines...) Expand 10 before | Expand all | Expand 10 after
3146 // ----------------------------------- 3146 // -----------------------------------
3147 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_MissForceGeneric); 3147 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_MissForceGeneric);
3148 } 3148 }
3149 3149
3150 3150
3151 #undef __ 3151 #undef __
3152 3152
3153 } } // namespace v8::internal 3153 } } // namespace v8::internal
3154 3154
3155 #endif // V8_TARGET_ARCH_X64 3155 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | test/mjsunit/array-constructor-feedback.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698