| Index: src/arm/builtins-arm.cc
|
| diff --git a/src/arm/builtins-arm.cc b/src/arm/builtins-arm.cc
|
| index 24d14e8c8a1efb62bbea08e366f4f1816bbd9d1f..0d05da5d657211f045117df2fe0f48c2eb828bc6 100644
|
| --- a/src/arm/builtins-arm.cc
|
| +++ b/src/arm/builtins-arm.cc
|
| @@ -1259,6 +1259,29 @@ CODE_AGE_LIST(DEFINE_CODE_AGE_BUILTIN_GENERATOR)
|
| #undef DEFINE_CODE_AGE_BUILTIN_GENERATOR
|
|
|
|
|
| +void Builtins::Generate_NotifyICMiss(MacroAssembler* masm) {
|
| + {
|
| + FrameScope scope(masm, StackFrame::INTERNAL);
|
| +
|
| + // Preserve registers across notification, this is important compiled stubs
|
| + // that tail call the runtime on deopts passing their parameters in
|
| + // registers.
|
| + __ stm(db_w, sp, kJSCallerSaved | kCalleeSaved);
|
| + // Pass the function and deoptimization type to the runtime system.
|
| + __ CallRuntime(Runtime::kNotifyICMiss, 0);
|
| + __ ldm(ia_w, sp, kJSCallerSaved | kCalleeSaved);
|
| + }
|
| +
|
| + __ pop(ip); // Ignore pushed state
|
| + __ pop(ip); // Ignore function marker
|
| + __ pop(cp); // Restore context
|
| + __ pop(fp); // Restore frame ptr
|
| + __ mov(ip, lr); // lr contains beginning of IC miss code
|
| + __ pop(lr); // Restore lr for return after IC miss completes
|
| + __ mov(pc, ip);
|
| +}
|
| +
|
| +
|
| static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm,
|
| Deoptimizer::BailoutType type) {
|
| {
|
|
|