Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Unified Diff: src/crankshaft/lithium.cc

Issue 1435313002: Refactor dependent code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/crankshaft/lithium.cc
diff --git a/src/crankshaft/lithium.cc b/src/crankshaft/lithium.cc
index b4771c055708bf3e409cc2aaa0d9cfbb4d20ddd1..ab3d53ee9a1c057c1ac95c74230896cc984f9312 100644
--- a/src/crankshaft/lithium.cc
+++ b/src/crankshaft/lithium.cc
@@ -441,8 +441,7 @@ void LChunk::RegisterWeakObjectsInOptimizedCode(Handle<Code> code) const {
}
}
for (int i = 0; i < maps.length(); i++) {
- if (maps.at(i)->dependent_code()->number_of_entries(
- DependentCode::kWeakCodeGroup) == 0) {
+ if (maps.at(i)->dependent_code()->IsEmpty(DependentCode::kWeakCodeGroup)) {
isolate()->heap()->AddRetainedMap(maps.at(i));
}
Map::AddDependentCode(maps.at(i), DependentCode::kWeakCodeGroup, code);
« no previous file with comments | « no previous file | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698