Remove GC hazard (temporary handle object)
R=svenpanne@chromium.org BUG= Review URL: https://codereview.chromium.org/12913019 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14060 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
b347a0dcae
commit
c1e3648712
@ -9562,7 +9562,8 @@ static Handle<Object> NewSingleInterval(Isolate* isolate, uint32_t length) {
|
||||
Handle<FixedArray> single_interval = isolate->factory()->NewFixedArray(2);
|
||||
// -1 means start of array.
|
||||
single_interval->set(0, Smi::FromInt(-1));
|
||||
single_interval->set(1, *isolate->factory()->NewNumberFromUint(length));
|
||||
Handle<Object> number = isolate->factory()->NewNumberFromUint(length);
|
||||
single_interval->set(1, *number);
|
||||
return isolate->factory()->NewJSArrayWithElements(single_interval);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user