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
This commit is contained in:
parent
845fd15dd6
commit
a25312a53e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user