OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #include "src/compiler/access-builder.h" | 5 #include "src/compiler/access-builder.h" |
6 | 6 |
7 #include "src/contexts.h" | 7 #include "src/contexts.h" |
8 #include "src/frames.h" | 8 #include "src/frames.h" |
9 #include "src/handles-inl.h" | 9 #include "src/handles-inl.h" |
10 #include "src/heap/heap.h" | 10 #include "src/heap/heap.h" |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 FieldAccess AccessBuilder::ForMapPrototype() { | 362 FieldAccess AccessBuilder::ForMapPrototype() { |
363 FieldAccess access = { | 363 FieldAccess access = { |
364 kTaggedBase, Map::kPrototypeOffset, Handle<Name>(), | 364 kTaggedBase, Map::kPrototypeOffset, Handle<Name>(), |
365 Type::TaggedPointer(), MachineType::AnyTagged(), kPointerWriteBarrier}; | 365 Type::TaggedPointer(), MachineType::AnyTagged(), kPointerWriteBarrier}; |
366 return access; | 366 return access; |
367 } | 367 } |
368 | 368 |
369 | 369 |
370 // static | 370 // static |
371 FieldAccess AccessBuilder::ForNameHashField() { | 371 FieldAccess AccessBuilder::ForNameHashField() { |
372 FieldAccess access = { | 372 FieldAccess access = {kTaggedBase, Name::kHashFieldOffset, |
373 kTaggedBase, Name::kHashFieldOffset, Handle<Name>(), | 373 Handle<Name>(), Type::Internal(), |
374 Type::Internal(), MachineType::Pointer(), kNoWriteBarrier}; | 374 MachineType::Uint32(), kNoWriteBarrier}; |
375 return access; | 375 return access; |
376 } | 376 } |
377 | 377 |
378 // static | 378 // static |
379 FieldAccess AccessBuilder::ForStringLength() { | 379 FieldAccess AccessBuilder::ForStringLength() { |
380 FieldAccess access = {kTaggedBase, | 380 FieldAccess access = {kTaggedBase, |
381 String::kLengthOffset, | 381 String::kLengthOffset, |
382 Handle<Name>(), | 382 Handle<Name>(), |
383 TypeCache::Get().kStringLengthType, | 383 TypeCache::Get().kStringLengthType, |
384 MachineType::AnyTagged(), | 384 MachineType::AnyTagged(), |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 } | 550 } |
551 UNREACHABLE(); | 551 UNREACHABLE(); |
552 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(), | 552 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(), |
553 kNoWriteBarrier}; | 553 kNoWriteBarrier}; |
554 return access; | 554 return access; |
555 } | 555 } |
556 | 556 |
557 } // namespace compiler | 557 } // namespace compiler |
558 } // namespace internal | 558 } // namespace internal |
559 } // namespace v8 | 559 } // namespace v8 |
OLD | NEW |