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 5928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5939 HeapNumber::kValueOffset, | 5939 HeapNumber::kValueOffset, |
5940 Representation::Integer32()); | 5940 Representation::Integer32()); |
5941 } | 5941 } |
5942 | 5942 |
5943 static HObjectAccess ForHeapNumberValueHighestBits() { | 5943 static HObjectAccess ForHeapNumberValueHighestBits() { |
5944 return HObjectAccess(kDouble, | 5944 return HObjectAccess(kDouble, |
5945 HeapNumber::kValueOffset + kIntSize, | 5945 HeapNumber::kValueOffset + kIntSize, |
5946 Representation::Integer32()); | 5946 Representation::Integer32()); |
5947 } | 5947 } |
5948 | 5948 |
| 5949 static HObjectAccess ForOddballToNumber( |
| 5950 Representation representation = Representation::Tagged()) { |
| 5951 return HObjectAccess(kInobject, Oddball::kToNumberOffset, representation); |
| 5952 } |
| 5953 |
5949 static HObjectAccess ForOddballTypeOf() { | 5954 static HObjectAccess ForOddballTypeOf() { |
5950 return HObjectAccess(kInobject, Oddball::kTypeOfOffset, | 5955 return HObjectAccess(kInobject, Oddball::kTypeOfOffset, |
5951 Representation::HeapObject()); | 5956 Representation::HeapObject()); |
5952 } | 5957 } |
5953 | 5958 |
5954 static HObjectAccess ForElementsPointer() { | 5959 static HObjectAccess ForElementsPointer() { |
5955 return HObjectAccess(kElementsPointer, JSObject::kElementsOffset); | 5960 return HObjectAccess(kElementsPointer, JSObject::kElementsOffset); |
5956 } | 5961 } |
5957 | 5962 |
5958 static HObjectAccess ForLiteralsPointer() { | 5963 static HObjectAccess ForLiteralsPointer() { |
(...skipping 2015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7974 }; | 7979 }; |
7975 | 7980 |
7976 | 7981 |
7977 | 7982 |
7978 #undef DECLARE_INSTRUCTION | 7983 #undef DECLARE_INSTRUCTION |
7979 #undef DECLARE_CONCRETE_INSTRUCTION | 7984 #undef DECLARE_CONCRETE_INSTRUCTION |
7980 | 7985 |
7981 } } // namespace v8::internal | 7986 } } // namespace v8::internal |
7982 | 7987 |
7983 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7988 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |