OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_ARM_CODE_STUBS_ARM_H_ | 5 #ifndef V8_ARM_CODE_STUBS_ARM_H_ |
6 #define V8_ARM_CODE_STUBS_ARM_H_ | 6 #define V8_ARM_CODE_STUBS_ARM_H_ |
7 | 7 |
8 #include "src/arm/frames-arm.h" | 8 #include "src/arm/frames-arm.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 } | 262 } |
263 | 263 |
264 static void GenerateNegativeLookup(MacroAssembler* masm, | 264 static void GenerateNegativeLookup(MacroAssembler* masm, |
265 Label* miss, | 265 Label* miss, |
266 Label* done, | 266 Label* done, |
267 Register receiver, | 267 Register receiver, |
268 Register properties, | 268 Register properties, |
269 Handle<Name> name, | 269 Handle<Name> name, |
270 Register scratch0); | 270 Register scratch0); |
271 | 271 |
272 static void GeneratePositiveLookup(MacroAssembler* masm, | |
273 Label* miss, | |
274 Label* done, | |
275 Register elements, | |
276 Register name, | |
277 Register r0, | |
278 Register r1); | |
279 | |
280 bool SometimesSetsUpAFrame() override { return false; } | 272 bool SometimesSetsUpAFrame() override { return false; } |
281 | 273 |
282 private: | 274 private: |
283 static const int kInlinedProbes = 4; | 275 static const int kInlinedProbes = 4; |
284 static const int kTotalProbes = 20; | 276 static const int kTotalProbes = 20; |
285 | 277 |
286 static const int kCapacityOffset = | 278 static const int kCapacityOffset = |
287 NameDictionary::kHeaderSize + | 279 NameDictionary::kHeaderSize + |
288 NameDictionary::kCapacityIndex * kPointerSize; | 280 NameDictionary::kCapacityIndex * kPointerSize; |
289 | 281 |
290 static const int kElementsStartOffset = | 282 static const int kElementsStartOffset = |
291 NameDictionary::kHeaderSize + | 283 NameDictionary::kHeaderSize + |
292 NameDictionary::kElementsStartIndex * kPointerSize; | 284 NameDictionary::kElementsStartIndex * kPointerSize; |
293 | 285 |
294 LookupMode mode() const { return LookupModeBits::decode(minor_key_); } | 286 LookupMode mode() const { return LookupModeBits::decode(minor_key_); } |
295 | 287 |
296 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 288 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
297 | 289 |
298 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); | 290 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); |
299 DEFINE_PLATFORM_CODE_STUB(NameDictionaryLookup, PlatformCodeStub); | 291 DEFINE_PLATFORM_CODE_STUB(NameDictionaryLookup, PlatformCodeStub); |
300 }; | 292 }; |
301 | 293 |
302 } // namespace internal | 294 } // namespace internal |
303 } // namespace v8 | 295 } // namespace v8 |
304 | 296 |
305 #endif // V8_ARM_CODE_STUBS_ARM_H_ | 297 #endif // V8_ARM_CODE_STUBS_ARM_H_ |
OLD | NEW |