Revision: 16627
Author: [email protected]
Date: Tue Sep 10 16:41:46 2013 UTC
Log: a small fix: DependentCode contains check against related
dependency group
BUG=
[email protected], [email protected]
Review URL: https://codereview.chromium.org/23648009
Patch from Weiliang Lin <[email protected]>.
http://code.google.com/p/v8/source/detail?r=16627
Modified:
/branches/bleeding_edge/src/objects.cc
=======================================
--- /branches/bleeding_edge/src/objects.cc Tue Sep 10 14:33:06 2013 UTC
+++ /branches/bleeding_edge/src/objects.cc Tue Sep 10 16:41:46 2013 UTC
@@ -11432,8 +11432,9 @@
bool DependentCode::Contains(DependencyGroup group, Code* code) {
GroupStartIndexes starts(this);
- int number_of_entries = starts.number_of_entries();
- for (int i = 0; i < number_of_entries; i++) {
+ int start = starts.at(group);
+ int end = starts.at(group + 1);
+ for (int i = start; i < end; i++) {
if (object_at(i) == code) return true;
}
return false;
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.