Skip to content

Commit 2afc5e0

Browse files
committed
Merge mozilla-central to mozilla-inbound. on a CLOSED TREE
UltraBlame original commit: 1d4dcfddc3f8483e60105dd19f03481f28518664
1 parent 380a5e7 commit 2afc5e0

File tree

3 files changed

+3
-21
lines changed

3 files changed

+3
-21
lines changed

js/public/ContextOptions.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,9 @@ class JS_PUBLIC_API ContextOptions {
1919
public:
2020
ContextOptions()
2121
: baseline_(true),
22-
#ifdef JS_CODEGEN_ARM64
23-
ion_(false),
24-
asmJS_(false),
25-
wasm_(false),
26-
#else
2722
ion_(true),
2823
asmJS_(true),
2924
wasm_(true),
30-
#endif
3125
wasmVerbose_(false),
3226
wasmBaseline_(true),
3327
wasmIon_(true),

js/src/builtin/TestingFunctions.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,17 +1653,16 @@ static bool NewRope(JSContext* cx, unsigned argc, Value* vp) {
16531653
}
16541654
}
16551655

1656-
JSString* left = args[0].toString();
1657-
JSString* right = args[1].toString();
1656+
RootedString left(cx, args[0].toString());
1657+
RootedString right(cx, args[1].toString());
16581658
size_t length = JS_GetStringLength(left) + JS_GetStringLength(right);
16591659
if (length > JSString::MAX_LENGTH) {
16601660
JS_ReportErrorASCII(cx, "rope length exceeds maximum string length");
16611661
return false;
16621662
}
16631663

1664-
Rooted<JSRope*> str(cx, JSRope::new_<NoGC>(cx, left, right, length, heap));
1664+
Rooted<JSRope*> str(cx, JSRope::new_<CanGC>(cx, left, right, length, heap));
16651665
if (!str) {
1666-
JS_ReportOutOfMemory(cx);
16671666
return false;
16681667
}
16691668

js/src/shell/js.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9840,25 +9840,14 @@ static MOZ_MUST_USE bool ProcessArgs(JSContext* cx, OptionParser* op) {
98409840

98419841
static bool SetContextOptions(JSContext* cx, const OptionParser& op) {
98429842
enableBaseline = !op.getBoolOption("no-baseline");
9843-
#ifdef JS_CODEGEN_ARM64
9844-
9845-
enableIon = false;
9846-
enableAsmJS = false;
9847-
#else
98489843
enableIon = !op.getBoolOption("no-ion");
98499844
enableAsmJS = !op.getBoolOption("no-asmjs");
9850-
#endif
98519845
enableNativeRegExp = !op.getBoolOption("no-native-regexp");
98529846

98539847

98549848
enableWasm = true;
98559849
enableWasmBaseline = true;
9856-
#ifdef JS_CODEGEN_ARM64
9857-
9858-
enableWasmIon = false;
9859-
#else
98609850
enableWasmIon = true;
9861-
#endif
98629851
if (const char* str = op.getStringOption("wasm-compiler")) {
98639852
if (strcmp(str, "none") == 0) {
98649853
enableWasm = false;

0 commit comments

Comments
 (0)