Chromium Code Reviews

Unified Diff: src/hydrogen-instructions.cc

Issue 279813002: Use HType::NonPrimitive() for unclassified HeapObjects (i.e. Maps). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« 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/hydrogen-instructions.cc
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc
index 16efa21fa23059f435d038462883b01697edf23c..ad5faea889593da84592a0cda8a117abe67a8574 100644
--- a/src/hydrogen-instructions.cc
+++ b/src/hydrogen-instructions.cc
@@ -341,6 +341,8 @@ HType HType::TypeFromValue(Handle<Object> value) {
result = HType::JSObject();
} else if (value->IsJSArray()) {
result = HType::JSArray();
+ } else if (value->IsHeapObject()) {
+ result = HType::NonPrimitive();
}
return result;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine