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

Side by Side Diff: src/a64/stub-cache-a64.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 | « no previous file | src/arm/stub-cache-arm.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 Register StubCompiler::CheckPrototypes(Handle<HeapType> type, 833 Register StubCompiler::CheckPrototypes(Handle<HeapType> type,
834 Register object_reg, 834 Register object_reg,
835 Handle<JSObject> holder, 835 Handle<JSObject> holder,
836 Register holder_reg, 836 Register holder_reg,
837 Register scratch1, 837 Register scratch1,
838 Register scratch2, 838 Register scratch2,
839 Handle<Name> name, 839 Handle<Name> name,
840 Label* miss, 840 Label* miss,
841 PrototypeCheckType check) { 841 PrototypeCheckType check) {
842 Handle<Map> receiver_map(IC::TypeToMap(*type, isolate())); 842 Handle<Map> receiver_map(IC::TypeToMap(*type, isolate()));
843 // Make sure that the type feedback oracle harvests the receiver map.
844 // TODO(svenpanne) Remove this hack when all ICs are reworked.
845 __ Mov(scratch1, Operand(receiver_map));
846 843
847 // object_reg and holder_reg registers can alias. 844 // object_reg and holder_reg registers can alias.
848 ASSERT(!AreAliased(object_reg, scratch1, scratch2)); 845 ASSERT(!AreAliased(object_reg, scratch1, scratch2));
849 ASSERT(!AreAliased(holder_reg, scratch1, scratch2)); 846 ASSERT(!AreAliased(holder_reg, scratch1, scratch2));
850 847
851 // Keep track of the current object in register reg. 848 // Keep track of the current object in register reg.
852 Register reg = object_reg; 849 Register reg = object_reg;
853 int depth = 0; 850 int depth = 0;
854 851
855 Handle<JSObject> current = Handle<JSObject>::null(); 852 Handle<JSObject> current = Handle<JSObject>::null();
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
1539 1536
1540 // Miss case, call the runtime. 1537 // Miss case, call the runtime.
1541 __ Bind(&miss); 1538 __ Bind(&miss);
1542 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1539 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1543 } 1540 }
1544 1541
1545 1542
1546 } } // namespace v8::internal 1543 } } // namespace v8::internal
1547 1544
1548 #endif // V8_TARGET_ARCH_A64 1545 #endif // V8_TARGET_ARCH_A64
OLDNEW
« no previous file with comments | « no previous file | src/arm/stub-cache-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698