OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ | 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ |
6 #define V8_HYDROGEN_INSTRUCTIONS_H_ | 6 #define V8_HYDROGEN_INSTRUCTIONS_H_ |
7 | 7 |
8 #include <cstring> | 8 #include <cstring> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 | 10 |
(...skipping 6112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6123 static HObjectAccess ForJSArrayBufferByteLength() { | 6123 static HObjectAccess ForJSArrayBufferByteLength() { |
6124 return HObjectAccess::ForObservableJSObjectOffset( | 6124 return HObjectAccess::ForObservableJSObjectOffset( |
6125 JSArrayBuffer::kByteLengthOffset, Representation::Tagged()); | 6125 JSArrayBuffer::kByteLengthOffset, Representation::Tagged()); |
6126 } | 6126 } |
6127 | 6127 |
6128 static HObjectAccess ForJSArrayBufferBitField() { | 6128 static HObjectAccess ForJSArrayBufferBitField() { |
6129 return HObjectAccess::ForObservableJSObjectOffset( | 6129 return HObjectAccess::ForObservableJSObjectOffset( |
6130 JSArrayBuffer::kBitFieldOffset, Representation::Integer32()); | 6130 JSArrayBuffer::kBitFieldOffset, Representation::Integer32()); |
6131 } | 6131 } |
6132 | 6132 |
| 6133 static HObjectAccess ForJSArrayBufferBitFieldSlot() { |
| 6134 return HObjectAccess::ForObservableJSObjectOffset( |
| 6135 JSArrayBuffer::kBitFieldSlot, Representation::Smi()); |
| 6136 } |
| 6137 |
6133 static HObjectAccess ForExternalArrayExternalPointer() { | 6138 static HObjectAccess ForExternalArrayExternalPointer() { |
6134 return HObjectAccess::ForObservableJSObjectOffset( | 6139 return HObjectAccess::ForObservableJSObjectOffset( |
6135 ExternalArray::kExternalPointerOffset, Representation::External()); | 6140 ExternalArray::kExternalPointerOffset, Representation::External()); |
6136 } | 6141 } |
6137 | 6142 |
6138 static HObjectAccess ForJSArrayBufferViewBuffer() { | 6143 static HObjectAccess ForJSArrayBufferViewBuffer() { |
6139 return HObjectAccess::ForObservableJSObjectOffset( | 6144 return HObjectAccess::ForObservableJSObjectOffset( |
6140 JSArrayBufferView::kBufferOffset); | 6145 JSArrayBufferView::kBufferOffset); |
6141 } | 6146 } |
6142 | 6147 |
(...skipping 1703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7846 }; | 7851 }; |
7847 | 7852 |
7848 | 7853 |
7849 | 7854 |
7850 #undef DECLARE_INSTRUCTION | 7855 #undef DECLARE_INSTRUCTION |
7851 #undef DECLARE_CONCRETE_INSTRUCTION | 7856 #undef DECLARE_CONCRETE_INSTRUCTION |
7852 | 7857 |
7853 } } // namespace v8::internal | 7858 } } // namespace v8::internal |
7854 | 7859 |
7855 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7860 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |