Commit fa549bc5 authored by Junliang Yan's avatar Junliang Yan Committed by Commit Bot

PPC/s390: Fix endianess issue on Generate_ConstructFunction

R=joransiu@ca.ibm.com

Change-Id: Ic44ce01e4d9487c7319125df46914a528938071d
Reviewed-on: https://chromium-review.googlesource.com/1010920Reviewed-by: 's avatarJoran Siu <joransiu@ca.ibm.com>
Commit-Queue: Junliang Yan <jyan@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#52583}
parent d71c34dc
...@@ -2384,7 +2384,7 @@ void Builtins::Generate_ConstructFunction(MacroAssembler* masm) { ...@@ -2384,7 +2384,7 @@ void Builtins::Generate_ConstructFunction(MacroAssembler* masm) {
// Jump to JSBuiltinsConstructStub or JSConstructStubGeneric. // Jump to JSBuiltinsConstructStub or JSConstructStubGeneric.
__ LoadP(r7, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset)); __ LoadP(r7, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset));
__ LoadP(r7, FieldMemOperand(r7, SharedFunctionInfo::kFlagsOffset)); __ lwz(r7, FieldMemOperand(r7, SharedFunctionInfo::kFlagsOffset));
__ mov(ip, Operand(SharedFunctionInfo::ConstructAsBuiltinBit::kMask)); __ mov(ip, Operand(SharedFunctionInfo::ConstructAsBuiltinBit::kMask));
__ and_(r7, r7, ip, SetRC); __ and_(r7, r7, ip, SetRC);
__ beq(&call_generic_stub, cr0); __ beq(&call_generic_stub, cr0);
......
...@@ -2390,7 +2390,7 @@ void Builtins::Generate_ConstructFunction(MacroAssembler* masm) { ...@@ -2390,7 +2390,7 @@ void Builtins::Generate_ConstructFunction(MacroAssembler* masm) {
// Jump to JSBuiltinsConstructStub or JSConstructStubGeneric. // Jump to JSBuiltinsConstructStub or JSConstructStubGeneric.
__ LoadP(r6, FieldMemOperand(r3, JSFunction::kSharedFunctionInfoOffset)); __ LoadP(r6, FieldMemOperand(r3, JSFunction::kSharedFunctionInfoOffset));
__ LoadP(r6, FieldMemOperand(r6, SharedFunctionInfo::kFlagsOffset)); __ LoadlW(r6, FieldMemOperand(r6, SharedFunctionInfo::kFlagsOffset));
__ AndP(r6, Operand(SharedFunctionInfo::ConstructAsBuiltinBit::kMask)); __ AndP(r6, Operand(SharedFunctionInfo::ConstructAsBuiltinBit::kMask));
__ beq(&call_generic_stub); __ beq(&call_generic_stub);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment