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_MIPS_CODE_STUBS_MIPS64_H_ | 5 #ifndef V8_MIPS_CODE_STUBS_MIPS64_H_ |
6 #define V8_MIPS_CODE_STUBS_MIPS64_H_ | 6 #define V8_MIPS_CODE_STUBS_MIPS64_H_ |
7 | 7 |
8 #include "src/mips64/frames-mips64.h" | 8 #include "src/mips64/frames-mips64.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 } | 294 } |
295 | 295 |
296 static void GenerateNegativeLookup(MacroAssembler* masm, | 296 static void GenerateNegativeLookup(MacroAssembler* masm, |
297 Label* miss, | 297 Label* miss, |
298 Label* done, | 298 Label* done, |
299 Register receiver, | 299 Register receiver, |
300 Register properties, | 300 Register properties, |
301 Handle<Name> name, | 301 Handle<Name> name, |
302 Register scratch0); | 302 Register scratch0); |
303 | 303 |
304 static void GeneratePositiveLookup(MacroAssembler* masm, | |
305 Label* miss, | |
306 Label* done, | |
307 Register elements, | |
308 Register name, | |
309 Register r0, | |
310 Register r1); | |
311 | |
312 bool SometimesSetsUpAFrame() override { return false; } | 304 bool SometimesSetsUpAFrame() override { return false; } |
313 | 305 |
314 private: | 306 private: |
315 static const int kInlinedProbes = 4; | 307 static const int kInlinedProbes = 4; |
316 static const int kTotalProbes = 20; | 308 static const int kTotalProbes = 20; |
317 | 309 |
318 static const int kCapacityOffset = | 310 static const int kCapacityOffset = |
319 NameDictionary::kHeaderSize + | 311 NameDictionary::kHeaderSize + |
320 NameDictionary::kCapacityIndex * kPointerSize; | 312 NameDictionary::kCapacityIndex * kPointerSize; |
321 | 313 |
322 static const int kElementsStartOffset = | 314 static const int kElementsStartOffset = |
323 NameDictionary::kHeaderSize + | 315 NameDictionary::kHeaderSize + |
324 NameDictionary::kElementsStartIndex * kPointerSize; | 316 NameDictionary::kElementsStartIndex * kPointerSize; |
325 | 317 |
326 LookupMode mode() const { return LookupModeBits::decode(minor_key_); } | 318 LookupMode mode() const { return LookupModeBits::decode(minor_key_); } |
327 | 319 |
328 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 320 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
329 | 321 |
330 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); | 322 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); |
331 DEFINE_PLATFORM_CODE_STUB(NameDictionaryLookup, PlatformCodeStub); | 323 DEFINE_PLATFORM_CODE_STUB(NameDictionaryLookup, PlatformCodeStub); |
332 }; | 324 }; |
333 | 325 |
334 | 326 |
335 } // namespace internal | 327 } // namespace internal |
336 } // namespace v8 | 328 } // namespace v8 |
337 | 329 |
338 #endif // V8_MIPS_CODE_STUBS_MIPS64_H_ | 330 #endif // V8_MIPS_CODE_STUBS_MIPS64_H_ |
OLD | NEW |