Bug 716647 - Followup: observe JS_OPTIMIZED_OUT as unknown instead of undefined inside BaselineFrameInspector to avoid unnecessary type barrier bailouts. (r=jandem)
authorShu-yu Guo <shu@rfrn.org>
Thu, 24 Apr 2014 14:46:27 -0700
changeset 180454 797c8dfa7c6da5491494df71e15e0c06078ee040
parent 180453 c219ba15faed02d9c92386de57905d774e85dd14
child 180455 b82a8c50aa904edada187a844e21f8dc9d96e955
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersjandem
bugs716647
milestone31.0a1
Bug 716647 - Followup: observe JS_OPTIMIZED_OUT as unknown instead of undefined inside BaselineFrameInspector to avoid unnecessary type barrier bailouts. (r=jandem)
js/src/jsinferinlines.h
--- a/js/src/jsinferinlines.h
+++ b/js/src/jsinferinlines.h
@@ -109,17 +109,17 @@ GetValueType(const Value &val)
         return Type::ObjectType(&val.toObject());
     return Type::PrimitiveType(val.extractNonDoubleType());
 }
 
 inline Type
 GetMaybeOptimizedOutValueType(const Value &val)
 {
     if (val.isMagic() && val.whyMagic() == JS_OPTIMIZED_OUT)
-        return Type::UndefinedType();
+        return Type::UnknownType();
     return GetValueType(val);
 }
 
 inline TypeFlags
 PrimitiveTypeFlag(JSValueType type)
 {
     switch (type) {
       case JSVAL_TYPE_UNDEFINED: