Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index 005fb97513d0277325c9ff516612aeb922f1949c..2dcb53dd175f24968b775796febddf9df395dd0d 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -4667,8 +4667,9 @@ void VectorKeyedStoreICStub::GenerateImpl(MacroAssembler* masm, bool in_frame) { |
void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { |
if (masm->isolate()->function_entry_hook() != NULL) { |
ProfileEntryHookStub stub(masm->isolate()); |
- int code_size = masm->CallStubSize(&stub) + 2 * Assembler::kInstrSize; |
- PredictableCodeSizeScope predictable(masm, code_size); |
+ PredictableCodeSizeScope predictable(masm); |
+ predictable.ExpectSize(masm->CallStubSize(&stub) + |
+ 2 * Assembler::kInstrSize); |
__ push(lr); |
__ CallStub(&stub); |
__ pop(lr); |