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

Side by Side Diff: src/x64/stub-cache-x64.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/mips/stub-cache-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 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 Register StubCompiler::CheckPrototypes(Handle<HeapType> type, 767 Register StubCompiler::CheckPrototypes(Handle<HeapType> type,
768 Register object_reg, 768 Register object_reg,
769 Handle<JSObject> holder, 769 Handle<JSObject> holder,
770 Register holder_reg, 770 Register holder_reg,
771 Register scratch1, 771 Register scratch1,
772 Register scratch2, 772 Register scratch2,
773 Handle<Name> name, 773 Handle<Name> name,
774 Label* miss, 774 Label* miss,
775 PrototypeCheckType check) { 775 PrototypeCheckType check) {
776 Handle<Map> receiver_map(IC::TypeToMap(*type, isolate())); 776 Handle<Map> receiver_map(IC::TypeToMap(*type, isolate()));
777 // Make sure that the type feedback oracle harvests the receiver map.
778 // TODO(svenpanne) Remove this hack when all ICs are reworked.
779 __ Move(scratch1, receiver_map);
780 777
781 // Make sure there's no overlap between holder and object registers. 778 // Make sure there's no overlap between holder and object registers.
782 ASSERT(!scratch1.is(object_reg) && !scratch1.is(holder_reg)); 779 ASSERT(!scratch1.is(object_reg) && !scratch1.is(holder_reg));
783 ASSERT(!scratch2.is(object_reg) && !scratch2.is(holder_reg) 780 ASSERT(!scratch2.is(object_reg) && !scratch2.is(holder_reg)
784 && !scratch2.is(scratch1)); 781 && !scratch2.is(scratch1));
785 782
786 // Keep track of the current object in register reg. On the first 783 // Keep track of the current object in register reg. On the first
787 // iteration, reg is an alias for object_reg, on later iterations, 784 // iteration, reg is an alias for object_reg, on later iterations,
788 // it is an alias for holder_reg. 785 // it is an alias for holder_reg.
789 Register reg = object_reg; 786 Register reg = object_reg;
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
1476 // ----------------------------------- 1473 // -----------------------------------
1477 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1474 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1478 } 1475 }
1479 1476
1480 1477
1481 #undef __ 1478 #undef __
1482 1479
1483 } } // namespace v8::internal 1480 } } // namespace v8::internal
1484 1481
1485 #endif // V8_TARGET_ARCH_X64 1482 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips/stub-cache-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698