Commit c1e36487 authored by rossberg@chromium.org's avatar rossberg@chromium.org

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
parent b347a0dc
......@@ -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);
}
......
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