Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 122fbba2c4aac4464c2a5bc1d37cf66d283b30bb..feb912f4147754a7ebc2f09c60dc65f18b22ef0a 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -495,7 +495,9 @@ BUILTIN(ArrayShift) { |
} |
if (Heap::new_space()->Contains(elms)) { |
- array->set_elements(LeftTrimFixedArray(elms)); |
+ // As elms still in the same space they used to be (new space), |
+ // there is no need to update remembered set. |
+ array->set_elements(LeftTrimFixedArray(elms), SKIP_WRITE_BARRIER); |
} else { |
// Shift the elements. |
AssertNoAllocation no_gc; |