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

Side by Side Diff: src/mips/stub-cache-mips.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/ia32/stub-cache-ia32.cc ('k') | src/stub-cache.h » ('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 1538 matching lines...) Expand 10 before | Expand all | Expand 10 after
1549 index.translate(holder), Representation::Tagged()); 1549 index.translate(holder), Representation::Tagged());
1550 GenerateJumpFunction(object, a1, &miss); 1550 GenerateJumpFunction(object, a1, &miss);
1551 1551
1552 HandlerFrontendFooter(&miss); 1552 HandlerFrontendFooter(&miss);
1553 1553
1554 // Return the generated code. 1554 // Return the generated code.
1555 return GetCode(Code::FAST, name); 1555 return GetCode(Code::FAST, name);
1556 } 1556 }
1557 1557
1558 1558
1559 Handle<Code> CallStubCompiler::CompileArrayCodeCall(
1560 Handle<Object> object,
1561 Handle<JSObject> holder,
1562 Handle<Cell> cell,
1563 Handle<JSFunction> function,
1564 Handle<String> name,
1565 Code::StubType type) {
1566 Label miss;
1567
1568 HandlerFrontendHeader(object, holder, name, RECEIVER_MAP_CHECK, &miss);
1569 if (!cell.is_null()) {
1570 ASSERT(cell->value() == *function);
1571 GenerateLoadFunctionFromCell(cell, function, &miss);
1572 }
1573
1574 Handle<AllocationSite> site = isolate()->factory()->NewAllocationSite();
1575 site->SetElementsKind(GetInitialFastElementsKind());
1576 Handle<Cell> site_feedback_cell = isolate()->factory()->NewCell(site);
1577 const int argc = arguments().immediate();
1578 __ li(a0, Operand(argc));
1579 __ li(a2, Operand(site_feedback_cell));
1580 __ li(a1, Operand(function));
1581
1582 ArrayConstructorStub stub(isolate());
1583 __ TailCallStub(&stub);
1584
1585 HandlerFrontendFooter(&miss);
1586
1587 // Return the generated code.
1588 return GetCode(type, name);
1589 }
1590
1591
1592 Handle<Code> CallStubCompiler::CompileArrayPushCall( 1559 Handle<Code> CallStubCompiler::CompileArrayPushCall(
1593 Handle<Object> object, 1560 Handle<Object> object,
1594 Handle<JSObject> holder, 1561 Handle<JSObject> holder,
1595 Handle<Cell> cell, 1562 Handle<Cell> cell,
1596 Handle<JSFunction> function, 1563 Handle<JSFunction> function,
1597 Handle<String> name, 1564 Handle<String> name,
1598 Code::StubType type) { 1565 Code::StubType type) {
1599 // If object is not an array or is observed or sealed, bail out to regular 1566 // If object is not an array or is observed or sealed, bail out to regular
1600 // call. 1567 // call.
1601 if (!object->IsJSArray() || 1568 if (!object->IsJSArray() ||
(...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after
2884 // ----------------------------------- 2851 // -----------------------------------
2885 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 2852 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
2886 } 2853 }
2887 2854
2888 2855
2889 #undef __ 2856 #undef __
2890 2857
2891 } } // namespace v8::internal 2858 } } // namespace v8::internal
2892 2859
2893 #endif // V8_TARGET_ARCH_MIPS 2860 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/stub-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698