Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 9f47f8f0721c478c10907636784ed856fc36753f..48960d19671fcd35d8c88374eb9f4dcf1a63ab6a 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,12 @@ class Code: public HeapObject { |
void VerifyEmbeddedObjectsDependency(); |
#endif |
- static bool IsWeakEmbeddedObject(Kind kind, Object* object); |
+ inline bool IsWeakObject(Object* object) { |
+ if (is_optimized_code()) return IsWeakObjectInOptimizedCode(object); |
Sven Panne
2014/02/19 12:38:40
return is_optimized_code() && IsWeakObjectInOptimi
|
+ return false; |
+ } |
+ |
+ 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. |