Commit fd9eade9 authored by bmeurer@chromium.org's avatar bmeurer@chromium.org

Use HType::NonPrimitive() for non primitive HConstants.

This allows us to use the faster write barrier, omitting the
smi check when storing constant heap objects.

R=hpayer@chromium.org

Review URL: https://codereview.chromium.org/150303002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18947 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 5c589640
......@@ -361,6 +361,10 @@ HType HType::TypeFromValue(Handle<Object> value) {
result = HType::JSObject();
} else if (value->IsJSArray()) {
result = HType::JSArray();
} else if (value->IsHeapObject()) {
// TODO(bmeurer): This is currently a work-around until the new type system
// is in place, where we have more precise types.
result = HType::NonPrimitive();
}
return result;
}
......
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