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 5962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5973 | 5973 |
5974 static HObjectAccess ForCodeOffset() { | 5974 static HObjectAccess ForCodeOffset() { |
5975 return HObjectAccess(kInobject, SharedFunctionInfo::kCodeOffset); | 5975 return HObjectAccess(kInobject, SharedFunctionInfo::kCodeOffset); |
5976 } | 5976 } |
5977 | 5977 |
5978 static HObjectAccess ForOptimizedCodeMap() { | 5978 static HObjectAccess ForOptimizedCodeMap() { |
5979 return HObjectAccess(kInobject, | 5979 return HObjectAccess(kInobject, |
5980 SharedFunctionInfo::kOptimizedCodeMapOffset); | 5980 SharedFunctionInfo::kOptimizedCodeMapOffset); |
5981 } | 5981 } |
5982 | 5982 |
| 5983 static HObjectAccess ForOptimizedCodeMapSharedCode() { |
| 5984 return HObjectAccess(kInobject, FixedArray::OffsetOfElementAt( |
| 5985 SharedFunctionInfo::kSharedCodeIndex)); |
| 5986 } |
| 5987 |
5983 static HObjectAccess ForFunctionContextPointer() { | 5988 static HObjectAccess ForFunctionContextPointer() { |
5984 return HObjectAccess(kInobject, JSFunction::kContextOffset); | 5989 return HObjectAccess(kInobject, JSFunction::kContextOffset); |
5985 } | 5990 } |
5986 | 5991 |
5987 static HObjectAccess ForMap() { | 5992 static HObjectAccess ForMap() { |
5988 return HObjectAccess(kMaps, JSObject::kMapOffset); | 5993 return HObjectAccess(kMaps, JSObject::kMapOffset); |
5989 } | 5994 } |
5990 | 5995 |
5991 static HObjectAccess ForPrototype() { | 5996 static HObjectAccess ForPrototype() { |
5992 return HObjectAccess(kMaps, Map::kPrototypeOffset); | 5997 return HObjectAccess(kMaps, Map::kPrototypeOffset); |
(...skipping 1904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7897 }; | 7902 }; |
7898 | 7903 |
7899 | 7904 |
7900 | 7905 |
7901 #undef DECLARE_INSTRUCTION | 7906 #undef DECLARE_INSTRUCTION |
7902 #undef DECLARE_CONCRETE_INSTRUCTION | 7907 #undef DECLARE_CONCRETE_INSTRUCTION |
7903 | 7908 |
7904 } } // namespace v8::internal | 7909 } } // namespace v8::internal |
7905 | 7910 |
7906 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7911 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |