Bug 1523558: Fix test condition in VMFunction::returnsData(). r=nbp a=lizzard
authorAndré Bargull <andre.bargull@gmail.com>
Tue, 29 Jan 2019 02:24:15 -0800
changeset 515641 1a27e2f35d33bd014903cfa1f0a0c09fd54f3793
parent 515640 97295735ed424b3a791e98cae8a34e48ad14a727
child 515642 72fd8e42b6cbb3cb580b1bc2ee29b6d4af4b1052
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnbp, lizzard
bugs1523558
milestone66.0
Bug 1523558: Fix test condition in VMFunction::returnsData(). r=nbp a=lizzard
js/src/jit/VMFunctions.h
--- a/js/src/jit/VMFunctions.h
+++ b/js/src/jit/VMFunctions.h
@@ -205,17 +205,17 @@ struct VMFunction {
     return 1 + explicitArgc() + ((outParam == Type_Void) ? 0 : 1);
   }
 
   DataType failType() const { return returnType; }
 
   // Whether this function returns anything more than a boolean flag for
   // failures.
   bool returnsData() const {
-    return returnType == Type_Pointer || outParam != Type_Void;
+    return returnType == Type_Object || outParam != Type_Void;
   }
 
   ArgProperties argProperties(uint32_t explicitArg) const {
     return ArgProperties((argumentProperties >> (2 * explicitArg)) & 3);
   }
 
   RootType argRootType(uint32_t explicitArg) const {
     return RootType((argumentRootTypes >> (3 * explicitArg)) & 7);