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

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

Issue 19588002: Fixed type feedback in presence of negative lookups. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added TODOs Created 7 years, 5 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 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1185 Register StubCompiler::CheckPrototypes(Handle<JSObject> object, 1185 Register StubCompiler::CheckPrototypes(Handle<JSObject> object,
1186 Register object_reg, 1186 Register object_reg,
1187 Handle<JSObject> holder, 1187 Handle<JSObject> holder,
1188 Register holder_reg, 1188 Register holder_reg,
1189 Register scratch1, 1189 Register scratch1,
1190 Register scratch2, 1190 Register scratch2,
1191 Handle<Name> name, 1191 Handle<Name> name,
1192 int save_at_depth, 1192 int save_at_depth,
1193 Label* miss, 1193 Label* miss,
1194 PrototypeCheckType check) { 1194 PrototypeCheckType check) {
1195 // Make sure that the type feedback oracle harvests the receiver map.
1196 // TODO(svenpanne) Remove this hack when all ICs are reworked.
1197 __ li(scratch1, Operand(Handle<Map>(object->map())));
1198
1195 Handle<JSObject> first = object; 1199 Handle<JSObject> first = object;
1196 // Make sure there's no overlap between holder and object registers. 1200 // Make sure there's no overlap between holder and object registers.
1197 ASSERT(!scratch1.is(object_reg) && !scratch1.is(holder_reg)); 1201 ASSERT(!scratch1.is(object_reg) && !scratch1.is(holder_reg));
1198 ASSERT(!scratch2.is(object_reg) && !scratch2.is(holder_reg) 1202 ASSERT(!scratch2.is(object_reg) && !scratch2.is(holder_reg)
1199 && !scratch2.is(scratch1)); 1203 && !scratch2.is(scratch1));
1200 1204
1201 // Keep track of the current object in register reg. 1205 // Keep track of the current object in register reg.
1202 Register reg = object_reg; 1206 Register reg = object_reg;
1203 int depth = 0; 1207 int depth = 0;
1204 1208
(...skipping 2583 matching lines...) Expand 10 before | Expand all | Expand 10 after
3788 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); 3792 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow);
3789 } 3793 }
3790 } 3794 }
3791 3795
3792 3796
3793 #undef __ 3797 #undef __
3794 3798
3795 } } // namespace v8::internal 3799 } } // namespace v8::internal
3796 3800
3797 #endif // V8_TARGET_ARCH_MIPS 3801 #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