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

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

Issue 1109773002: [turbofan] Add SimplifiedOperator::Allocate operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 years, 7 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/js-typed-lowering.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 #include "src/types-inl.h" 6 #include "src/types-inl.h"
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 namespace compiler { 10 namespace compiler {
(...skipping 27 matching lines...) Expand all
38 38
39 39
40 // static 40 // static
41 FieldAccess AccessBuilder::ForJSArrayBufferBackingStore() { 41 FieldAccess AccessBuilder::ForJSArrayBufferBackingStore() {
42 return {kTaggedBase, JSArrayBuffer::kBackingStoreOffset, MaybeHandle<Name>(), 42 return {kTaggedBase, JSArrayBuffer::kBackingStoreOffset, MaybeHandle<Name>(),
43 Type::UntaggedPointer(), kMachPtr}; 43 Type::UntaggedPointer(), kMachPtr};
44 } 44 }
45 45
46 46
47 // static 47 // static
48 FieldAccess AccessBuilder::ForFixedArrayLength() {
49 return {kTaggedBase, FixedArray::kLengthOffset, MaybeHandle<Name>(),
50 Type::TaggedSigned(), kMachAnyTagged};
51 }
52
53
54 // static
48 FieldAccess AccessBuilder::ForExternalArrayPointer() { 55 FieldAccess AccessBuilder::ForExternalArrayPointer() {
49 return {kTaggedBase, ExternalArray::kExternalPointerOffset, 56 return {kTaggedBase, ExternalArray::kExternalPointerOffset,
50 MaybeHandle<Name>(), Type::UntaggedPointer(), kMachPtr}; 57 MaybeHandle<Name>(), Type::UntaggedPointer(), kMachPtr};
51 } 58 }
52 59
53 60
54 // static 61 // static
55 FieldAccess AccessBuilder::ForMapInstanceType() { 62 FieldAccess AccessBuilder::ForMapInstanceType() {
56 return {kTaggedBase, Map::kInstanceTypeOffset, Handle<Name>(), 63 return {kTaggedBase, Map::kInstanceTypeOffset, Handle<Name>(),
57 Type::UntaggedUnsigned8(), kMachUint8}; 64 Type::UntaggedUnsigned8(), kMachUint8};
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 return {kTaggedBase, SeqString::kHeaderSize, Type::Unsigned32(), 146 return {kTaggedBase, SeqString::kHeaderSize, Type::Unsigned32(),
140 kMachUint16}; 147 kMachUint16};
141 } 148 }
142 UNREACHABLE(); 149 UNREACHABLE();
143 return {kUntaggedBase, 0, Type::None(), kMachNone}; 150 return {kUntaggedBase, 0, Type::None(), kMachNone};
144 } 151 }
145 152
146 } // namespace compiler 153 } // namespace compiler
147 } // namespace internal 154 } // namespace internal
148 } // namespace v8 155 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/access-builder.h ('k') | src/compiler/js-typed-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698