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

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

Issue 2624203002: Version 5.7.440.1 (cherry-pick) (Closed)
Patch Set: Created 3 years, 11 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 | « src/compiler/access-builder.h ('k') | src/compiler/types.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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 // static 496 // static
497 FieldAccess AccessBuilder::ForConsStringSecond() { 497 FieldAccess AccessBuilder::ForConsStringSecond() {
498 FieldAccess access = {kTaggedBase, ConsString::kSecondOffset, 498 FieldAccess access = {kTaggedBase, ConsString::kSecondOffset,
499 Handle<Name>(), MaybeHandle<Map>(), 499 Handle<Name>(), MaybeHandle<Map>(),
500 Type::String(), MachineType::TaggedPointer(), 500 Type::String(), MachineType::TaggedPointer(),
501 kPointerWriteBarrier}; 501 kPointerWriteBarrier};
502 return access; 502 return access;
503 } 503 }
504 504
505 // static 505 // static
506 FieldAccess AccessBuilder::ForThinStringActual() {
507 FieldAccess access = {kTaggedBase, ThinString::kActualOffset,
508 Handle<Name>(), MaybeHandle<Map>(),
509 Type::String(), MachineType::TaggedPointer(),
510 kPointerWriteBarrier};
511 return access;
512 }
513
514 // static
515 FieldAccess AccessBuilder::ForSlicedStringOffset() { 506 FieldAccess AccessBuilder::ForSlicedStringOffset() {
516 FieldAccess access = {kTaggedBase, SlicedString::kOffsetOffset, 507 FieldAccess access = {kTaggedBase, SlicedString::kOffsetOffset,
517 Handle<Name>(), MaybeHandle<Map>(), 508 Handle<Name>(), MaybeHandle<Map>(),
518 Type::SignedSmall(), MachineType::TaggedSigned(), 509 Type::SignedSmall(), MachineType::TaggedSigned(),
519 kNoWriteBarrier}; 510 kNoWriteBarrier};
520 return access; 511 return access;
521 } 512 }
522 513
523 // static 514 // static
524 FieldAccess AccessBuilder::ForSlicedStringParent() { 515 FieldAccess AccessBuilder::ForSlicedStringParent() {
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 } 839 }
849 UNREACHABLE(); 840 UNREACHABLE();
850 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(), 841 ElementAccess access = {kUntaggedBase, 0, Type::None(), MachineType::None(),
851 kNoWriteBarrier}; 842 kNoWriteBarrier};
852 return access; 843 return access;
853 } 844 }
854 845
855 } // namespace compiler 846 } // namespace compiler
856 } // namespace internal 847 } // namespace internal
857 } // namespace v8 848 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/access-builder.h ('k') | src/compiler/types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698