@@ -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());
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user