| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index 9f47f8f0721c478c10907636784ed856fc36753f..53c1cfac7462b0f32a93eba9642ad3b73e1a2dc1 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -5248,6 +5248,7 @@ class Code: public HeapObject {
|
| inline bool is_compare_nil_ic_stub() { return kind() == COMPARE_NIL_IC; }
|
| inline bool is_to_boolean_ic_stub() { return kind() == TO_BOOLEAN_IC; }
|
| inline bool is_keyed_stub();
|
| + inline bool is_optimized_code() { return kind() == OPTIMIZED_FUNCTION; }
|
|
|
| inline void set_raw_kind_specific_flags1(int value);
|
| inline void set_raw_kind_specific_flags2(int value);
|
| @@ -5503,7 +5504,11 @@ class Code: public HeapObject {
|
| void VerifyEmbeddedObjectsDependency();
|
| #endif
|
|
|
| - static bool IsWeakEmbeddedObject(Kind kind, Object* object);
|
| + inline bool IsWeakObject(Object* object) {
|
| + return is_optimized_code() && IsWeakObjectInOptimizedCode(object);
|
| + }
|
| +
|
| + inline bool IsWeakObjectInOptimizedCode(Object* object);
|
|
|
| // Max loop nesting marker used to postpose OSR. We don't take loop
|
| // nesting that is deeper than 5 levels into account.
|
|
|