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 6079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6090 static HObjectAccess ForJSArrayBufferBackingStore() { | 6090 static HObjectAccess ForJSArrayBufferBackingStore() { |
6091 return HObjectAccess::ForObservableJSObjectOffset( | 6091 return HObjectAccess::ForObservableJSObjectOffset( |
6092 JSArrayBuffer::kBackingStoreOffset, Representation::External()); | 6092 JSArrayBuffer::kBackingStoreOffset, Representation::External()); |
6093 } | 6093 } |
6094 | 6094 |
6095 static HObjectAccess ForJSArrayBufferByteLength() { | 6095 static HObjectAccess ForJSArrayBufferByteLength() { |
6096 return HObjectAccess::ForObservableJSObjectOffset( | 6096 return HObjectAccess::ForObservableJSObjectOffset( |
6097 JSArrayBuffer::kByteLengthOffset, Representation::Tagged()); | 6097 JSArrayBuffer::kByteLengthOffset, Representation::Tagged()); |
6098 } | 6098 } |
6099 | 6099 |
6100 static HObjectAccess ForJSArrayBufferFlag() { | 6100 static HObjectAccess ForJSArrayBufferBitField() { |
6101 return HObjectAccess::ForObservableJSObjectOffset( | 6101 return HObjectAccess::ForObservableJSObjectOffset( |
6102 JSArrayBuffer::kFlagOffset, Representation::Smi()); | 6102 JSArrayBuffer::kBitFieldOffset, Representation::Integer32()); |
6103 } | 6103 } |
6104 | 6104 |
6105 static HObjectAccess ForExternalArrayExternalPointer() { | 6105 static HObjectAccess ForExternalArrayExternalPointer() { |
6106 return HObjectAccess::ForObservableJSObjectOffset( | 6106 return HObjectAccess::ForObservableJSObjectOffset( |
6107 ExternalArray::kExternalPointerOffset, Representation::External()); | 6107 ExternalArray::kExternalPointerOffset, Representation::External()); |
6108 } | 6108 } |
6109 | 6109 |
6110 static HObjectAccess ForJSArrayBufferViewBuffer() { | 6110 static HObjectAccess ForJSArrayBufferViewBuffer() { |
6111 return HObjectAccess::ForObservableJSObjectOffset( | 6111 return HObjectAccess::ForObservableJSObjectOffset( |
6112 JSArrayBufferView::kBufferOffset); | 6112 JSArrayBufferView::kBufferOffset); |
(...skipping 1705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7818 }; | 7818 }; |
7819 | 7819 |
7820 | 7820 |
7821 | 7821 |
7822 #undef DECLARE_INSTRUCTION | 7822 #undef DECLARE_INSTRUCTION |
7823 #undef DECLARE_CONCRETE_INSTRUCTION | 7823 #undef DECLARE_CONCRETE_INSTRUCTION |
7824 | 7824 |
7825 } } // namespace v8::internal | 7825 } } // namespace v8::internal |
7826 | 7826 |
7827 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7827 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |