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

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

Issue 13529017: Remove unnecessary explicity prototype check. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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 1211 matching lines...) Expand 10 before | Expand all | Expand 10 after
1222 1222
1223 1223
1224 void BaseLoadStubCompiler::NonexistentHandlerFrontend( 1224 void BaseLoadStubCompiler::NonexistentHandlerFrontend(
1225 Handle<JSObject> object, 1225 Handle<JSObject> object,
1226 Handle<JSObject> last, 1226 Handle<JSObject> last,
1227 Handle<Name> name, 1227 Handle<Name> name,
1228 Label* success, 1228 Label* success,
1229 Handle<GlobalObject> global) { 1229 Handle<GlobalObject> global) {
1230 Label miss; 1230 Label miss;
1231 1231
1232 Register reg = HandlerFrontendHeader(object, receiver(), last, name, &miss); 1232 HandlerFrontendHeader(object, receiver(), last, name, &miss);
1233 1233
1234 // If the last object in the prototype chain is a global object, 1234 // If the last object in the prototype chain is a global object,
1235 // check that the global property cell is empty. 1235 // check that the global property cell is empty.
1236 if (!global.is_null()) { 1236 if (!global.is_null()) {
1237 GenerateCheckPropertyCell(masm(), global, name, scratch2(), &miss); 1237 GenerateCheckPropertyCell(masm(), global, name, scratch2(), &miss);
1238 } 1238 }
1239 1239
1240 if (!last->HasFastProperties()) {
1241 __ lw(scratch2(), FieldMemOperand(reg, HeapObject::kMapOffset));
1242 __ lw(scratch2(), FieldMemOperand(scratch2(), Map::kPrototypeOffset));
1243 __ Branch(&miss, ne, scratch2(),
1244 Operand(isolate()->factory()->null_value()));
1245 }
1246
1247 HandlerFrontendFooter(success, &miss); 1240 HandlerFrontendFooter(success, &miss);
1248 } 1241 }
1249 1242
1250 1243
1251 void BaseLoadStubCompiler::GenerateLoadField(Register reg, 1244 void BaseLoadStubCompiler::GenerateLoadField(Register reg,
1252 Handle<JSObject> holder, 1245 Handle<JSObject> holder,
1253 PropertyIndex index) { 1246 PropertyIndex index) {
1254 GenerateFastPropertyLoad(masm(), v0, reg, holder, index); 1247 GenerateFastPropertyLoad(masm(), v0, reg, holder, index);
1255 __ Ret(); 1248 __ Ret();
1256 } 1249 }
(...skipping 2694 matching lines...) Expand 10 before | Expand all | Expand 10 after
3951 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); 3944 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow);
3952 } 3945 }
3953 } 3946 }
3954 3947
3955 3948
3956 #undef __ 3949 #undef __
3957 3950
3958 } } // namespace v8::internal 3951 } } // namespace v8::internal
3959 3952
3960 #endif // V8_TARGET_ARCH_MIPS 3953 #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