| Index: runtime/vm/instructions_arm.cc
|
| diff --git a/runtime/vm/instructions_arm.cc b/runtime/vm/instructions_arm.cc
|
| index 1533a20391accad78729da4d64c6158abb1e0f21..eec6cfe364b93941850e62d2e2decda91b765c6e 100644
|
| --- a/runtime/vm/instructions_arm.cc
|
| +++ b/runtime/vm/instructions_arm.cc
|
| @@ -32,16 +32,20 @@ CallPattern::CallPattern(uword pc, const Code& code)
|
| }
|
|
|
|
|
| -int CallPattern::DeoptCallPatternLengthInBytes() {
|
| +int CallPattern::DeoptCallPatternLengthInInstructions() {
|
| const ARMVersion version = TargetCPUFeatures::arm_version();
|
| if ((version == ARMv5TE) || (version == ARMv6)) {
|
| - return 5 * Instr::kInstrSize;
|
| + return 5;
|
| } else {
|
| ASSERT(version == ARMv7);
|
| - return 3 * Instr::kInstrSize;
|
| + return 3;
|
| }
|
| }
|
|
|
| +int CallPattern::DeoptCallPatternLengthInBytes() {
|
| + return DeoptCallPatternLengthInInstructions() * Instr::kInstrSize;
|
| +}
|
| +
|
|
|
| NativeCallPattern::NativeCallPattern(uword pc, const Code& code)
|
| : object_pool_(ObjectPool::Handle(code.GetObjectPool())),
|
|
|