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_X87_CODE_STUBS_X87_H_ | 5 #ifndef V8_X87_CODE_STUBS_X87_H_ |
6 #define V8_X87_CODE_STUBS_X87_H_ | 6 #define V8_X87_CODE_STUBS_X87_H_ |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 | 10 |
(...skipping 40 matching lines...) Loading... |
51 IndexBits::encode(index.code()) | LookupModeBits::encode(mode); | 51 IndexBits::encode(index.code()) | LookupModeBits::encode(mode); |
52 } | 52 } |
53 | 53 |
54 static void GenerateNegativeLookup(MacroAssembler* masm, | 54 static void GenerateNegativeLookup(MacroAssembler* masm, |
55 Label* miss, | 55 Label* miss, |
56 Label* done, | 56 Label* done, |
57 Register properties, | 57 Register properties, |
58 Handle<Name> name, | 58 Handle<Name> name, |
59 Register r0); | 59 Register r0); |
60 | 60 |
61 static void GeneratePositiveLookup(MacroAssembler* masm, | |
62 Label* miss, | |
63 Label* done, | |
64 Register elements, | |
65 Register name, | |
66 Register r0, | |
67 Register r1); | |
68 | |
69 bool SometimesSetsUpAFrame() override { return false; } | 61 bool SometimesSetsUpAFrame() override { return false; } |
70 | 62 |
71 private: | 63 private: |
72 static const int kInlinedProbes = 4; | 64 static const int kInlinedProbes = 4; |
73 static const int kTotalProbes = 20; | 65 static const int kTotalProbes = 20; |
74 | 66 |
75 static const int kCapacityOffset = | 67 static const int kCapacityOffset = |
76 NameDictionary::kHeaderSize + | 68 NameDictionary::kHeaderSize + |
77 NameDictionary::kCapacityIndex * kPointerSize; | 69 NameDictionary::kCapacityIndex * kPointerSize; |
78 | 70 |
(...skipping 272 matching lines...) Loading... |
351 RegisterAllocation regs_; | 343 RegisterAllocation regs_; |
352 | 344 |
353 DISALLOW_COPY_AND_ASSIGN(RecordWriteStub); | 345 DISALLOW_COPY_AND_ASSIGN(RecordWriteStub); |
354 }; | 346 }; |
355 | 347 |
356 | 348 |
357 } // namespace internal | 349 } // namespace internal |
358 } // namespace v8 | 350 } // namespace v8 |
359 | 351 |
360 #endif // V8_X87_CODE_STUBS_X87_H_ | 352 #endif // V8_X87_CODE_STUBS_X87_H_ |
OLD | NEW |