diff --git a/runtime/vm/code_generator.cc b/runtime/vm/code_generator.cc index ddbfbea8f02..ef90b547a17 100644 --- a/runtime/vm/code_generator.cc +++ b/runtime/vm/code_generator.cc @@ -1960,7 +1960,7 @@ void DeoptimizeAt(const Code& optimized_code, StackFrame* frame) { const Instructions& instrs = Instructions::Handle(zone, optimized_code.instructions()); { - WritableInstructionsScope writable(instrs.PayloadStart(), instrs.size()); + WritableInstructionsScope writable(instrs.PayloadStart(), instrs.Size()); CodePatcher::InsertDeoptimizationCallAt(frame->pc()); if (FLAG_trace_patching) { const String& name = String::Handle(function.name()); diff --git a/runtime/vm/code_patcher_ia32.cc b/runtime/vm/code_patcher_ia32.cc index 45f39238fc6..d0b0a3e5e43 100644 --- a/runtime/vm/code_patcher_ia32.cc +++ b/runtime/vm/code_patcher_ia32.cc @@ -163,7 +163,7 @@ void CodePatcher::PatchStaticCallAt(uword return_address, const Code& code, const Code& new_target) { const Instructions& instrs = Instructions::Handle(code.instructions()); - WritableInstructionsScope writable(instrs.PayloadStart(), instrs.size()); + WritableInstructionsScope writable(instrs.PayloadStart(), instrs.Size()); ASSERT(code.ContainsInstructionAt(return_address)); StaticCall call(return_address); call.set_target(new_target); diff --git a/runtime/vm/debugger_dbc.cc b/runtime/vm/debugger_dbc.cc index b808967c92a..83046771b12 100644 --- a/runtime/vm/debugger_dbc.cc +++ b/runtime/vm/debugger_dbc.cc @@ -35,7 +35,7 @@ void CodeBreakpoint::PatchCode() { const Code& code = Code::Handle(code_); const Instructions& instrs = Instructions::Handle(code.instructions()); { - WritableInstructionsScope writable(instrs.PayloadStart(), instrs.size()); + WritableInstructionsScope writable(instrs.PayloadStart(), instrs.Size()); saved_value_ = *CallInstructionFromReturnAddress(pc_); switch (breakpoint_kind_) { case RawPcDescriptors::kIcCall: @@ -77,7 +77,7 @@ void CodeBreakpoint::RestoreCode() { const Code& code = Code::Handle(code_); const Instructions& instrs = Instructions::Handle(code.instructions()); { - WritableInstructionsScope writable(instrs.PayloadStart(), instrs.size()); + WritableInstructionsScope writable(instrs.PayloadStart(), instrs.Size()); switch (breakpoint_kind_) { case RawPcDescriptors::kIcCall: case RawPcDescriptors::kUnoptStaticCall: diff --git a/runtime/vm/debugger_ia32.cc b/runtime/vm/debugger_ia32.cc index c900f75fa13..83cd02df726 100644 --- a/runtime/vm/debugger_ia32.cc +++ b/runtime/vm/debugger_ia32.cc @@ -30,7 +30,7 @@ void CodeBreakpoint::PatchCode() { const Instructions& instrs = Instructions::Handle(code.instructions()); Code& stub_target = Code::Handle(); { - WritableInstructionsScope writable(instrs.PayloadStart(), instrs.size()); + WritableInstructionsScope writable(instrs.PayloadStart(), instrs.Size()); switch (breakpoint_kind_) { case RawPcDescriptors::kIcCall: case RawPcDescriptors::kUnoptStaticCall: { @@ -57,7 +57,7 @@ void CodeBreakpoint::RestoreCode() { const Code& code = Code::Handle(code_); const Instructions& instrs = Instructions::Handle(code.instructions()); { - WritableInstructionsScope writable(instrs.PayloadStart(), instrs.size()); + WritableInstructionsScope writable(instrs.PayloadStart(), instrs.Size()); switch (breakpoint_kind_) { case RawPcDescriptors::kIcCall: case RawPcDescriptors::kUnoptStaticCall: