This repository was archived by the owner on Oct 15, 2020. It is now read-only.
Commit 5db7165
committed
chakrashim: improve hot path calls
- Number of times this call is successful is merely 0 yet it's in the
middle of a `GetObjectData` hot path. If `object` is not proxy, we are
able to do `HasProperty` discovery without really entering into script.
So.. `JsHasProperty` is reasonably faster than `JsGetProperty +
isUndefined` calls.
- Use fast pointer compare for True/False/Undefined/Null
PR-URL: #425
Reviewed-By: Jack Horton <jahorto@microsoft.com>
Reviewed-By: Jimmy Thomson <jithomson@microsoft.com>1 parent 1dca122 commit 5db7165
2 files changed
+7
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
720 | | - | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
721 | 723 | | |
722 | 724 | | |
723 | 725 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 60 | + | |
66 | 61 | | |
67 | 62 | | |
68 | 63 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 64 | + | |
75 | 65 | | |
76 | 66 | | |
77 | 67 | | |
| |||
0 commit comments