mozilla-ppc.patch
changeset 680 be770d3cbc02
parent 662 775530ba0729
equal deleted inserted replaced
676:ed32bb3eb2f0 680:be770d3cbc02
     1 # HG changeset patch
     1 # HG changeset patch
     2 # Parent 21d0e194954e451f0f1935d0ed68ee9eae432ddf
     2 # Parent 21d0e194954e451f0f1935d0ed68ee9eae432ddf
     3 # User Wolfgang Rosenauer <wr@rosenauer.org>
     3 # User Wolfgang Rosenauer <wr@rosenauer.org>
     4 Bug 746112 - RegExp hang on ppc64 in execute.
     4 Bug 746112 - RegExp hang on ppc64 in execute.
     5 Bug 750620 - Make double-conversion portable to exotic architectures. TM: mozilla15
       
     6 
     5 
     7 diff --git a/js/src/yarr/YarrInterpreter.h b/js/src/yarr/YarrInterpreter.h
     6 diff --git a/js/src/yarr/YarrInterpreter.h b/js/src/yarr/YarrInterpreter.h
     8 --- a/js/src/yarr/YarrInterpreter.h
     7 --- a/js/src/yarr/YarrInterpreter.h
     9 +++ b/js/src/yarr/YarrInterpreter.h
     8 +++ b/js/src/yarr/YarrInterpreter.h
    10 @@ -162,17 +162,17 @@ struct ByteTerm {
     9 @@ -162,17 +162,17 @@ struct ByteTerm {
    87  #ifdef MALLOC_STATIC_SIZES
    86  #ifdef MALLOC_STATIC_SIZES
    88  
    87  
    89  /*
    88  /*
    90   * VM page size. It must divide the runtime CPU page size or the code
    89   * VM page size. It must divide the runtime CPU page size or the code
    91   * will abort.
    90   * will abort.
    92 diff --git a/mfbt/double-conversion/utils.h b/mfbt/double-conversion/utils.h
       
    93 --- a/mfbt/double-conversion/utils.h
       
    94 +++ b/mfbt/double-conversion/utils.h
       
    95 @@ -50,17 +50,17 @@
       
    96  // the result is equal to 89255e-22.
       
    97  // The best way to test this, is to create a division-function and to compare
       
    98  // the output of the division with the expected result. (Inlining must be
       
    99  // disabled.)
       
   100  // On Linux,x86 89255e-22 != Div_double(89255.0/1e22)
       
   101  #if defined(_M_X64) || defined(__x86_64__) || \
       
   102      defined(__ARMEL__) || defined(__avr32__) || \
       
   103      defined(__hppa__) || defined(__ia64__) || \
       
   104 -    defined(__mips__) || defined(__powerpc__) || \
       
   105 +    defined(__mips__) || defined(__powerpc__) || defined(__powerpc64__) || \
       
   106      defined(__sparc__) || defined(__sparc) || defined(__s390__) || \
       
   107      defined(__SH4__) || defined(__alpha__) || \
       
   108      defined(_MIPS_ARCH_MIPS32R2)
       
   109  #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
       
   110  #elif defined(_M_IX86) || defined(__i386__) || defined(__i386)
       
   111  #if defined(_WIN32)
       
   112  // Windows uses a 64bit wide floating point stack.
       
   113  #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1