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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/base/division-by-constant.h" | 10 #include "src/base/division-by-constant.h" |
(...skipping 4214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4225 } else { | 4225 } else { |
4226 B(ne, miss); | 4226 B(ne, miss); |
4227 } | 4227 } |
4228 } | 4228 } |
4229 | 4229 |
4230 Bind(&done); | 4230 Bind(&done); |
4231 // Check that the value is a field property. | 4231 // Check that the value is a field property. |
4232 const int kDetailsOffset = | 4232 const int kDetailsOffset = |
4233 SeededNumberDictionary::kElementsStartOffset + 2 * kPointerSize; | 4233 SeededNumberDictionary::kElementsStartOffset + 2 * kPointerSize; |
4234 Ldrsw(scratch1, UntagSmiFieldMemOperand(scratch2, kDetailsOffset)); | 4234 Ldrsw(scratch1, UntagSmiFieldMemOperand(scratch2, kDetailsOffset)); |
4235 DCHECK_EQ(FIELD, 0); | 4235 DCHECK_EQ(DATA, 0); |
4236 TestAndBranchIfAnySet(scratch1, PropertyDetails::TypeField::kMask, miss); | 4236 TestAndBranchIfAnySet(scratch1, PropertyDetails::TypeField::kMask, miss); |
4237 | 4237 |
4238 // Get the value at the masked, scaled index and return. | 4238 // Get the value at the masked, scaled index and return. |
4239 const int kValueOffset = | 4239 const int kValueOffset = |
4240 SeededNumberDictionary::kElementsStartOffset + kPointerSize; | 4240 SeededNumberDictionary::kElementsStartOffset + kPointerSize; |
4241 Ldr(result, FieldMemOperand(scratch2, kValueOffset)); | 4241 Ldr(result, FieldMemOperand(scratch2, kValueOffset)); |
4242 } | 4242 } |
4243 | 4243 |
4244 | 4244 |
4245 void MacroAssembler::RememberedSetHelper(Register object, // For debug tests. | 4245 void MacroAssembler::RememberedSetHelper(Register object, // For debug tests. |
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5393 } | 5393 } |
5394 } | 5394 } |
5395 | 5395 |
5396 | 5396 |
5397 #undef __ | 5397 #undef __ |
5398 | 5398 |
5399 | 5399 |
5400 } } // namespace v8::internal | 5400 } } // namespace v8::internal |
5401 | 5401 |
5402 #endif // V8_TARGET_ARCH_ARM64 | 5402 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |