| 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 <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/v8.h" | 10 #include "src/v8.h" |
| (...skipping 6103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6114 | 6114 |
| 6115 static HObjectAccess ForCodeOffset() { | 6115 static HObjectAccess ForCodeOffset() { |
| 6116 return HObjectAccess(kInobject, SharedFunctionInfo::kCodeOffset); | 6116 return HObjectAccess(kInobject, SharedFunctionInfo::kCodeOffset); |
| 6117 } | 6117 } |
| 6118 | 6118 |
| 6119 static HObjectAccess ForOptimizedCodeMap() { | 6119 static HObjectAccess ForOptimizedCodeMap() { |
| 6120 return HObjectAccess(kInobject, | 6120 return HObjectAccess(kInobject, |
| 6121 SharedFunctionInfo::kOptimizedCodeMapOffset); | 6121 SharedFunctionInfo::kOptimizedCodeMapOffset); |
| 6122 } | 6122 } |
| 6123 | 6123 |
| 6124 static HObjectAccess ForCompileHint() { |
| 6125 return HObjectAccess(kInobject, SharedFunctionInfo::kCompilerHintsOffset, |
| 6126 Representation::Smi()); |
| 6127 } |
| 6128 |
| 6124 static HObjectAccess ForFunctionContextPointer() { | 6129 static HObjectAccess ForFunctionContextPointer() { |
| 6125 return HObjectAccess(kInobject, JSFunction::kContextOffset); | 6130 return HObjectAccess(kInobject, JSFunction::kContextOffset); |
| 6126 } | 6131 } |
| 6127 | 6132 |
| 6128 static HObjectAccess ForMap() { | 6133 static HObjectAccess ForMap() { |
| 6129 return HObjectAccess(kMaps, JSObject::kMapOffset); | 6134 return HObjectAccess(kMaps, JSObject::kMapOffset); |
| 6130 } | 6135 } |
| 6131 | 6136 |
| 6132 static HObjectAccess ForMapAsInteger32() { | 6137 static HObjectAccess ForMapAsInteger32() { |
| 6133 return HObjectAccess(kMaps, JSObject::kMapOffset, | 6138 return HObjectAccess(kMaps, JSObject::kMapOffset, |
| (...skipping 1777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7911 }; | 7916 }; |
| 7912 | 7917 |
| 7913 | 7918 |
| 7914 | 7919 |
| 7915 #undef DECLARE_INSTRUCTION | 7920 #undef DECLARE_INSTRUCTION |
| 7916 #undef DECLARE_CONCRETE_INSTRUCTION | 7921 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7917 | 7922 |
| 7918 } } // namespace v8::internal | 7923 } } // namespace v8::internal |
| 7919 | 7924 |
| 7920 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7925 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |