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

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 unit test. 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
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 __ li(scratch1, Operand(Handle<Map>(object->map())));
1197
1195 Handle<JSObject> first = object; 1198 Handle<JSObject> first = object;
1196 // Make sure there's no overlap between holder and object registers. 1199 // Make sure there's no overlap between holder and object registers.
1197 ASSERT(!scratch1.is(object_reg) && !scratch1.is(holder_reg)); 1200 ASSERT(!scratch1.is(object_reg) && !scratch1.is(holder_reg));
1198 ASSERT(!scratch2.is(object_reg) && !scratch2.is(holder_reg) 1201 ASSERT(!scratch2.is(object_reg) && !scratch2.is(holder_reg)
1199 && !scratch2.is(scratch1)); 1202 && !scratch2.is(scratch1));
1200 1203
1201 // Keep track of the current object in register reg. 1204 // Keep track of the current object in register reg.
1202 Register reg = object_reg; 1205 Register reg = object_reg;
1203 int depth = 0; 1206 int depth = 0;
1204 1207
(...skipping 2583 matching lines...) Expand 10 before | Expand all | Expand 10 after
3788 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); 3791 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow);
3789 } 3792 }
3790 } 3793 }
3791 3794
3792 3795
3793 #undef __ 3796 #undef __
3794 3797
3795 } } // namespace v8::internal 3798 } } // namespace v8::internal
3796 3799
3797 #endif // V8_TARGET_ARCH_MIPS 3800 #endif // V8_TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698