Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/scriptinterface/ScriptContext.h
Show All 15 Lines | |||||
*/ | */ | ||||
#ifndef INCLUDED_SCRIPTCONTEXT | #ifndef INCLUDED_SCRIPTCONTEXT | ||||
#define INCLUDED_SCRIPTCONTEXT | #define INCLUDED_SCRIPTCONTEXT | ||||
#include "ScriptTypes.h" | #include "ScriptTypes.h" | ||||
#include "ScriptExtraHeaders.h" | #include "ScriptExtraHeaders.h" | ||||
#include <list> | |||||
#include <sstream> | #include <sstream> | ||||
// Those are minimal defaults. The runtime for the main game is larger and GCs upon a larger growth. | // Those are minimal defaults. The runtime for the main game is larger and GCs upon a larger growth. | ||||
constexpr int DEFAULT_CONTEXT_SIZE = 16 * 1024 * 1024; | constexpr int DEFAULT_CONTEXT_SIZE = 16 * 1024 * 1024; | ||||
constexpr int DEFAULT_HEAP_GROWTH_BYTES_GCTRIGGER = 2 * 1024 * 1024; | constexpr int DEFAULT_HEAP_GROWTH_BYTES_GCTRIGGER = 2 * 1024 * 1024; | ||||
/** | /** | ||||
* Abstraction around a SpiderMonkey JSContext. | * Abstraction around a SpiderMonkey JSContext. | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator