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

Unified Diff: src/heap/heap.h

Issue 1133243006: Remove 64-bit unclean line from heap size estimation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 months 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.h
diff --git a/src/heap/heap.h b/src/heap/heap.h
index c4c806817e4e4eb03b614a0daf6e5b17fa695dfb..8a80c8c596478757be2c8b1ea0fbdd90a035dfd2 100644
--- a/src/heap/heap.h
+++ b/src/heap/heap.h
@@ -1081,7 +1081,6 @@ class Heap {
inline intptr_t PromotedTotalSize() {
int64_t total = PromotedSpaceSizeOfObjects() + PromotedExternalMemorySize();
- if (total > kMaxInt) return static_cast<intptr_t>(kMaxInt);
Hannes Payer (out of office) 2015/05/15 15:08:19 Unfortunatly, an overflow is possible here. jkumme
if (total < 0) return 0;
return static_cast<intptr_t>(total);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698