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