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

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

Issue 14855008: MIPS: Turn the load field code stub into a hydrogen code stub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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/code-stubs-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 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after
1301 if (!global.is_null()) { 1301 if (!global.is_null()) {
1302 GenerateCheckPropertyCell(masm(), global, name, scratch2(), &miss); 1302 GenerateCheckPropertyCell(masm(), global, name, scratch2(), &miss);
1303 } 1303 }
1304 1304
1305 HandlerFrontendFooter(success, &miss); 1305 HandlerFrontendFooter(success, &miss);
1306 } 1306 }
1307 1307
1308 1308
1309 void BaseLoadStubCompiler::GenerateLoadField(Register reg, 1309 void BaseLoadStubCompiler::GenerateLoadField(Register reg,
1310 Handle<JSObject> holder, 1310 Handle<JSObject> holder,
1311 PropertyIndex index) { 1311 PropertyIndex field) {
1312 GenerateFastPropertyLoad(masm(), v0, reg, holder, index); 1312 if (!reg.is(receiver())) __ mov(receiver(), reg);
1313 __ Ret(); 1313 if (kind() == Code::LOAD_IC) {
1314 LoadFieldStub stub(field.is_inobject(holder),
1315 field.translate(holder));
1316 GenerateTailCall(masm(), stub.GetCode(isolate()));
1317 } else {
1318 KeyedLoadFieldStub stub(field.is_inobject(holder),
1319 field.translate(holder));
1320 GenerateTailCall(masm(), stub.GetCode(isolate()));
1321 }
1314 } 1322 }
1315 1323
1316 1324
1317 void BaseLoadStubCompiler::GenerateLoadConstant(Handle<JSFunction> value) { 1325 void BaseLoadStubCompiler::GenerateLoadConstant(Handle<JSFunction> value) {
1318 // Return the constant value. 1326 // Return the constant value.
1319 __ LoadHeapObject(v0, value); 1327 __ LoadHeapObject(v0, value);
1320 __ Ret(); 1328 __ Ret();
1321 } 1329 }
1322 1330
1323 1331
(...skipping 2463 matching lines...) Expand 10 before | Expand all | Expand 10 after
3787 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); 3795 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow);
3788 } 3796 }
3789 } 3797 }
3790 3798
3791 3799
3792 #undef __ 3800 #undef __
3793 3801
3794 } } // namespace v8::internal 3802 } } // namespace v8::internal
3795 3803
3796 #endif // V8_TARGET_ARCH_MIPS 3804 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698