| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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_X64_CODE_STUBS_X64_H_ | 5 #ifndef V8_X64_CODE_STUBS_X64_H_ |
| 6 #define V8_X64_CODE_STUBS_X64_H_ | 6 #define V8_X64_CODE_STUBS_X64_H_ |
| 7 | 7 |
| 8 namespace v8 { | 8 namespace v8 { |
| 9 namespace internal { | 9 namespace internal { |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 IndexBits::encode(index.code()) | LookupModeBits::encode(mode); | 47 IndexBits::encode(index.code()) | LookupModeBits::encode(mode); |
| 48 } | 48 } |
| 49 | 49 |
| 50 static void GenerateNegativeLookup(MacroAssembler* masm, | 50 static void GenerateNegativeLookup(MacroAssembler* masm, |
| 51 Label* miss, | 51 Label* miss, |
| 52 Label* done, | 52 Label* done, |
| 53 Register properties, | 53 Register properties, |
| 54 Handle<Name> name, | 54 Handle<Name> name, |
| 55 Register r0); | 55 Register r0); |
| 56 | 56 |
| 57 static void GeneratePositiveLookup(MacroAssembler* masm, | |
| 58 Label* miss, | |
| 59 Label* done, | |
| 60 Register elements, | |
| 61 Register name, | |
| 62 Register r0, | |
| 63 Register r1); | |
| 64 | |
| 65 bool SometimesSetsUpAFrame() override { return false; } | 57 bool SometimesSetsUpAFrame() override { return false; } |
| 66 | 58 |
| 67 private: | 59 private: |
| 68 static const int kInlinedProbes = 4; | 60 static const int kInlinedProbes = 4; |
| 69 static const int kTotalProbes = 20; | 61 static const int kTotalProbes = 20; |
| 70 | 62 |
| 71 static const int kCapacityOffset = | 63 static const int kCapacityOffset = |
| 72 NameDictionary::kHeaderSize + | 64 NameDictionary::kHeaderSize + |
| 73 NameDictionary::kCapacityIndex * kPointerSize; | 65 NameDictionary::kCapacityIndex * kPointerSize; |
| 74 | 66 |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 RegisterAllocation regs_; | 342 RegisterAllocation regs_; |
| 351 | 343 |
| 352 DISALLOW_COPY_AND_ASSIGN(RecordWriteStub); | 344 DISALLOW_COPY_AND_ASSIGN(RecordWriteStub); |
| 353 }; | 345 }; |
| 354 | 346 |
| 355 | 347 |
| 356 } // namespace internal | 348 } // namespace internal |
| 357 } // namespace v8 | 349 } // namespace v8 |
| 358 | 350 |
| 359 #endif // V8_X64_CODE_STUBS_X64_H_ | 351 #endif // V8_X64_CODE_STUBS_X64_H_ |
| OLD | NEW |