OLD | NEW |
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 return {kTypedArrayBoundsCheck, taggedness, header_size, | 99 return {kTypedArrayBoundsCheck, taggedness, header_size, |
100 Type::Unsigned32(), kMachUint16}; | 100 Type::Unsigned32(), kMachUint16}; |
101 case kExternalInt32Array: | 101 case kExternalInt32Array: |
102 return {kTypedArrayBoundsCheck, taggedness, header_size, Type::Signed32(), | 102 return {kTypedArrayBoundsCheck, taggedness, header_size, Type::Signed32(), |
103 kMachInt32}; | 103 kMachInt32}; |
104 case kExternalUint32Array: | 104 case kExternalUint32Array: |
105 return {kTypedArrayBoundsCheck, taggedness, header_size, | 105 return {kTypedArrayBoundsCheck, taggedness, header_size, |
106 Type::Unsigned32(), kMachUint32}; | 106 Type::Unsigned32(), kMachUint32}; |
107 case kExternalFloat32Array: | 107 case kExternalFloat32Array: |
108 return {kTypedArrayBoundsCheck, taggedness, header_size, Type::Number(), | 108 return {kTypedArrayBoundsCheck, taggedness, header_size, Type::Number(), |
109 kRepFloat32}; | 109 kMachFloat32}; |
110 case kExternalFloat64Array: | 110 case kExternalFloat64Array: |
111 return {kTypedArrayBoundsCheck, taggedness, header_size, Type::Number(), | 111 return {kTypedArrayBoundsCheck, taggedness, header_size, Type::Number(), |
112 kRepFloat64}; | 112 kMachFloat64}; |
113 } | 113 } |
114 UNREACHABLE(); | 114 UNREACHABLE(); |
115 return {kTypedArrayBoundsCheck, kUntaggedBase, 0, Type::None(), kMachNone}; | 115 return {kTypedArrayBoundsCheck, 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 |
OLD | NEW |