mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 13:34:03 +00:00
a128924c0d
- Bug 930414 - Instantiate module function defintions earlier as per the spec r=shu (c0f7f01c16) - Bug 819125 - Reset return value before executing catch/finally block. r=jandem (005fc7dc26) - Bug 1216623 - Part 2: In for (let ...) loops, evaluate initializers in the scope of the variables being initialized. r=Waldo. (a09e74569a) - Bug 1219877 - Allow let token with TOK_NAME in strict mode in Parser::shouldParseLetDeclaration. r=shu (d76dbab3d4) - Bug 932517 - Followup: remove let-block logic in sloppy mode ES6 let declaration check. (rs=evilpie) (c6e0c8661a) - Bug 1212305: Also mark lazy link frames, r=jandem (cd3601052c) - Bug 1216140 - Load the global lexical scope for the BINDGNAME Baseline IC when the script doesn't have a non-syntactic scope chain. (r=jandem) (370cccbd8a) - Bug 1144630 - Install class methods as non-enumerable on instances. (r=evilpie) (1158b1ffdb) - Bug 1218639 - IonMonkey: MIPS64: Add support into jit. r=nbp (f521201ec3) - Bug 1213740 - IonMonkey: MIPS64: Import Bailouts-mips64. r=nbp f=rankov (5e810a94d9) - Bug 1213741 - IonMonkey: MIPS64: Import BaselineCompiler-mips64. r=nbp f=rankov (c6eb2d72b1) - Bug 1213742 - IonMonkey: MIPS64: Import BaselineIC-mips64. r=nbp f=rankov (67b78d1345) - Bug 1213745 - IonMonkey: MIPS64: Import Lowering-mips64. r=nbp f=rankov (d1e60521f2) - Bug 1213749 - IonMonkey: MIPS64: Import SharedIC-mips64. r=nbp f=rankov (4a2184d535) - Bug 1213750 - IonMonkey: MIPS64: Import Trampoline-mips64. r=nbp f=rankov (382237c7db) - Bug 1213743 - IonMonkey: MIPS64: Import CodeGenerator-mips64. r=lth f=nbp,rankov (4f7d1720d6) - Bug 1213747 - IonMonkey: MIPS64: Import MoveEmitter-mips64. r=nbp f=rankov (63a53396e6) - Bug 1213751 - IonMonkey: MIPS64: Import Simulator-mips64. r=jandem (ac2f67fd43) - Bug 1218652 - IonMonkey: MIPS: Add mips-shared in check macroassembler style. r=arai (cf6f2bf5db) - Bug 1205134 - IonMonkey: MIPS: Split shareable code to mips-shared in MacroAssembler-mips32. r=lth f=nbp (3608ef227a) - Bug 1218652 - IonMonkey: MIPS: Move shared functions to mips-shared. r=arai (d716fa56bc) - Bug 1219137 - IonMonkey: MIPS: Fix PushRegsInMask and PopRegsInMaskIgnore can not shared. r=arai (13e5811e19) - Bug 1213746 - IonMonkey: MIPS64: Import MacroAssembler-mips64. r=lthf=rankov (3a7cb6fbd6) - Bug 1196545 - unboxed array snafus. r=jandem (31bbe773b2) - Bug 1224411 - Speed up FileRegistry._partial_paths by memoizing on the basis of directory. r=nalexander (d202d614a9) - Bug 1153790 - mac unification doesn't work with packaged addons. r=glandium (269cc3e37c) - Bug 1208320 - Support configuring zlib compression level; r=glandium (502de5e78a) - Bug 1163077 - Never elfhack if --disable-compile-environment is set. r=glandium (a484cb9a2f) - Bug 1213418 - Part 1: Use mozregression to download in |mach artifact|. r=me (93e1cb3aa2) - Bug 1213418 - Part 2: Use Fennec APKs in |mach artifact|; use mozversion to extract build IDs. r=me (27efbe8404) - Bug 1191051 - Use full 40 character hashes in |mach artifact|. r=gps (43992efbee) - Bug 1192064 - Add 'android-x86' job to |mach artifact|. r=jonalmeida (c0e7d6c8f8) - No bug - Don't write artifacts twice. r=me (e5eff7d6de) - Bug 1208808 - Move time zone adjustment information out of JSRuntime, into global state protected by a spinlock. r=till (20c6e76cc7) - Bug 1181612: Rename AsmJSFunctionLabels to make them easier to understand; r=luke (c6d88f944b) - Bug 1181612: Remove FunctionCompiler's RetType; r=luke (2f7483bfe2) - Bug 1214467 - Eliminate redundant loop header phis while emitting MIR for asm.js. r=luke (6c50f9b407) - Bug 1205390 - make Odin accept TypedArray constructors for shared memory. r=luke (400f892775) - Bug 1181612: Make asm.js internal calls thread-local; r=luke (aed88de095) - Bug 1219143 - IonMonkey: MIPS: Move callAndPushReturnAddress to mips-shared. r=lth (b9cd97f491) - Bug 1217326 - fork remaining atomics. r=h4writer. (65cc2a2b07)
85 lines
3.2 KiB
C++
85 lines
3.2 KiB
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
/* SpiderMonkey initialization and shutdown APIs. */
|
|
|
|
#ifndef js_Initialization_h
|
|
#define js_Initialization_h
|
|
|
|
#include "jstypes.h"
|
|
|
|
namespace JS {
|
|
namespace detail {
|
|
|
|
enum class InitState { Uninitialized = 0, Running, ShutDown };
|
|
|
|
/**
|
|
* SpiderMonkey's initialization status is tracked here, and it controls things
|
|
* that should happen only once across all runtimes. It's an API requirement
|
|
* that JS_Init (and JS_ShutDown, if called) be called in a thread-aware
|
|
* manner, so this (internal -- embedders, don't use!) variable doesn't need to
|
|
* be atomic.
|
|
*/
|
|
extern JS_PUBLIC_DATA(InitState)
|
|
libraryInitState;
|
|
|
|
} // namespace detail
|
|
} // namespace JS
|
|
|
|
// These are equivalent to ICU's |UMemAllocFn|, |UMemReallocFn|, and
|
|
// |UMemFreeFn| types. The first argument (called |context| in the ICU docs)
|
|
// will always be nullptr and should be ignored.
|
|
typedef void* (*JS_ICUAllocFn)(const void*, size_t size);
|
|
typedef void* (*JS_ICUReallocFn)(const void*, void* p, size_t size);
|
|
typedef void (*JS_ICUFreeFn)(const void*, void* p);
|
|
|
|
/**
|
|
* This function can be used to track memory used by ICU. If it is called, it
|
|
* *must* be called before JS_Init. Don't use it unless you know what you're
|
|
* doing!
|
|
*/
|
|
extern JS_PUBLIC_API(bool)
|
|
JS_SetICUMemoryFunctions(JS_ICUAllocFn allocFn,
|
|
JS_ICUReallocFn reallocFn,
|
|
JS_ICUFreeFn freeFn);
|
|
|
|
/**
|
|
* Initialize SpiderMonkey, returning true only if initialization succeeded.
|
|
* Once this method has succeeded, it is safe to call JS_NewRuntime and other
|
|
* JSAPI methods.
|
|
*
|
|
* This method must be called before any other JSAPI method is used on any
|
|
* thread. Once it has been used, it is safe to call any JSAPI method, and it
|
|
* remains safe to do so until JS_ShutDown is correctly called.
|
|
*
|
|
* It is currently not possible to initialize SpiderMonkey multiple times (that
|
|
* is, calling JS_Init/JSAPI methods/JS_ShutDown in that order, then doing so
|
|
* again). This restriction may eventually be lifted.
|
|
*/
|
|
extern JS_PUBLIC_API(bool)
|
|
JS_Init(void);
|
|
|
|
/**
|
|
* Destroy free-standing resources allocated by SpiderMonkey, not associated
|
|
* with any runtime, context, or other structure.
|
|
*
|
|
* This method should be called after all other JSAPI data has been properly
|
|
* cleaned up: every new runtime must have been destroyed, every new context
|
|
* must have been destroyed, and so on. Calling this method before all other
|
|
* resources have been destroyed has undefined behavior.
|
|
*
|
|
* Failure to call this method, at present, has no adverse effects other than
|
|
* leaking memory. This may not always be the case; it's recommended that all
|
|
* embedders call this method when all other JSAPI operations have completed.
|
|
*
|
|
* It is currently not possible to initialize SpiderMonkey multiple times (that
|
|
* is, calling JS_Init/JSAPI methods/JS_ShutDown in that order, then doing so
|
|
* again). This restriction may eventually be lifted.
|
|
*/
|
|
extern JS_PUBLIC_API(void)
|
|
JS_ShutDown(void);
|
|
|
|
#endif /* js_Initialization_h */
|