| 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 #ifndef V8_ARM64_CODE_STUBS_ARM64_H_ | 5 #ifndef V8_ARM64_CODE_STUBS_ARM64_H_ |
| 6 #define V8_ARM64_CODE_STUBS_ARM64_H_ | 6 #define V8_ARM64_CODE_STUBS_ARM64_H_ |
| 7 | 7 |
| 8 namespace v8 { | 8 namespace v8 { |
| 9 namespace internal { | 9 namespace internal { |
| 10 | 10 |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 } | 348 } |
| 349 | 349 |
| 350 static void GenerateNegativeLookup(MacroAssembler* masm, | 350 static void GenerateNegativeLookup(MacroAssembler* masm, |
| 351 Label* miss, | 351 Label* miss, |
| 352 Label* done, | 352 Label* done, |
| 353 Register receiver, | 353 Register receiver, |
| 354 Register properties, | 354 Register properties, |
| 355 Handle<Name> name, | 355 Handle<Name> name, |
| 356 Register scratch0); | 356 Register scratch0); |
| 357 | 357 |
| 358 static void GeneratePositiveLookup(MacroAssembler* masm, | |
| 359 Label* miss, | |
| 360 Label* done, | |
| 361 Register elements, | |
| 362 Register name, | |
| 363 Register scratch1, | |
| 364 Register scratch2); | |
| 365 | |
| 366 bool SometimesSetsUpAFrame() override { return false; } | 358 bool SometimesSetsUpAFrame() override { return false; } |
| 367 | 359 |
| 368 private: | 360 private: |
| 369 static const int kInlinedProbes = 4; | 361 static const int kInlinedProbes = 4; |
| 370 static const int kTotalProbes = 20; | 362 static const int kTotalProbes = 20; |
| 371 | 363 |
| 372 static const int kCapacityOffset = | 364 static const int kCapacityOffset = |
| 373 NameDictionary::kHeaderSize + | 365 NameDictionary::kHeaderSize + |
| 374 NameDictionary::kCapacityIndex * kPointerSize; | 366 NameDictionary::kCapacityIndex * kPointerSize; |
| 375 | 367 |
| 376 static const int kElementsStartOffset = | 368 static const int kElementsStartOffset = |
| 377 NameDictionary::kHeaderSize + | 369 NameDictionary::kHeaderSize + |
| 378 NameDictionary::kElementsStartIndex * kPointerSize; | 370 NameDictionary::kElementsStartIndex * kPointerSize; |
| 379 | 371 |
| 380 LookupMode mode() const { return LookupModeBits::decode(minor_key_); } | 372 LookupMode mode() const { return LookupModeBits::decode(minor_key_); } |
| 381 | 373 |
| 382 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 374 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
| 383 | 375 |
| 384 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); | 376 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); |
| 385 DEFINE_PLATFORM_CODE_STUB(NameDictionaryLookup, PlatformCodeStub); | 377 DEFINE_PLATFORM_CODE_STUB(NameDictionaryLookup, PlatformCodeStub); |
| 386 }; | 378 }; |
| 387 | 379 |
| 388 } // namespace internal | 380 } // namespace internal |
| 389 } // namespace v8 | 381 } // namespace v8 |
| 390 | 382 |
| 391 #endif // V8_ARM64_CODE_STUBS_ARM64_H_ | 383 #endif // V8_ARM64_CODE_STUBS_ARM64_H_ |
| OLD | NEW |