| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 6 | 6 |
| 7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
| 8 #include "src/base/division-by-constant.h" | 8 #include "src/base/division-by-constant.h" |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 2947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2958 Str(scratch1, MemOperand(scratch2)); | 2958 Str(scratch1, MemOperand(scratch2)); |
| 2959 } | 2959 } |
| 2960 } | 2960 } |
| 2961 | 2961 |
| 2962 | 2962 |
| 2963 void MacroAssembler::IncrementCounter(StatsCounter* counter, int value, | 2963 void MacroAssembler::IncrementCounter(StatsCounter* counter, int value, |
| 2964 Register scratch1, Register scratch2) { | 2964 Register scratch1, Register scratch2) { |
| 2965 DCHECK(value != 0); | 2965 DCHECK(value != 0); |
| 2966 if (FLAG_native_code_counters && counter->Enabled()) { | 2966 if (FLAG_native_code_counters && counter->Enabled()) { |
| 2967 Mov(scratch2, ExternalReference(counter)); | 2967 Mov(scratch2, ExternalReference(counter)); |
| 2968 Ldr(scratch1, MemOperand(scratch2)); | 2968 Ldr(scratch1.W(), MemOperand(scratch2)); |
| 2969 Add(scratch1, scratch1, value); | 2969 Add(scratch1.W(), scratch1.W(), value); |
| 2970 Str(scratch1, MemOperand(scratch2)); | 2970 Str(scratch1.W(), MemOperand(scratch2)); |
| 2971 } | 2971 } |
| 2972 } | 2972 } |
| 2973 | 2973 |
| 2974 | 2974 |
| 2975 void MacroAssembler::DecrementCounter(StatsCounter* counter, int value, | 2975 void MacroAssembler::DecrementCounter(StatsCounter* counter, int value, |
| 2976 Register scratch1, Register scratch2) { | 2976 Register scratch1, Register scratch2) { |
| 2977 IncrementCounter(counter, -value, scratch1, scratch2); | 2977 IncrementCounter(counter, -value, scratch1, scratch2); |
| 2978 } | 2978 } |
| 2979 | 2979 |
| 2980 | 2980 |
| (...skipping 2172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5153 } | 5153 } |
| 5154 | 5154 |
| 5155 | 5155 |
| 5156 #undef __ | 5156 #undef __ |
| 5157 | 5157 |
| 5158 | 5158 |
| 5159 } // namespace internal | 5159 } // namespace internal |
| 5160 } // namespace v8 | 5160 } // namespace v8 |
| 5161 | 5161 |
| 5162 #endif // V8_TARGET_ARCH_ARM64 | 5162 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |