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

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

Issue 2549773002: Internalize strings in-place (Closed)
Patch Set: fix performance 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
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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 // static 514 // static
515 FieldAccess AccessBuilder::ForConsStringSecond() { 515 FieldAccess AccessBuilder::ForConsStringSecond() {
516 FieldAccess access = {kTaggedBase, ConsString::kSecondOffset, 516 FieldAccess access = {kTaggedBase, ConsString::kSecondOffset,
517 Handle<Name>(), MaybeHandle<Map>(), 517 Handle<Name>(), MaybeHandle<Map>(),
518 Type::String(), MachineType::TaggedPointer(), 518 Type::String(), MachineType::TaggedPointer(),
519 kPointerWriteBarrier}; 519 kPointerWriteBarrier};
520 return access; 520 return access;
521 } 521 }
522 522
523 // static 523 // static
524 FieldAccess AccessBuilder::ForThinStringActual() {
525 FieldAccess access = {kTaggedBase, ThinString::kActualOffset,
526 Handle<Name>(), MaybeHandle<Map>(),
527 Type::String(), MachineType::TaggedPointer(),
528 kPointerWriteBarrier};
529 return access;
530 }
531
532 // static
524 FieldAccess AccessBuilder::ForSlicedStringOffset() { 533 FieldAccess AccessBuilder::ForSlicedStringOffset() {
525 FieldAccess access = {kTaggedBase, SlicedString::kOffsetOffset, 534 FieldAccess access = {kTaggedBase, SlicedString::kOffsetOffset,
526 Handle<Name>(), MaybeHandle<Map>(), 535 Handle<Name>(), MaybeHandle<Map>(),
527 Type::SignedSmall(), MachineType::TaggedSigned(), 536 Type::SignedSmall(), MachineType::TaggedSigned(),
528 kNoWriteBarrier}; 537 kNoWriteBarrier};
529 return access; 538 return access;
530 } 539 }
531 540
532 // static 541 // static
533 FieldAccess AccessBuilder::ForSlicedStringParent() { 542 FieldAccess AccessBuilder::ForSlicedStringParent() {
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 MaybeHandle<Map>(), 929 MaybeHandle<Map>(),
921 Type::SignedSmall(), 930 Type::SignedSmall(),
922 MachineType::TaggedSigned(), 931 MachineType::TaggedSigned(),
923 kNoWriteBarrier}; 932 kNoWriteBarrier};
924 return access; 933 return access;
925 } 934 }
926 935
927 } // namespace compiler 936 } // namespace compiler
928 } // namespace internal 937 } // namespace internal
929 } // namespace v8 938 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698