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 | |
6129 static HObjectAccess ForFunctionContextPointer() { | 6124 static HObjectAccess ForFunctionContextPointer() { |
6130 return HObjectAccess(kInobject, JSFunction::kContextOffset); | 6125 return HObjectAccess(kInobject, JSFunction::kContextOffset); |
6131 } | 6126 } |
6132 | 6127 |
6133 static HObjectAccess ForMap() { | 6128 static HObjectAccess ForMap() { |
6134 return HObjectAccess(kMaps, JSObject::kMapOffset); | 6129 return HObjectAccess(kMaps, JSObject::kMapOffset); |
6135 } | 6130 } |
6136 | 6131 |
6137 static HObjectAccess ForMapAsInteger32() { | 6132 static HObjectAccess ForMapAsInteger32() { |
6138 return HObjectAccess(kMaps, JSObject::kMapOffset, | 6133 return HObjectAccess(kMaps, JSObject::kMapOffset, |
(...skipping 1777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7916 }; | 7911 }; |
7917 | 7912 |
7918 | 7913 |
7919 | 7914 |
7920 #undef DECLARE_INSTRUCTION | 7915 #undef DECLARE_INSTRUCTION |
7921 #undef DECLARE_CONCRETE_INSTRUCTION | 7916 #undef DECLARE_CONCRETE_INSTRUCTION |
7922 | 7917 |
7923 } } // namespace v8::internal | 7918 } } // namespace v8::internal |
7924 | 7919 |
7925 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7920 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |