| 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 5969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5980 HeapNumber::kValueOffset, | 5980 HeapNumber::kValueOffset, |
| 5981 Representation::Integer32()); | 5981 Representation::Integer32()); |
| 5982 } | 5982 } |
| 5983 | 5983 |
| 5984 static HObjectAccess ForHeapNumberValueHighestBits() { | 5984 static HObjectAccess ForHeapNumberValueHighestBits() { |
| 5985 return HObjectAccess(kDouble, | 5985 return HObjectAccess(kDouble, |
| 5986 HeapNumber::kValueOffset + kIntSize, | 5986 HeapNumber::kValueOffset + kIntSize, |
| 5987 Representation::Integer32()); | 5987 Representation::Integer32()); |
| 5988 } | 5988 } |
| 5989 | 5989 |
| 5990 static HObjectAccess ForOddballTypeOf() { |
| 5991 return HObjectAccess(kInobject, Oddball::kTypeOfOffset, |
| 5992 Representation::HeapObject()); |
| 5993 } |
| 5994 |
| 5990 static HObjectAccess ForElementsPointer() { | 5995 static HObjectAccess ForElementsPointer() { |
| 5991 return HObjectAccess(kElementsPointer, JSObject::kElementsOffset); | 5996 return HObjectAccess(kElementsPointer, JSObject::kElementsOffset); |
| 5992 } | 5997 } |
| 5993 | 5998 |
| 5994 static HObjectAccess ForLiteralsPointer() { | 5999 static HObjectAccess ForLiteralsPointer() { |
| 5995 return HObjectAccess(kInobject, JSFunction::kLiteralsOffset); | 6000 return HObjectAccess(kInobject, JSFunction::kLiteralsOffset); |
| 5996 } | 6001 } |
| 5997 | 6002 |
| 5998 static HObjectAccess ForNextFunctionLinkPointer() { | 6003 static HObjectAccess ForNextFunctionLinkPointer() { |
| 5999 return HObjectAccess(kInobject, JSFunction::kNextFunctionLinkOffset); | 6004 return HObjectAccess(kInobject, JSFunction::kNextFunctionLinkOffset); |
| (...skipping 2056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8056 }; | 8061 }; |
| 8057 | 8062 |
| 8058 | 8063 |
| 8059 | 8064 |
| 8060 #undef DECLARE_INSTRUCTION | 8065 #undef DECLARE_INSTRUCTION |
| 8061 #undef DECLARE_CONCRETE_INSTRUCTION | 8066 #undef DECLARE_CONCRETE_INSTRUCTION |
| 8062 | 8067 |
| 8063 } } // namespace v8::internal | 8068 } } // namespace v8::internal |
| 8064 | 8069 |
| 8065 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 8070 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |