Changeset 229476 in webkit


Ignore:
Timestamp:
Mar 9, 2018 12:27:40 PM (6 years ago)
Author:
msaboff@apple.com
Message:

Relanding "testmasm crashes in testBranchTruncateDoubleToInt32() on ARM64"
https://bugs.webkit.org/show_bug.cgi?id=183488

It applied and built just fine locally.

  • assembler/testmasm.cpp:

(JSC::testBranchTruncateDoubleToInt32):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r229465 r229476  
     12018-03-09  Michael Saboff  <msaboff@apple.com>
     2
     3        Relanding "testmasm crashes in testBranchTruncateDoubleToInt32() on ARM64"
     4        https://bugs.webkit.org/show_bug.cgi?id=183488
     5
     6        It applied and built just fine locally.
     7
     8        * assembler/testmasm.cpp:
     9        (JSC::testBranchTruncateDoubleToInt32):
     10
    1112018-03-09  Yusuke Suzuki  <utatane.tea@gmail.com>
    212
  • trunk/Source/JavaScriptCore/assembler/testmasm.cpp

    r229464 r229476  
    3333#include "LinkBuffer.h"
    3434#include "ProbeContext.h"
     35#include "StackAlignment.h"
    3536#include <limits>
    3637#include <wtf/Compiler.h>
     
    199200    CHECK_EQ(compileAndRun<int>([&] (CCallHelpers& jit) {
    200201        jit.emitFunctionPrologue();
    201         jit.subPtr(CCallHelpers::TrustedImm32(8), MacroAssembler::stackPointerRegister);
     202        jit.subPtr(CCallHelpers::TrustedImm32(stackAlignmentBytes()), MacroAssembler::stackPointerRegister);
    202203        if (isBigEndian) {
    203204            jit.store32(CCallHelpers::TrustedImm32(valAsUInt >> 32),
     
    219220
    220221        done.link(&jit);
    221         jit.addPtr(CCallHelpers::TrustedImm32(8), MacroAssembler::stackPointerRegister);
     222        jit.addPtr(CCallHelpers::TrustedImm32(stackAlignmentBytes()), MacroAssembler::stackPointerRegister);
    222223        jit.emitFunctionEpilogue();
    223224        jit.ret();
Note: See TracChangeset for help on using the changeset viewer.