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

Unified Diff: src/runtime/runtime-array.cc

Issue 1145343004: Version 4.4.63.3 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.4
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 | « include/v8-version.h ('k') | test/mjsunit/regress/regress-488398.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-array.cc
diff --git a/src/runtime/runtime-array.cc b/src/runtime/runtime-array.cc
index 34f873512506f9fca64dde84fdc21c3ce318aaad..4147dc953eb819ba8195477f8d3a6b5810971ec7 100644
--- a/src/runtime/runtime-array.cc
+++ b/src/runtime/runtime-array.cc
@@ -1234,7 +1234,8 @@ RUNTIME_FUNCTION(Runtime_GrowArrayElements) {
if (index >= capacity) {
if (object->WouldConvertToSlowElements(index)) {
- JSObject::NormalizeElements(object);
+ // We don't want to allow operations that cause lazy deopt. Return a Smi
+ // as a signal that optimized code should eagerly deoptimize.
return Smi::FromInt(0);
}
« no previous file with comments | « include/v8-version.h ('k') | test/mjsunit/regress/regress-488398.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698