Skip to content

Commit 93caf45

Browse files
Automatic merge of master into galahad
2 parents 0350174 + fefd8ad commit 93caf45

File tree

25 files changed

+3236
-2979
lines changed

25 files changed

+3236
-2979
lines changed

compiler/mx.compiler/suite.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@
2525
"name" : "truffle",
2626
"subdir": True,
2727
},
28-
{
29-
"name" : "regex",
30-
"subdir": True
31-
},
3228
{
3329
"name" : "sdk",
3430
"subdir": True
@@ -464,7 +460,6 @@
464460
"truffle:TRUFFLE_TEST",
465461
"truffle:TRUFFLE_COMPILER",
466462
"truffle:TRUFFLE_RUNTIME",
467-
"regex:TREGEX",
468463
],
469464
"exclude" : [
470465
"mx:JUNIT",

compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/truffle/test/tregex/TRegexCompilerTestDummyLanguage.java

Lines changed: 0 additions & 84 deletions
This file was deleted.

compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/truffle/test/tregex/TRegexTStringVirtualizationTest.java

Lines changed: 0 additions & 202 deletions
This file was deleted.

regex/src/com.oracle.truffle.regex.test/src/com/oracle/truffle/regex/tregex/parser/JsFlagsTest.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,17 @@
4040
*/
4141
package com.oracle.truffle.regex.tregex.parser;
4242

43+
import static org.junit.Assert.assertFalse;
44+
import static org.junit.Assert.assertTrue;
45+
46+
import org.junit.Assert;
47+
import org.junit.Test;
48+
4349
import com.oracle.truffle.api.source.Source;
4450
import com.oracle.truffle.regex.RegexFlags;
4551
import com.oracle.truffle.regex.RegexOptions;
4652
import com.oracle.truffle.regex.RegexSource;
4753
import com.oracle.truffle.regex.RegexSyntaxException;
48-
import org.junit.Assert;
49-
import org.junit.Test;
50-
51-
import static org.junit.Assert.assertFalse;
52-
import static org.junit.Assert.assertTrue;
5354

5455
public class JsFlagsTest {
5556

regex/src/com.oracle.truffle.regex.test/src/com/oracle/truffle/regex/tregex/test/InputStringGeneratorTests.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,11 @@ public void testBenchmarkRegexes() {
8484
}
8585

8686
void testInputStringGenerator(String pattern) {
87-
testInputStringGenerator(pattern, "", getEngineOptions(), getTRegexEncoding(), rng.nextLong(), compileRegex(pattern, ""));
87+
testInputStringGenerator(pattern, "", getEngineOptions(), getTRegexEncoding(), rng.nextLong());
8888
}
8989

90-
private void testInputStringGenerator(String pattern, String flags, Map<String, String> options, Encodings.Encoding encoding, long rngSeed, Value compiledRegex) {
90+
private void testInputStringGenerator(String pattern, String flags, Map<String, String> options, Encodings.Encoding encoding, long rngSeed) {
91+
Value compiledRegex = compileRegex(pattern, flags);
9192
Value generator = getGenerator(pattern, flags, options, encoding);
9293
for (int i = 0; i < 20; i++) {
9394
Value input = generator.execute(rngSeed + i);
@@ -102,7 +103,7 @@ private void testInputStringGenerator(String pattern, String flags, Map<String,
102103
}
103104

104105
private Value getGenerator(String pattern, String flags, Map<String, String> options, Encodings.Encoding encoding) {
105-
Source.Builder builder = sourceBuilder(pattern, flags, options, encoding).option("regexDummyLang.GenerateInput", "true");
106+
Source.Builder builder = sourceBuilder(pattern, flags, options(options), encoding).option("regexDummyLang.GenerateInput", "true");
106107
try {
107108
return context.parse(builder.build());
108109
} catch (IOException e) {

0 commit comments

Comments
 (0)