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

Unified Diff: src/builtins.cc

Issue 213833008: Fix left trimming check for large objects (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | test/mjsunit/regress/regress-358090.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins.cc
diff --git a/src/builtins.cc b/src/builtins.cc
index fd4723f62ce4c91d3c5f35664330beec00da0367..7be7233c2109599585c266ddb20d78f4e18bc687 100644
--- a/src/builtins.cc
+++ b/src/builtins.cc
@@ -554,7 +554,7 @@ BUILTIN(ArrayShift) {
first = isolate->factory()->undefined_value();
}
- if (!heap->CanMoveObjectStart(*elms_obj)) {
+ if (heap->CanMoveObjectStart(*elms_obj)) {
array->set_elements(LeftTrimFixedArray(heap, *elms_obj, 1));
} else {
// Shift the elements.
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-358090.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698