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 5344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5355 return GetCodeAgeStub(isolate, kNotExecutedCodeAge, NO_MARKING_PARITY); | 5355 return GetCodeAgeStub(isolate, kNotExecutedCodeAge, NO_MARKING_PARITY); |
5356 } | 5356 } |
5357 | 5357 |
5358 void PrintDeoptLocation(FILE* out, int bailout_id); | 5358 void PrintDeoptLocation(FILE* out, int bailout_id); |
5359 bool CanDeoptAt(Address pc); | 5359 bool CanDeoptAt(Address pc); |
5360 | 5360 |
5361 #ifdef VERIFY_HEAP | 5361 #ifdef VERIFY_HEAP |
5362 void VerifyEmbeddedObjectsDependency(); | 5362 void VerifyEmbeddedObjectsDependency(); |
5363 #endif | 5363 #endif |
5364 | 5364 |
| 5365 #ifdef DEBUG |
| 5366 void VerifyEmbeddedObjectsInFullCode(); |
| 5367 #endif // DEBUG |
| 5368 |
5365 inline bool CanContainWeakObjects() { | 5369 inline bool CanContainWeakObjects() { |
5366 return is_optimized_code() || is_weak_stub(); | 5370 return is_optimized_code() || is_weak_stub(); |
5367 } | 5371 } |
5368 | 5372 |
5369 inline bool IsWeakObject(Object* object) { | 5373 inline bool IsWeakObject(Object* object) { |
5370 return (is_optimized_code() && !is_turbofanned() && | 5374 return (is_optimized_code() && !is_turbofanned() && |
5371 IsWeakObjectInOptimizedCode(object)) || | 5375 IsWeakObjectInOptimizedCode(object)) || |
5372 (is_weak_stub() && IsWeakObjectInIC(object)); | 5376 (is_weak_stub() && IsWeakObjectInIC(object)); |
5373 } | 5377 } |
5374 | 5378 |
(...skipping 5538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10913 } else { | 10917 } else { |
10914 value &= ~(1 << bit_position); | 10918 value &= ~(1 << bit_position); |
10915 } | 10919 } |
10916 return value; | 10920 return value; |
10917 } | 10921 } |
10918 }; | 10922 }; |
10919 | 10923 |
10920 } } // namespace v8::internal | 10924 } } // namespace v8::internal |
10921 | 10925 |
10922 #endif // V8_OBJECTS_H_ | 10926 #endif // V8_OBJECTS_H_ |
OLD | NEW |