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

Unified Diff: src/types.h

Issue 415603002: Fix Handle-related bug in RangeType constructor. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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/types.h
diff --git a/src/types.h b/src/types.h
index 1b2cf66c96eab48cbff0a00a5a4e0a426c1cbd60..d316fa19aa4322d782ac298924a2ba96dabd7398 100644
--- a/src/types.h
+++ b/src/types.h
@@ -686,8 +686,10 @@ class TypeImpl<Config>::RangeType : public StructuralType {
StructuralType::New(StructuralType::kRangeTag, 3, region));
type->Set(0, bound);
Factory* factory = Config::isolate(region)->factory();
- type->SetValue(1, factory->NewHeapNumber(min));
- type->SetValue(2, factory->NewHeapNumber(max));
+ Handle<HeapNumber> minV = factory->NewHeapNumber(min);
+ Handle<HeapNumber> maxV = factory->NewHeapNumber(max);
+ type->SetValue(1, minV);
+ type->SetValue(2, maxV);
return type;
}
« 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