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_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 5 #ifndef V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
6 #define V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 6 #define V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
7 | 7 |
8 #include <cstring> | 8 #include <cstring> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 | 10 |
(...skipping 5345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5356 | 5356 |
5357 static HObjectAccess ForCodeOffset() { | 5357 static HObjectAccess ForCodeOffset() { |
5358 return HObjectAccess(kInobject, SharedFunctionInfo::kCodeOffset); | 5358 return HObjectAccess(kInobject, SharedFunctionInfo::kCodeOffset); |
5359 } | 5359 } |
5360 | 5360 |
5361 static HObjectAccess ForOptimizedCodeMap() { | 5361 static HObjectAccess ForOptimizedCodeMap() { |
5362 return HObjectAccess(kInobject, | 5362 return HObjectAccess(kInobject, |
5363 SharedFunctionInfo::kOptimizedCodeMapOffset); | 5363 SharedFunctionInfo::kOptimizedCodeMapOffset); |
5364 } | 5364 } |
5365 | 5365 |
| 5366 static HObjectAccess ForOptimizedCodeMapSharedCode() { |
| 5367 return HObjectAccess(kInobject, FixedArray::OffsetOfElementAt( |
| 5368 SharedFunctionInfo::kSharedCodeIndex)); |
| 5369 } |
| 5370 |
5366 static HObjectAccess ForFunctionContextPointer() { | 5371 static HObjectAccess ForFunctionContextPointer() { |
5367 return HObjectAccess(kInobject, JSFunction::kContextOffset); | 5372 return HObjectAccess(kInobject, JSFunction::kContextOffset); |
5368 } | 5373 } |
5369 | 5374 |
5370 static HObjectAccess ForMap() { | 5375 static HObjectAccess ForMap() { |
5371 return HObjectAccess(kMaps, JSObject::kMapOffset); | 5376 return HObjectAccess(kMaps, JSObject::kMapOffset); |
5372 } | 5377 } |
5373 | 5378 |
5374 static HObjectAccess ForPrototype() { | 5379 static HObjectAccess ForPrototype() { |
5375 return HObjectAccess(kMaps, Map::kPrototypeOffset); | 5380 return HObjectAccess(kMaps, Map::kPrototypeOffset); |
(...skipping 1572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6948 bool IsDeletable() const override { return true; } | 6953 bool IsDeletable() const override { return true; } |
6949 }; | 6954 }; |
6950 | 6955 |
6951 #undef DECLARE_INSTRUCTION | 6956 #undef DECLARE_INSTRUCTION |
6952 #undef DECLARE_CONCRETE_INSTRUCTION | 6957 #undef DECLARE_CONCRETE_INSTRUCTION |
6953 | 6958 |
6954 } // namespace internal | 6959 } // namespace internal |
6955 } // namespace v8 | 6960 } // namespace v8 |
6956 | 6961 |
6957 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 6962 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |