| 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 5383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5394 } | 5394 } |
| 5395 | 5395 |
| 5396 void PrintDeoptLocation(FILE* out, int bailout_id); | 5396 void PrintDeoptLocation(FILE* out, int bailout_id); |
| 5397 bool CanDeoptAt(Address pc); | 5397 bool CanDeoptAt(Address pc); |
| 5398 | 5398 |
| 5399 #ifdef VERIFY_HEAP | 5399 #ifdef VERIFY_HEAP |
| 5400 void VerifyEmbeddedObjectsDependency(); | 5400 void VerifyEmbeddedObjectsDependency(); |
| 5401 #endif | 5401 #endif |
| 5402 | 5402 |
| 5403 #ifdef DEBUG | 5403 #ifdef DEBUG |
| 5404 void VerifyEmbeddedObjectsInFullCode(); | 5404 enum VerifyMode { kNoContextSpecificPointers, kNoContextRetainingPointers }; |
| 5405 void VerifyEmbeddedObjects(VerifyMode mode = kNoContextRetainingPointers); |
| 5405 #endif // DEBUG | 5406 #endif // DEBUG |
| 5406 | 5407 |
| 5407 inline bool CanContainWeakObjects() { | 5408 inline bool CanContainWeakObjects() { |
| 5408 // is_turbofanned() implies !can_have_weak_objects(). | 5409 // is_turbofanned() implies !can_have_weak_objects(). |
| 5409 DCHECK(!is_optimized_code() || !is_turbofanned() || | 5410 DCHECK(!is_optimized_code() || !is_turbofanned() || |
| 5410 !can_have_weak_objects()); | 5411 !can_have_weak_objects()); |
| 5411 return is_optimized_code() && can_have_weak_objects(); | 5412 return is_optimized_code() && can_have_weak_objects(); |
| 5412 } | 5413 } |
| 5413 | 5414 |
| 5414 inline bool IsWeakObject(Object* object) { | 5415 inline bool IsWeakObject(Object* object) { |
| (...skipping 5561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10976 } else { | 10977 } else { |
| 10977 value &= ~(1 << bit_position); | 10978 value &= ~(1 << bit_position); |
| 10978 } | 10979 } |
| 10979 return value; | 10980 return value; |
| 10980 } | 10981 } |
| 10981 }; | 10982 }; |
| 10982 | 10983 |
| 10983 } } // namespace v8::internal | 10984 } } // namespace v8::internal |
| 10984 | 10985 |
| 10985 #endif // V8_OBJECTS_H_ | 10986 #endif // V8_OBJECTS_H_ |
| OLD | NEW |