| 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_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 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 4974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4985 void PrintDeoptLocation(FILE* out, Address pc); | 4985 void PrintDeoptLocation(FILE* out, Address pc); |
| 4986 bool CanDeoptAt(Address pc); | 4986 bool CanDeoptAt(Address pc); |
| 4987 | 4987 |
| 4988 #ifdef VERIFY_HEAP | 4988 #ifdef VERIFY_HEAP |
| 4989 void VerifyEmbeddedObjectsDependency(); | 4989 void VerifyEmbeddedObjectsDependency(); |
| 4990 #endif | 4990 #endif |
| 4991 | 4991 |
| 4992 #ifdef DEBUG | 4992 #ifdef DEBUG |
| 4993 enum VerifyMode { kNoContextSpecificPointers, kNoContextRetainingPointers }; | 4993 enum VerifyMode { kNoContextSpecificPointers, kNoContextRetainingPointers }; |
| 4994 void VerifyEmbeddedObjects(VerifyMode mode = kNoContextRetainingPointers); | 4994 void VerifyEmbeddedObjects(VerifyMode mode = kNoContextRetainingPointers); |
| 4995 static void VerifyRecompiledCode(Code* old_code, Code* new_code); |
| 4995 #endif // DEBUG | 4996 #endif // DEBUG |
| 4996 | 4997 |
| 4997 inline bool CanContainWeakObjects() { | 4998 inline bool CanContainWeakObjects() { |
| 4998 // is_turbofanned() implies !can_have_weak_objects(). | 4999 // is_turbofanned() implies !can_have_weak_objects(). |
| 4999 DCHECK(!is_optimized_code() || !is_turbofanned() || | 5000 DCHECK(!is_optimized_code() || !is_turbofanned() || |
| 5000 !can_have_weak_objects()); | 5001 !can_have_weak_objects()); |
| 5001 return is_optimized_code() && can_have_weak_objects(); | 5002 return is_optimized_code() && can_have_weak_objects(); |
| 5002 } | 5003 } |
| 5003 | 5004 |
| 5004 inline bool IsWeakObject(Object* object) { | 5005 inline bool IsWeakObject(Object* object) { |
| (...skipping 5536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10541 } else { | 10542 } else { |
| 10542 value &= ~(1 << bit_position); | 10543 value &= ~(1 << bit_position); |
| 10543 } | 10544 } |
| 10544 return value; | 10545 return value; |
| 10545 } | 10546 } |
| 10546 }; | 10547 }; |
| 10547 | 10548 |
| 10548 } } // namespace v8::internal | 10549 } } // namespace v8::internal |
| 10549 | 10550 |
| 10550 #endif // V8_OBJECTS_H_ | 10551 #endif // V8_OBJECTS_H_ |
| OLD | NEW |