Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 0825b64c3367e5d2d92bcd5a8374b3ec616eef6e..73d54174faf33c691605b83104d5e4f44ac02d88 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -9508,6 +9508,15 @@ Handle<DependentCodes> DependentCodes::Append(Handle<DependentCodes> codes, |
} |
+bool DependentCodes::Contains(Code* code) { |
+ int limit = number_of_codes(); |
+ for (int i = 0; i < limit; i++) { |
+ if (code_at(i) == code) return true; |
+ } |
+ return false; |
+} |
+ |
+ |
MaybeObject* JSReceiver::SetPrototype(Object* value, |
bool skip_hidden_prototypes) { |
#ifdef DEBUG |