| 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 5910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5921 Handle<String>::null(), false, false); | 5921 Handle<String>::null(), false, false); |
| 5922 } | 5922 } |
| 5923 | 5923 |
| 5924 static HObjectAccess ForFixedArrayLength() { | 5924 static HObjectAccess ForFixedArrayLength() { |
| 5925 return HObjectAccess( | 5925 return HObjectAccess( |
| 5926 kArrayLengths, | 5926 kArrayLengths, |
| 5927 FixedArray::kLengthOffset, | 5927 FixedArray::kLengthOffset, |
| 5928 Representation::Smi()); | 5928 Representation::Smi()); |
| 5929 } | 5929 } |
| 5930 | 5930 |
| 5931 static HObjectAccess ForFixedTypedArrayBaseBasePointer() { |
| 5932 return HObjectAccess(kInobject, FixedTypedArrayBase::kBasePointerOffset, |
| 5933 Representation::Tagged()); |
| 5934 } |
| 5935 |
| 5931 static HObjectAccess ForStringHashField() { | 5936 static HObjectAccess ForStringHashField() { |
| 5932 return HObjectAccess(kInobject, | 5937 return HObjectAccess(kInobject, |
| 5933 String::kHashFieldOffset, | 5938 String::kHashFieldOffset, |
| 5934 Representation::Integer32()); | 5939 Representation::Integer32()); |
| 5935 } | 5940 } |
| 5936 | 5941 |
| 5937 static HObjectAccess ForStringLength() { | 5942 static HObjectAccess ForStringLength() { |
| 5938 STATIC_ASSERT(String::kMaxLength <= Smi::kMaxValue); | 5943 STATIC_ASSERT(String::kMaxLength <= Smi::kMaxValue); |
| 5939 return HObjectAccess( | 5944 return HObjectAccess( |
| 5940 kStringLengths, | 5945 kStringLengths, |
| (...skipping 1951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7892 }; | 7897 }; |
| 7893 | 7898 |
| 7894 | 7899 |
| 7895 | 7900 |
| 7896 #undef DECLARE_INSTRUCTION | 7901 #undef DECLARE_INSTRUCTION |
| 7897 #undef DECLARE_CONCRETE_INSTRUCTION | 7902 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7898 | 7903 |
| 7899 } } // namespace v8::internal | 7904 } } // namespace v8::internal |
| 7900 | 7905 |
| 7901 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7906 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |