Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Unified Diff: src/runtime.cc

Issue 12913019: Remove GC hazard (temporary handle object) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index 70f46c88bf18dd348f209df512efdb044881e687..d9dd12e1876967373184d057fe465647a141e2c2 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698