File tree 3 files changed +21
-1
lines changed
3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -2203,7 +2203,7 @@ Inline::InlineBuiltInFunction(
2203
2203
if (OpCodeAttr::BailOutRec (inlineCallOpCode))
2204
2204
{
2205
2205
StackSym * sym = argInstr->GetSrc1 ()->GetStackSym ();
2206
- if (!sym->m_isSingleDef || !sym->m_instrDef ->GetSrc1 () || !sym->m_instrDef ->GetSrc1 ()->IsConstOpnd ())
2206
+ if (sym-> HasByteCodeRegSlot () && ( !sym->m_isSingleDef || !sym->m_instrDef ->GetSrc1 () || !sym->m_instrDef ->GetSrc1 ()->IsConstOpnd () ))
2207
2207
{
2208
2208
if (!sym->IsFromByteCodeConstantTable () && sym->GetByteCodeRegSlot () != callInstrDst->GetStackSym ()->GetByteCodeRegSlot ())
2209
2209
{
Original file line number Diff line number Diff line change
1
+ //-------------------------------------------------------------------------------------------------------
2
+ // Copyright (C) Microsoft Corporation and contributors. All rights reserved.
3
+ // Copyright (c) 2021 ChakraCore Project Contributors. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
5
+ //-------------------------------------------------------------------------------------------------------
6
+
7
+ function jit ( ) {
8
+ let x = Math . round . call ( { } , 3133.7 ) ;
9
+ }
10
+
11
+ for ( var i = 0 ; i < 0x1000 ; i ++ ) {
12
+ jit ( ) ;
13
+ }
14
+
15
+ print ( "pass" ) ;
Original file line number Diff line number Diff line change 483
483
<files >bug542360.js</files >
484
484
</default >
485
485
</test >
486
+ <test >
487
+ <default >
488
+ <files >bug6738.js</files >
489
+ </default >
490
+ </test >
486
491
<test >
487
492
<default >
488
493
<files >crosssite_bind_main.js</files >
You can’t perform that action at this time.
0 commit comments