Skip to content

Commit

Permalink
Merge branch 'mozilla:master' into scratch/satish/function-prototype-…
Browse files Browse the repository at this point in the history
…hasinstance
  • Loading branch information
0xe authored Jan 2, 2025
2 parents 5e7ebb0 + 98e9242 commit 7f1364e
Show file tree
Hide file tree
Showing 111 changed files with 2,501 additions and 1,895 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
# We don't actually want all the history for this part
run: git submodule update --init --single-branch
- name: Set up Java
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
# By putting JVMs in reverse order, the last one is the one that
# will go in the path.
with:
Expand All @@ -35,7 +35,7 @@ jobs:
run: >-
./gradlew check
- name: Upload results Java 21
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ always() }}
with:
name: reports-java-21
Expand All @@ -46,7 +46,7 @@ jobs:
run: >-
./gradlew check
- name: Upload results Java 17
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ always() }}
with:
name: reports-java-17
Expand All @@ -57,7 +57,7 @@ jobs:
run: >-
./gradlew check
- name: Upload results Java 11
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ always() }}
with:
name: reports-java-11
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
with:
java-version: '21'
distribution: 'adopt'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0
with:
java-version: '21'
distribution: 'adopt'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: SARIF file
path: results.sarif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ public class BuiltinBenchmark {
@State(Scope.Thread)
public static class AbstractClassState {

@Param({"false", "true"})
public boolean interpreted;

public void init()
throws IllegalAccessException, InvocationTargetException, InstantiationException {
cx = Context.enter();
cx.setInterpretedMode(interpreted);
cx.setLanguageVersion(Context.VERSION_ES6);

scope = cx.initStandardObjects();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ public static class MathState {
Function bitwiseRsh;
Function bitwiseSignedRsh;

@Param({"false", "true"})
public boolean interpreted;

@Setup(Level.Trial)
public void setup() throws IOException {
cx = Context.enter();
cx.setInterpretedMode(interpreted);
cx.setLanguageVersion(Context.VERSION_ES6);
scope = cx.initStandardObjects();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,14 @@ public static class FieldTestState {
Scriptable strings;
Scriptable ints;

@Param({"false", "true"})
public boolean interpreted;

@Setup(Level.Trial)
@SuppressWarnings("unused")
public void create() throws IOException {
cx = Context.enter();
cx.setInterpretedMode(interpreted);
cx.setLanguageVersion(Context.VERSION_ES6);

scope = new Global(cx);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ public static class PropertyState {

Object object;

@Param({"false", "true"})
public boolean interpreted;

@Setup(Level.Trial)
public void setup() throws IOException {
cx = Context.enter();
cx.setInterpretedMode(interpreted);
cx.setLanguageVersion(Context.VERSION_ES6);
scope = cx.initStandardObjects();

Expand Down
Loading

0 comments on commit 7f1364e

Please sign in to comment.