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

Side by Side Diff: src/mips/builtins-mips.cc

Issue 11801002: MIPS: Re-land Crankshaft-generated KeyedLoad stubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 11 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/assembler-mips-inl.h ('k') | src/mips/code-stubs-mips.h » ('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 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 GenerateMakeCodeYoungAgainCommon(masm); \ 1290 GenerateMakeCodeYoungAgainCommon(masm); \
1291 } \ 1291 } \
1292 void Builtins::Generate_Make##C##CodeYoungAgainOddMarking( \ 1292 void Builtins::Generate_Make##C##CodeYoungAgainOddMarking( \
1293 MacroAssembler* masm) { \ 1293 MacroAssembler* masm) { \
1294 GenerateMakeCodeYoungAgainCommon(masm); \ 1294 GenerateMakeCodeYoungAgainCommon(masm); \
1295 } 1295 }
1296 CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR) 1296 CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR)
1297 #undef DEFINE_CODE_AGE_BUILTIN_GENERATOR 1297 #undef DEFINE_CODE_AGE_BUILTIN_GENERATOR
1298 1298
1299 1299
1300 void Builtins::Generate_NotifyICMiss(MacroAssembler* masm) {
1301 {
1302 FrameScope scope(masm, StackFrame::INTERNAL);
1303
1304 // Preserve registers across notification, this is important for compiled
1305 // stubs that tail call the runtime on deopts passing their parameters in
1306 // registers.
1307 __ MultiPush(kJSCallerSaved | kCalleeSaved);
1308 // Pass the function and deoptimization type to the runtime system.
1309 __ CallRuntime(Runtime::kNotifyICMiss, 0);
1310 __ MultiPop(kJSCallerSaved | kCalleeSaved);
1311 }
1312
1313 __ mov(at, ra); // Stash the miss continuation
1314 __ Addu(sp, sp, Operand(kPointerSize)); // Ignore state
1315 __ pop(ra); // Restore RA to continuation in JSFunction
1316 __ Jump(at); // Jump to miss handler
1317 }
1318
1319
1300 static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm, 1320 static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm,
1301 Deoptimizer::BailoutType type) { 1321 Deoptimizer::BailoutType type) {
1302 { 1322 {
1303 FrameScope scope(masm, StackFrame::INTERNAL); 1323 FrameScope scope(masm, StackFrame::INTERNAL);
1304 // Pass the function and deoptimization type to the runtime system. 1324 // Pass the function and deoptimization type to the runtime system.
1305 __ li(a0, Operand(Smi::FromInt(static_cast<int>(type)))); 1325 __ li(a0, Operand(Smi::FromInt(static_cast<int>(type))));
1306 __ push(a0); 1326 __ push(a0);
1307 __ CallRuntime(Runtime::kNotifyDeoptimized, 1); 1327 __ CallRuntime(Runtime::kNotifyDeoptimized, 1);
1308 } 1328 }
1309 1329
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
1878 __ bind(&dont_adapt_arguments); 1898 __ bind(&dont_adapt_arguments);
1879 __ Jump(a3); 1899 __ Jump(a3);
1880 } 1900 }
1881 1901
1882 1902
1883 #undef __ 1903 #undef __
1884 1904
1885 } } // namespace v8::internal 1905 } } // namespace v8::internal
1886 1906
1887 #endif // V8_TARGET_ARCH_MIPS 1907 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/assembler-mips-inl.h ('k') | src/mips/code-stubs-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698