OLD | NEW |
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 Loading... |
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) { | 1300 void Builtins::Generate_NotifyStubFailure(MacroAssembler* masm) { |
1301 { | 1301 { |
1302 FrameScope scope(masm, StackFrame::INTERNAL); | 1302 FrameScope scope(masm, StackFrame::INTERNAL); |
1303 | 1303 |
1304 // Preserve registers across notification, this is important for compiled | 1304 // Preserve registers across notification, this is important for compiled |
1305 // stubs that tail call the runtime on deopts passing their parameters in | 1305 // stubs that tail call the runtime on deopts passing their parameters in |
1306 // registers. | 1306 // registers. |
1307 __ MultiPush(kJSCallerSaved | kCalleeSaved); | 1307 __ MultiPush(kJSCallerSaved | kCalleeSaved); |
1308 // Pass the function and deoptimization type to the runtime system. | 1308 // Pass the function and deoptimization type to the runtime system. |
1309 __ CallRuntime(Runtime::kNotifyICMiss, 0); | 1309 __ CallRuntime(Runtime::kNotifyStubFailure, 0); |
1310 __ MultiPop(kJSCallerSaved | kCalleeSaved); | 1310 __ MultiPop(kJSCallerSaved | kCalleeSaved); |
1311 } | 1311 } |
1312 | 1312 |
1313 __ mov(at, ra); // Stash the miss continuation | 1313 __ mov(at, ra); // Stash the miss continuation |
1314 __ Addu(sp, sp, Operand(kPointerSize)); // Ignore state | 1314 __ Addu(sp, sp, Operand(kPointerSize)); // Ignore state |
1315 __ pop(ra); // Restore RA to continuation in JSFunction | 1315 __ pop(ra); // Restore RA to continuation in JSFunction |
1316 __ Jump(at); // Jump to miss handler | 1316 __ Jump(at); // Jump to miss handler |
1317 } | 1317 } |
1318 | 1318 |
1319 | 1319 |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1898 __ bind(&dont_adapt_arguments); | 1898 __ bind(&dont_adapt_arguments); |
1899 __ Jump(a3); | 1899 __ Jump(a3); |
1900 } | 1900 } |
1901 | 1901 |
1902 | 1902 |
1903 #undef __ | 1903 #undef __ |
1904 | 1904 |
1905 } } // namespace v8::internal | 1905 } } // namespace v8::internal |
1906 | 1906 |
1907 #endif // V8_TARGET_ARCH_MIPS | 1907 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |