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

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

Issue 141073006: Remove special ArrayCode CallIC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Disable Array() related tests. Created 6 years, 11 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/stub-cache-arm.cc ('k') | src/mips/stub-cache-mips.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 1648 matching lines...) Expand 10 before | Expand all | Expand 10 after
1659 index.translate(holder), Representation::Tagged()); 1659 index.translate(holder), Representation::Tagged());
1660 GenerateJumpFunction(object, edi, &miss); 1660 GenerateJumpFunction(object, edi, &miss);
1661 1661
1662 HandlerFrontendFooter(&miss); 1662 HandlerFrontendFooter(&miss);
1663 1663
1664 // Return the generated code. 1664 // Return the generated code.
1665 return GetCode(Code::FAST, name); 1665 return GetCode(Code::FAST, name);
1666 } 1666 }
1667 1667
1668 1668
1669 Handle<Code> CallStubCompiler::CompileArrayCodeCall(
1670 Handle<Object> object,
1671 Handle<JSObject> holder,
1672 Handle<Cell> cell,
1673 Handle<JSFunction> function,
1674 Handle<String> name,
1675 Code::StubType type) {
1676 Label miss;
1677
1678 HandlerFrontendHeader(object, holder, name, RECEIVER_MAP_CHECK, &miss);
1679 if (!cell.is_null()) {
1680 ASSERT(cell->value() == *function);
1681 GenerateLoadFunctionFromCell(cell, function, &miss);
1682 }
1683
1684 Handle<AllocationSite> site = isolate()->factory()->NewAllocationSite();
1685 site->SetElementsKind(GetInitialFastElementsKind());
1686 Handle<Cell> site_feedback_cell = isolate()->factory()->NewCell(site);
1687 const int argc = arguments().immediate();
1688 __ mov(eax, Immediate(argc));
1689 __ mov(ebx, site_feedback_cell);
1690 __ mov(edi, function);
1691
1692 ArrayConstructorStub stub(isolate());
1693 __ TailCallStub(&stub);
1694
1695 HandlerFrontendFooter(&miss);
1696
1697 // Return the generated code.
1698 return GetCode(type, name);
1699 }
1700
1701
1702 Handle<Code> CallStubCompiler::CompileArrayPushCall( 1669 Handle<Code> CallStubCompiler::CompileArrayPushCall(
1703 Handle<Object> object, 1670 Handle<Object> object,
1704 Handle<JSObject> holder, 1671 Handle<JSObject> holder,
1705 Handle<Cell> cell, 1672 Handle<Cell> cell,
1706 Handle<JSFunction> function, 1673 Handle<JSFunction> function,
1707 Handle<String> name, 1674 Handle<String> name,
1708 Code::StubType type) { 1675 Code::StubType type) {
1709 // If object is not an array or is observed or sealed, bail out to regular 1676 // If object is not an array or is observed or sealed, bail out to regular
1710 // call. 1677 // call.
1711 if (!object->IsJSArray() || 1678 if (!object->IsJSArray() ||
(...skipping 1280 matching lines...) Expand 10 before | Expand all | Expand 10 after
2992 // ----------------------------------- 2959 // -----------------------------------
2993 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 2960 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
2994 } 2961 }
2995 2962
2996 2963
2997 #undef __ 2964 #undef __
2998 2965
2999 } } // namespace v8::internal 2966 } } // namespace v8::internal
3000 2967
3001 #endif // V8_TARGET_ARCH_IA32 2968 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm/stub-cache-arm.cc ('k') | src/mips/stub-cache-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698