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

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

Issue 1453653003: [turbofan] Add support for special JSArrayBufferView accessors. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 | « src/compiler/access-builder.h ('k') | 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/contexts.h" 7 #include "src/contexts.h"
8 #include "src/frames.h" 8 #include "src/frames.h"
9 #include "src/heap/heap.h" 9 #include "src/heap/heap.h"
10 #include "src/type-cache.h" 10 #include "src/type-cache.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 // static 76 // static
77 FieldAccess AccessBuilder::ForJSArrayBufferBackingStore() { 77 FieldAccess AccessBuilder::ForJSArrayBufferBackingStore() {
78 FieldAccess access = {kTaggedBase, JSArrayBuffer::kBackingStoreOffset, 78 FieldAccess access = {kTaggedBase, JSArrayBuffer::kBackingStoreOffset,
79 MaybeHandle<Name>(), Type::UntaggedPointer(), kMachPtr}; 79 MaybeHandle<Name>(), Type::UntaggedPointer(), kMachPtr};
80 return access; 80 return access;
81 } 81 }
82 82
83 83
84 // static 84 // static
85 FieldAccess AccessBuilder::ForJSArrayBufferBitField() {
86 FieldAccess access = {kTaggedBase, JSArrayBuffer::kBitFieldOffset,
87 MaybeHandle<Name>(), TypeCache::Get().kInt8, kMachInt8};
88 return access;
89 }
90
91
92 // static
93 FieldAccess AccessBuilder::ForJSArrayBufferViewBuffer() {
94 FieldAccess access = {kTaggedBase, JSArrayBufferView::kBufferOffset,
95 MaybeHandle<Name>(), Type::TaggedPointer(),
96 kMachAnyTagged};
97 return access;
98 }
99
100
101 // static
85 FieldAccess AccessBuilder::ForJSDateField(JSDate::FieldIndex index) { 102 FieldAccess AccessBuilder::ForJSDateField(JSDate::FieldIndex index) {
86 FieldAccess access = {kTaggedBase, 103 FieldAccess access = {kTaggedBase,
87 JSDate::kValueOffset + index * kPointerSize, 104 JSDate::kValueOffset + index * kPointerSize,
88 MaybeHandle<Name>(), Type::Number(), kMachAnyTagged}; 105 MaybeHandle<Name>(), Type::Number(), kMachAnyTagged};
89 return access; 106 return access;
90 } 107 }
91 108
92 109
93 // static 110 // static
94 FieldAccess AccessBuilder::ForFixedArrayLength() { 111 FieldAccess AccessBuilder::ForFixedArrayLength() {
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 // static 340 // static
324 FieldAccess AccessBuilder::ForFrameMarker() { 341 FieldAccess AccessBuilder::ForFrameMarker() {
325 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset, 342 FieldAccess access = {kUntaggedBase, StandardFrameConstants::kMarkerOffset,
326 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged}; 343 MaybeHandle<Name>(), Type::Tagged(), kMachAnyTagged};
327 return access; 344 return access;
328 } 345 }
329 346
330 } // namespace compiler 347 } // namespace compiler
331 } // namespace internal 348 } // namespace internal
332 } // namespace v8 349 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/access-builder.h ('k') | src/compiler/access-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698