| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 5216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5227 #define DEFINE_CODE_KIND_ENUM(name) name, | 5227 #define DEFINE_CODE_KIND_ENUM(name) name, |
| 5228 CODE_KIND_LIST(DEFINE_CODE_KIND_ENUM) | 5228 CODE_KIND_LIST(DEFINE_CODE_KIND_ENUM) |
| 5229 #undef DEFINE_CODE_KIND_ENUM | 5229 #undef DEFINE_CODE_KIND_ENUM |
| 5230 NUMBER_OF_KINDS | 5230 NUMBER_OF_KINDS |
| 5231 }; | 5231 }; |
| 5232 | 5232 |
| 5233 static const char* Kind2String(Kind kind); | 5233 static const char* Kind2String(Kind kind); |
| 5234 | 5234 |
| 5235 static const int kPrologueOffsetNotSet = -1; | 5235 static const int kPrologueOffsetNotSet = -1; |
| 5236 | 5236 |
| 5237 #ifdef ENABLE_DISASSEMBLER | 5237 #if defined(OBJECT_PRINT) || defined(ENABLE_DISASSEMBLER) |
| 5238 // Printing | 5238 // Printing |
| 5239 static const char* ICState2String(InlineCacheState state); | 5239 static const char* ICState2String(InlineCacheState state); |
| 5240 static void PrintExtraICState(std::ostream& os, // NOLINT | 5240 static void PrintExtraICState(std::ostream& os, // NOLINT |
| 5241 Kind kind, ExtraICState extra); | 5241 Kind kind, ExtraICState extra); |
| 5242 #endif // defined(OBJECT_PRINT) || defined(ENABLE_DISASSEMBLER) |
| 5243 |
| 5244 #ifdef ENABLE_DISASSEMBLER |
| 5242 void Disassemble(const char* name, std::ostream& os); // NOLINT | 5245 void Disassemble(const char* name, std::ostream& os); // NOLINT |
| 5243 #endif // ENABLE_DISASSEMBLER | 5246 #endif // ENABLE_DISASSEMBLER |
| 5244 | 5247 |
| 5245 // [instruction_size]: Size of the native instructions | 5248 // [instruction_size]: Size of the native instructions |
| 5246 inline int instruction_size() const; | 5249 inline int instruction_size() const; |
| 5247 inline void set_instruction_size(int value); | 5250 inline void set_instruction_size(int value); |
| 5248 | 5251 |
| 5249 // [relocation_info]: Code relocation information | 5252 // [relocation_info]: Code relocation information |
| 5250 DECL_ACCESSORS(relocation_info, ByteArray) | 5253 DECL_ACCESSORS(relocation_info, ByteArray) |
| 5251 void InvalidateRelocation(); | 5254 void InvalidateRelocation(); |
| (...skipping 6242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11494 } | 11497 } |
| 11495 return value; | 11498 return value; |
| 11496 } | 11499 } |
| 11497 }; | 11500 }; |
| 11498 | 11501 |
| 11499 | 11502 |
| 11500 } // NOLINT, false-positive due to second-order macros. | 11503 } // NOLINT, false-positive due to second-order macros. |
| 11501 } // NOLINT, false-positive due to second-order macros. | 11504 } // NOLINT, false-positive due to second-order macros. |
| 11502 | 11505 |
| 11503 #endif // V8_OBJECTS_H_ | 11506 #endif // V8_OBJECTS_H_ |
| OLD | NEW |