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

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

Issue 72893003: MIPS: Inline zero argument array constructor. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: 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
« src/mips/code-stubs-mips.cc ('K') | « src/mips/code-stubs-mips.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 1655 matching lines...) Expand 10 before | Expand all | Expand 10 after
1666 CheckPrototypes(Handle<JSObject>::cast(object), receiver, holder, a3, a0, 1666 CheckPrototypes(Handle<JSObject>::cast(object), receiver, holder, a3, a0,
1667 t0, name, &miss); 1667 t0, name, &miss);
1668 } else { 1668 } else {
1669 ASSERT(cell->value() == *function); 1669 ASSERT(cell->value() == *function);
1670 GenerateGlobalReceiverCheck(Handle<JSObject>::cast(object), holder, name, 1670 GenerateGlobalReceiverCheck(Handle<JSObject>::cast(object), holder, name,
1671 &miss); 1671 &miss);
1672 GenerateLoadFunctionFromCell(cell, function, &miss); 1672 GenerateLoadFunctionFromCell(cell, function, &miss);
1673 } 1673 }
1674 1674
1675 Handle<AllocationSite> site = isolate()->factory()->NewAllocationSite(); 1675 Handle<AllocationSite> site = isolate()->factory()->NewAllocationSite();
1676 site->set_transition_info(Smi::FromInt(GetInitialFastElementsKind())); 1676 site->SetElementsKind(GetInitialFastElementsKind());
1677 Handle<Cell> site_feedback_cell = isolate()->factory()->NewCell(site); 1677 Handle<Cell> site_feedback_cell = isolate()->factory()->NewCell(site);
1678 __ li(a0, Operand(argc)); 1678 __ li(a0, Operand(argc));
1679 __ li(a2, Operand(site_feedback_cell)); 1679 __ li(a2, Operand(site_feedback_cell));
1680 __ li(a1, Operand(function)); 1680 __ li(a1, Operand(function));
1681 1681
1682 ArrayConstructorStub stub(isolate()); 1682 ArrayConstructorStub stub(isolate());
1683 __ TailCallStub(&stub); 1683 __ TailCallStub(&stub);
1684 1684
1685 __ bind(&miss); 1685 __ bind(&miss);
1686 GenerateMissBranch(); 1686 GenerateMissBranch();
(...skipping 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after
3171 // ----------------------------------- 3171 // -----------------------------------
3172 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_MissForceGeneric); 3172 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_MissForceGeneric);
3173 } 3173 }
3174 3174
3175 3175
3176 #undef __ 3176 #undef __
3177 3177
3178 } } // namespace v8::internal 3178 } } // namespace v8::internal
3179 3179
3180 #endif // V8_TARGET_ARCH_MIPS 3180 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« src/mips/code-stubs-mips.cc ('K') | « src/mips/code-stubs-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698