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

Unified Diff: src/js/macros.py

Issue 1431503002: Avoid creating indexed elements at index maxUint32 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use Jakob's suggestion for a more robust check 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/js/runtime.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/macros.py
diff --git a/src/js/macros.py b/src/js/macros.py
index 856158aa898e6b509eb7fd7b0afc2036b497c149..f9bb12b705023c348d43a165c46b416aa2ec99d6 100644
--- a/src/js/macros.py
+++ b/src/js/macros.py
@@ -73,6 +73,9 @@ define kSafeArgumentsLength = 0x800000;
# 2^53 - 1
define kMaxSafeInteger = 9007199254740991;
+# 2^32 - 1
+define kMaxUint32 = 4294967295;
+
# Strict mode flags for passing to %SetProperty
define kSloppyMode = 0;
define kStrictMode = 1;
« no previous file with comments | « no previous file | src/js/runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698