| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 4859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4870 CALLBACKS, | 4870 CALLBACKS, |
| 4871 INTERCEPTOR, | 4871 INTERCEPTOR, |
| 4872 TRANSITION, | 4872 TRANSITION, |
| 4873 NONEXISTENT | 4873 NONEXISTENT |
| 4874 }; | 4874 }; |
| 4875 | 4875 |
| 4876 typedef int ExtraICState; | 4876 typedef int ExtraICState; |
| 4877 | 4877 |
| 4878 static const ExtraICState kNoExtraICState = 0; | 4878 static const ExtraICState kNoExtraICState = 0; |
| 4879 | 4879 |
| 4880 static const int kPrologueOffsetNotSet = -1; |
| 4881 |
| 4880 #ifdef ENABLE_DISASSEMBLER | 4882 #ifdef ENABLE_DISASSEMBLER |
| 4881 // Printing | 4883 // Printing |
| 4882 static const char* ICState2String(InlineCacheState state); | 4884 static const char* ICState2String(InlineCacheState state); |
| 4883 static const char* StubType2String(StubType type); | 4885 static const char* StubType2String(StubType type); |
| 4884 static void PrintExtraICState(FILE* out, Kind kind, ExtraICState extra); | 4886 static void PrintExtraICState(FILE* out, Kind kind, ExtraICState extra); |
| 4885 void Disassemble(const char* name, FILE* out = stdout); | 4887 void Disassemble(const char* name, FILE* out = stdout); |
| 4886 #endif // ENABLE_DISASSEMBLER | 4888 #endif // ENABLE_DISASSEMBLER |
| 4887 | 4889 |
| 4888 // [instruction_size]: Size of the native instructions | 4890 // [instruction_size]: Size of the native instructions |
| 4889 inline int instruction_size(); | 4891 inline int instruction_size(); |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5189 DECLARE_PRINTER(Code) | 5191 DECLARE_PRINTER(Code) |
| 5190 DECLARE_VERIFIER(Code) | 5192 DECLARE_VERIFIER(Code) |
| 5191 | 5193 |
| 5192 void ClearInlineCaches(); | 5194 void ClearInlineCaches(); |
| 5193 void ClearTypeFeedbackCells(Heap* heap); | 5195 void ClearTypeFeedbackCells(Heap* heap); |
| 5194 | 5196 |
| 5195 BailoutId TranslatePcOffsetToAstId(uint32_t pc_offset); | 5197 BailoutId TranslatePcOffsetToAstId(uint32_t pc_offset); |
| 5196 | 5198 |
| 5197 #define DECLARE_CODE_AGE_ENUM(X) k##X##CodeAge, | 5199 #define DECLARE_CODE_AGE_ENUM(X) k##X##CodeAge, |
| 5198 enum Age { | 5200 enum Age { |
| 5201 kNotExecutedCodeAge = -2, |
| 5202 kExecutedOnceCodeAge = -1, |
| 5199 kNoAge = 0, | 5203 kNoAge = 0, |
| 5200 CODE_AGE_LIST(DECLARE_CODE_AGE_ENUM) | 5204 CODE_AGE_LIST(DECLARE_CODE_AGE_ENUM) |
| 5201 kAfterLastCodeAge, | 5205 kAfterLastCodeAge, |
| 5202 kLastCodeAge = kAfterLastCodeAge - 1, | 5206 kLastCodeAge = kAfterLastCodeAge - 1, |
| 5203 kCodeAgeCount = kAfterLastCodeAge - 1 | 5207 kCodeAgeCount = kAfterLastCodeAge - 1, |
| 5208 kIsOldCodeAge = kSexagenarianCodeAge, |
| 5209 kPreAgedCodeAge = kIsOldCodeAge - 1 |
| 5204 }; | 5210 }; |
| 5205 #undef DECLARE_CODE_AGE_ENUM | 5211 #undef DECLARE_CODE_AGE_ENUM |
| 5206 | 5212 |
| 5207 // Code aging. Indicates how many full GCs this code has survived without | 5213 // Code aging. Indicates how many full GCs this code has survived without |
| 5208 // being entered through the prologue. Used to determine when it is | 5214 // being entered through the prologue. Used to determine when it is |
| 5209 // relatively safe to flush this code object and replace it with the lazy | 5215 // relatively safe to flush this code object and replace it with the lazy |
| 5210 // compilation stub. | 5216 // compilation stub. |
| 5211 static void MakeCodeAgeSequenceYoung(byte* sequence, Isolate* isolate); | 5217 static void MakeCodeAgeSequenceYoung(byte* sequence, Isolate* isolate); |
| 5218 static void MarkCodeAsExecuted(byte* sequence, Isolate* isolate); |
| 5212 void MakeOlder(MarkingParity); | 5219 void MakeOlder(MarkingParity); |
| 5213 static bool IsYoungSequence(byte* sequence); | 5220 static bool IsYoungSequence(byte* sequence); |
| 5214 bool IsOld(); | 5221 bool IsOld(); |
| 5215 int GetAge(); | 5222 Age GetAge(); |
| 5223 static inline Code* GetPreAgedCodeAgeStub(Isolate* isolate) { |
| 5224 return GetCodeAgeStub(isolate, kNotExecutedCodeAge, NO_MARKING_PARITY); |
| 5225 } |
| 5216 | 5226 |
| 5217 void PrintDeoptLocation(int bailout_id); | 5227 void PrintDeoptLocation(int bailout_id); |
| 5218 bool CanDeoptAt(Address pc); | 5228 bool CanDeoptAt(Address pc); |
| 5219 | 5229 |
| 5220 #ifdef VERIFY_HEAP | 5230 #ifdef VERIFY_HEAP |
| 5221 void VerifyEmbeddedObjectsDependency(); | 5231 void VerifyEmbeddedObjectsDependency(); |
| 5222 #endif | 5232 #endif |
| 5223 | 5233 |
| 5224 static bool IsWeakEmbeddedObject(Kind kind, Object* object); | 5234 static bool IsWeakEmbeddedObject(Kind kind, Object* object); |
| 5225 | 5235 |
| (...skipping 5084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10310 } else { | 10320 } else { |
| 10311 value &= ~(1 << bit_position); | 10321 value &= ~(1 << bit_position); |
| 10312 } | 10322 } |
| 10313 return value; | 10323 return value; |
| 10314 } | 10324 } |
| 10315 }; | 10325 }; |
| 10316 | 10326 |
| 10317 } } // namespace v8::internal | 10327 } } // namespace v8::internal |
| 10318 | 10328 |
| 10319 #endif // V8_OBJECTS_H_ | 10329 #endif // V8_OBJECTS_H_ |
| OLD | NEW |