File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -21156,8 +21156,12 @@ Lowerer::GenerateArgOutForStackArgs(IR::Instr* callInstr, IR::Instr* stackArgsIn
21156
21156
21157
21157
21158
21158
#if defined(_M_IX86)
21159
- Assert(false);
21160
- #endif
21159
+ // We get a compilation error on x86 due to assiging a negative to a uint
21160
+ // TODO: don't even define this function on x86 - we Assert(false) anyway there.
21161
+ // Alternatively, don't define when INT_ARG_REG_COUNT - 4 < 0
21162
+ AssertOrFailFast(false);
21163
+ return nullptr;
21164
+ #else
21161
21165
21162
21166
Assert(stackArgsInstr->m_opcode == Js::OpCode::ArgOut_A_FromStackArgs);
21163
21167
Assert(callInstr->m_opcode == Js::OpCode::CallIDynamic);
@@ -21225,14 +21229,7 @@ Lowerer::GenerateArgOutForStackArgs(IR::Instr* callInstr, IR::Instr* stackArgsIn
21225
21229
21226
21230
// 4 to denote this is 4th register after this, callinfo & function object
21227
21231
// INT_ARG_REG_COUNT is the number of parameters passed in int regs
21228
- uint current_reg_pass =
21229
- #if defined(_M_IX86)
21230
- // We get a compilation error on x86 due to assiging a negative to a uint
21231
- // TODO: don't even define this function on x86 - we Assert(false) anyway there.
21232
- 0;
21233
- #else
21234
- INT_ARG_REG_COUNT - 4;
21235
- #endif
21232
+ uint current_reg_pass = INT_ARG_REG_COUNT - 4;
21236
21233
21237
21234
do
21238
21235
{
@@ -21278,6 +21275,7 @@ Lowerer::GenerateArgOutForStackArgs(IR::Instr* callInstr, IR::Instr* stackArgsIn
21278
21275
21279
21276
/*return the length which will be used for callInfo generations & stack allocation*/
21280
21277
return saveLenInstr->GetDst()->AsRegOpnd();
21278
+ #endif
21281
21279
}
21282
21280
21283
21281
void
You can’t perform that action at this time.
0 commit comments