Commit a25312a5 authored by antonm@chromium.org's avatar antonm@chromium.org

Omit write barrier when setting trimmed elements.

Review URL: http://codereview.chromium.org/1310002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4299 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 845fd15d
...@@ -495,7 +495,9 @@ BUILTIN(ArrayShift) { ...@@ -495,7 +495,9 @@ BUILTIN(ArrayShift) {
} }
if (Heap::new_space()->Contains(elms)) { 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 { } else {
// Shift the elements. // Shift the elements.
AssertNoAllocation no_gc; AssertNoAllocation no_gc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment