Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Side by Side Diff: src/compiler/access-builder.cc

Issue 2290233002: [turbofan] Introduce MachineRepresentation to PropertyAccessInfo. (Closed)
Patch Set: REBASE and comments. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/compiler/access-info.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/compiler/type-cache.h" 7 #include "src/compiler/type-cache.h"
8 #include "src/contexts.h" 8 #include "src/contexts.h"
9 #include "src/frames.h" 9 #include "src/frames.h"
10 #include "src/handles-inl.h" 10 #include "src/handles-inl.h"
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 return access; 326 return access;
327 } 327 }
328 328
329 329
330 // static 330 // static
331 FieldAccess AccessBuilder::ForFixedArrayLength() { 331 FieldAccess AccessBuilder::ForFixedArrayLength() {
332 FieldAccess access = {kTaggedBase, 332 FieldAccess access = {kTaggedBase,
333 FixedArray::kLengthOffset, 333 FixedArray::kLengthOffset,
334 MaybeHandle<Name>(), 334 MaybeHandle<Name>(),
335 TypeCache::Get().kFixedArrayLengthType, 335 TypeCache::Get().kFixedArrayLengthType,
336 MachineType::AnyTagged(), 336 MachineType::TaggedSigned(),
337 kNoWriteBarrier}; 337 kNoWriteBarrier};
338 return access; 338 return access;
339 } 339 }
340 340
341 // static 341 // static
342 FieldAccess AccessBuilder::ForFixedTypedArrayBaseBasePointer() { 342 FieldAccess AccessBuilder::ForFixedTypedArrayBaseBasePointer() {
343 FieldAccess access = {kTaggedBase, 343 FieldAccess access = {kTaggedBase,
344 FixedTypedArrayBase::kBasePointerOffset, 344 FixedTypedArrayBase::kBasePointerOffset,
345 MaybeHandle<Name>(), 345 MaybeHandle<Name>(),
346 Type::Tagged(), 346 Type::Tagged(),
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 MachineType::Uint32(), kNoWriteBarrier}; 442 MachineType::Uint32(), kNoWriteBarrier};
443 return access; 443 return access;
444 } 444 }
445 445
446 // static 446 // static
447 FieldAccess AccessBuilder::ForStringLength() { 447 FieldAccess AccessBuilder::ForStringLength() {
448 FieldAccess access = {kTaggedBase, 448 FieldAccess access = {kTaggedBase,
449 String::kLengthOffset, 449 String::kLengthOffset,
450 Handle<Name>(), 450 Handle<Name>(),
451 TypeCache::Get().kStringLengthType, 451 TypeCache::Get().kStringLengthType,
452 MachineType::AnyTagged(), 452 MachineType::TaggedSigned(),
453 kNoWriteBarrier}; 453 kNoWriteBarrier};
454 return access; 454 return access;
455 } 455 }
456 456
457 // static 457 // static
458 FieldAccess AccessBuilder::ForConsStringFirst() { 458 FieldAccess AccessBuilder::ForConsStringFirst() {
459 FieldAccess access = { 459 FieldAccess access = {
460 kTaggedBase, ConsString::kFirstOffset, Handle<Name>(), 460 kTaggedBase, ConsString::kFirstOffset, Handle<Name>(),
461 Type::String(), MachineType::AnyTagged(), kPointerWriteBarrier}; 461 Type::String(), MachineType::AnyTagged(), kPointerWriteBarrier};
462 return access; 462 return access;
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 } 731 }
732 UNREACHABLE(); 732 UNREACHABLE();
733 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(), 733 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(),
734 kNoWriteBarrier}; 734 kNoWriteBarrier};
735 return access; 735 return access;
736 } 736 }
737 737
738 } // namespace compiler 738 } // namespace compiler
739 } // namespace internal 739 } // namespace internal
740 } // namespace v8 740 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/access-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698