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

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

Issue 2494753003: [turbofan] Introduce an ExternalPointer type. (Closed)
Patch Set: Stronger ducktape. Created 4 years, 1 month 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/ast-graph-builder.cc » ('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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 MachineType::AnyTagged(), 350 MachineType::AnyTagged(),
351 kPointerWriteBarrier}; 351 kPointerWriteBarrier};
352 return access; 352 return access;
353 } 353 }
354 354
355 // static 355 // static
356 FieldAccess AccessBuilder::ForFixedTypedArrayBaseExternalPointer() { 356 FieldAccess AccessBuilder::ForFixedTypedArrayBaseExternalPointer() {
357 FieldAccess access = {kTaggedBase, 357 FieldAccess access = {kTaggedBase,
358 FixedTypedArrayBase::kExternalPointerOffset, 358 FixedTypedArrayBase::kExternalPointerOffset,
359 MaybeHandle<Name>(), 359 MaybeHandle<Name>(),
360 Type::OtherInternal(), 360 Type::ExternalPointer(),
361 MachineType::Pointer(), 361 MachineType::Pointer(),
362 kNoWriteBarrier}; 362 kNoWriteBarrier};
363 return access; 363 return access;
364 } 364 }
365 365
366 // static 366 // static
367 FieldAccess AccessBuilder::ForDescriptorArrayEnumCache() { 367 FieldAccess AccessBuilder::ForDescriptorArrayEnumCache() {
368 FieldAccess access = {kTaggedBase, 368 FieldAccess access = {kTaggedBase,
369 DescriptorArray::kEnumCacheOffset, 369 DescriptorArray::kEnumCacheOffset,
370 Handle<Name>(), 370 Handle<Name>(),
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 kTaggedBase, SlicedString::kParentOffset, Handle<Name>(), 505 kTaggedBase, SlicedString::kParentOffset, Handle<Name>(),
506 Type::String(), MachineType::TaggedPointer(), kPointerWriteBarrier}; 506 Type::String(), MachineType::TaggedPointer(), kPointerWriteBarrier};
507 return access; 507 return access;
508 } 508 }
509 509
510 // static 510 // static
511 FieldAccess AccessBuilder::ForExternalStringResourceData() { 511 FieldAccess AccessBuilder::ForExternalStringResourceData() {
512 FieldAccess access = {kTaggedBase, 512 FieldAccess access = {kTaggedBase,
513 ExternalString::kResourceDataOffset, 513 ExternalString::kResourceDataOffset,
514 Handle<Name>(), 514 Handle<Name>(),
515 Type::OtherInternal(), 515 Type::ExternalPointer(),
516 MachineType::Pointer(), 516 MachineType::Pointer(),
517 kNoWriteBarrier}; 517 kNoWriteBarrier};
518 return access; 518 return access;
519 } 519 }
520 520
521 // static 521 // static
522 ElementAccess AccessBuilder::ForExternalOneByteStringCharacter() { 522 ElementAccess AccessBuilder::ForExternalOneByteStringCharacter() {
523 ElementAccess access = {kUntaggedBase, 0, TypeCache::Get().kUint8, 523 ElementAccess access = {kUntaggedBase, 0, TypeCache::Get().kUint8,
524 MachineType::Uint8(), kNoWriteBarrier}; 524 MachineType::Uint8(), kNoWriteBarrier};
525 return access; 525 return access;
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 } 774 }
775 UNREACHABLE(); 775 UNREACHABLE();
776 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(), 776 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(),
777 kNoWriteBarrier}; 777 kNoWriteBarrier};
778 return access; 778 return access;
779 } 779 }
780 780
781 } // namespace compiler 781 } // namespace compiler
782 } // namespace internal 782 } // namespace internal
783 } // namespace v8 783 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698