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_IA32_CODE_STUBS_IA32_H_ | 5 #ifndef V8_IA32_CODE_STUBS_IA32_H_ |
6 #define V8_IA32_CODE_STUBS_IA32_H_ | 6 #define V8_IA32_CODE_STUBS_IA32_H_ |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 RegisterAllocation regs_; | 346 RegisterAllocation regs_; |
355 | 347 |
356 DISALLOW_COPY_AND_ASSIGN(RecordWriteStub); | 348 DISALLOW_COPY_AND_ASSIGN(RecordWriteStub); |
357 }; | 349 }; |
358 | 350 |
359 | 351 |
360 } // namespace internal | 352 } // namespace internal |
361 } // namespace v8 | 353 } // namespace v8 |
362 | 354 |
363 #endif // V8_IA32_CODE_STUBS_IA32_H_ | 355 #endif // V8_IA32_CODE_STUBS_IA32_H_ |
OLD | NEW |