gecko-dev/js
Hannes Verschore c337c5963d Bug 1195588: IonMonkey - Actually convert number to double during recovering ToDouble, r=nbp
@@ -1093,20 +1097,28 @@ MToDouble::writeRecoverData(CompactBuffe
 }

 RToDouble::RToDouble(CompactBufferReader& reader)
 { }

 bool
 RToDouble::recover(JSContext* cx, SnapshotIterator& iter) const
 {
-    Value v = iter.read();
+    RootedValue v(cx, iter.read());
+    RootedValue result(cx);

     MOZ_ASSERT(!v.isObject());
-    iter.storeInstructionResult(v);
+    MOZ_ASSERT(!v.isSymbol());
+
+    double dbl;
+    if (!ToNumber(cx, v, &dbl))
+        return false;
+
+    result.setDouble(dbl);
+    iter.storeInstructionResult(result);
     return true;
 }

 bool
 MToFloat32::writeRecoverData(CompactBufferWriter& writer) const
 {
     MOZ_ASSERT(canRecoverOnBailout());
     writer.writeUnsigned(uint32_t(RInstruction::Recover_ToFloat32));
2015-08-21 17:40:04 +02:00
..
ductwork/debugger Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
examples
ipc Bug 1181175 - Use RDTSC for Performance Monitoring instead of getrusage. r=jandem 2015-08-17 14:57:23 +02:00
public Bug 1191236 - Remove extract() methods used by operation forwarding on rooting types, r=terrence 2015-08-05 02:38:00 -07:00
src Bug 1195588: IonMonkey - Actually convert number to double during recovering ToDouble, r=nbp 2015-08-21 17:40:04 +02:00
xpconnect Bug 1165272 - Part 2: Replace getNoAppCodebasePrincipal. r=bholley 2015-08-24 01:18:00 -04:00