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

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

Issue 55933002: Inline array constructor. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comment response, inline tracing, and making HForceRepresentation idef 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
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 1487 matching lines...) Expand 10 before | Expand all | Expand 10 after
3174 // ----------------------------------- 3174 // -----------------------------------
3175 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_MissForceGeneric); 3175 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_MissForceGeneric);
3176 } 3176 }
3177 3177
3178 3178
3179 #undef __ 3179 #undef __
3180 3180
3181 } } // namespace v8::internal 3181 } } // namespace v8::internal
3182 3182
3183 #endif // V8_TARGET_ARCH_MIPS 3183 #endif // V8_TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698