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

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

Issue 170613002: Do not emit receiver map in CheckPrototypes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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/x64/stub-cache-x64.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 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 Register StubCompiler::CheckPrototypes(Handle<HeapType> type, 861 Register StubCompiler::CheckPrototypes(Handle<HeapType> type,
862 Register object_reg, 862 Register object_reg,
863 Handle<JSObject> holder, 863 Handle<JSObject> holder,
864 Register holder_reg, 864 Register holder_reg,
865 Register scratch1, 865 Register scratch1,
866 Register scratch2, 866 Register scratch2,
867 Handle<Name> name, 867 Handle<Name> name,
868 Label* miss, 868 Label* miss,
869 PrototypeCheckType check) { 869 PrototypeCheckType check) {
870 Handle<Map> receiver_map(IC::TypeToMap(*type, isolate())); 870 Handle<Map> receiver_map(IC::TypeToMap(*type, isolate()));
871 // Make sure that the type feedback oracle harvests the receiver map.
872 // TODO(svenpanne) Remove this hack when all ICs are reworked.
873 __ li(scratch1, Operand(receiver_map));
874 871
875 // Make sure there's no overlap between holder and object registers. 872 // Make sure there's no overlap between holder and object registers.
876 ASSERT(!scratch1.is(object_reg) && !scratch1.is(holder_reg)); 873 ASSERT(!scratch1.is(object_reg) && !scratch1.is(holder_reg));
877 ASSERT(!scratch2.is(object_reg) && !scratch2.is(holder_reg) 874 ASSERT(!scratch2.is(object_reg) && !scratch2.is(holder_reg)
878 && !scratch2.is(scratch1)); 875 && !scratch2.is(scratch1));
879 876
880 // Keep track of the current object in register reg. 877 // Keep track of the current object in register reg.
881 Register reg = object_reg; 878 Register reg = object_reg;
882 int depth = 0; 879 int depth = 0;
883 880
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
1570 // ----------------------------------- 1567 // -----------------------------------
1571 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1568 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1572 } 1569 }
1573 1570
1574 1571
1575 #undef __ 1572 #undef __
1576 1573
1577 } } // namespace v8::internal 1574 } } // namespace v8::internal
1578 1575
1579 #endif // V8_TARGET_ARCH_MIPS 1576 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698