This repository has been archived by the owner on Oct 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Merge chakra-core/ChakraCore@95f497c17f] [1.6>1.7] [MERGE #3463 @ric…
…obbe] OS#11712101 Hoist CheckObjType out of loops only when the operand's containing object type is also invariant Merge pull request #3463 from ricobbe:CheckObjType-hoist-fix Check object type of argument to CheckObjType before hoisting it out of a loop, to avoid hoisting it over a DeleteFld that invalidates the type.
- Loading branch information
Showing
4 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[object Object],[object Object],[object Object] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
//------------------------------------------------------------------------------------------------------- | ||
// Copyright (C) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. | ||
//------------------------------------------------------------------------------------------------------- | ||
|
||
var GiantPrintArray = []; | ||
function makeArrayLength() { | ||
} | ||
var obj0 = {}; | ||
var obj1 = {}; | ||
var arrObj0 = {}; | ||
var func3 = function () { | ||
protoObj0._x = {}; | ||
for (var v0 = 0; v0 < 3; v0++) { | ||
delete arrObj0.length; | ||
protoObj0.length = protoObj0._x; | ||
} | ||
GiantPrintArray.push(arrObj0.length); | ||
}; | ||
obj0.method1 = func3; | ||
obj1.method0 = obj0.method1; | ||
obj1.method1 = obj1.method0; | ||
arrObj0.length = makeArrayLength(); | ||
protoObj0 = arrObj0; | ||
for (var _strvar13 in obj1) { | ||
obj0.method1(); | ||
} | ||
var uniqobj3 = [obj1]; | ||
uniqobj3[0].method1(); | ||
WScript.Echo(GiantPrintArray); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters