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

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

Issue 795993002: Introduce unsigned representation types (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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/typer.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 #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 22 matching lines...) Expand all
33 // static 33 // static
34 FieldAccess AccessBuilder::ForJSFunctionContext() { 34 FieldAccess AccessBuilder::ForJSFunctionContext() {
35 return {kTaggedBase, JSFunction::kContextOffset, MaybeHandle<Name>(), 35 return {kTaggedBase, JSFunction::kContextOffset, MaybeHandle<Name>(),
36 Type::Internal(), kMachAnyTagged}; 36 Type::Internal(), kMachAnyTagged};
37 } 37 }
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::UntaggedPtr(), kMachPtr}; 43 Type::UntaggedPointer(), kMachPtr};
44 } 44 }
45 45
46 46
47 // static 47 // static
48 FieldAccess AccessBuilder::ForExternalArrayPointer() { 48 FieldAccess AccessBuilder::ForExternalArrayPointer() {
49 return {kTaggedBase, ExternalArray::kExternalPointerOffset, 49 return {kTaggedBase, ExternalArray::kExternalPointerOffset,
50 MaybeHandle<Name>(), Type::UntaggedPtr(), kMachPtr}; 50 MaybeHandle<Name>(), Type::UntaggedPointer(), kMachPtr};
51 } 51 }
52 52
53 53
54 // static 54 // static
55 FieldAccess AccessBuilder::ForMapInstanceType() { 55 FieldAccess AccessBuilder::ForMapInstanceType() {
56 return {kTaggedBase, Map::kInstanceTypeOffset, Handle<Name>(), 56 return {kTaggedBase, Map::kInstanceTypeOffset, Handle<Name>(),
57 Type::UntaggedInt8(), kMachUint8}; 57 Type::UntaggedUnsigned8(), kMachUint8};
58 } 58 }
59 59
60 60
61 // static 61 // static
62 FieldAccess AccessBuilder::ForStringLength() { 62 FieldAccess AccessBuilder::ForStringLength() {
63 return {kTaggedBase, String::kLengthOffset, Handle<Name>(), 63 return {kTaggedBase, String::kLengthOffset, Handle<Name>(),
64 Type::SignedSmall(), kMachAnyTagged}; 64 Type::SignedSmall(), kMachAnyTagged};
65 } 65 }
66 66
67 67
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 case kExternalFloat64Array: 111 case kExternalFloat64Array:
112 return {taggedness, header_size, Type::Number(), kMachFloat64}; 112 return {taggedness, header_size, Type::Number(), kMachFloat64};
113 } 113 }
114 UNREACHABLE(); 114 UNREACHABLE();
115 return {kUntaggedBase, 0, Type::None(), kMachNone}; 115 return {kUntaggedBase, 0, Type::None(), kMachNone};
116 } 116 }
117 117
118 } // namespace compiler 118 } // namespace compiler
119 } // namespace internal 119 } // namespace internal
120 } // namespace v8 120 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698