Clean up #ifdefs in storeValue
authorSimon Hausmann <simon.hausmann@digia.com>
Thu, 18 Oct 2012 08:35:27 +0000 (10:35 +0200)
committerLars Knoll <lars.knoll@digia.com>
Thu, 18 Oct 2012 09:54:00 +0000 (11:54 +0200)
Use VALUE_FITS_IN_REGISTER instead of hard-coding CPU architectures

Change-Id: I6d5caa6b2cd8e379517d83fdebef46217f79a8d5
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
qv4isel_masm_p.h

index ee22f39..bb91fa0 100644 (file)
@@ -534,14 +534,12 @@ private:
 
     void storeValue(VM::Value value, Address destination)
     {
-#if CPU(X86_64)
+#ifdef VALUE_FITS_IN_REGISTER
         storePtr(TrustedImmPtr((void *)value.val), destination);
-#elif CPU(X86)
+#else
         store32(TrustedImm32(value.int_32), destination);
         destination.offset += 4;
         store32(TrustedImm32(value.tag), destination);
-#else
-#error "Missing implementation"
 #endif
     }