Incremental Shamu updates
This commit is contained in:
Родитель
c1470c70dd
Коммит
d5ad5720bd
|
@ -3362,7 +3362,12 @@ Context::Context(JSObject **global, World &world, Arena &a, Pragma::Flags flags)
|
||||||
mLocals(NULL),
|
mLocals(NULL),
|
||||||
mArgumentBase(NULL),
|
mArgumentBase(NULL),
|
||||||
mReader(NULL),
|
mReader(NULL),
|
||||||
mGlobal(global)
|
mGlobal(global),
|
||||||
|
|
||||||
|
mErrorReporter(NULL),
|
||||||
|
argumentFormatMap(NULL)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
uint32 i;
|
uint32 i;
|
||||||
|
|
|
@ -2041,6 +2041,7 @@ XXX ...couldn't get this to work...
|
||||||
|
|
||||||
|
|
||||||
void *mErrorReporter;
|
void *mErrorReporter;
|
||||||
|
void *argumentFormatMap;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
JSObject **mGlobal;
|
JSObject **mGlobal;
|
||||||
|
|
|
@ -34,6 +34,8 @@
|
||||||
#ifndef world_h___
|
#ifndef world_h___
|
||||||
#define world_h___
|
#define world_h___
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#include "strings.h"
|
#include "strings.h"
|
||||||
#include "token.h"
|
#include "token.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
|
@ -70,6 +72,9 @@ namespace JavaScript {
|
||||||
StringAtom &operator[](const char *s) {return operator[](widenCString(s));}
|
StringAtom &operator[](const char *s) {return operator[](widenCString(s));}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
namespace JS2Runtime {
|
||||||
|
class Context;
|
||||||
|
}
|
||||||
|
|
||||||
class World {
|
class World {
|
||||||
public:
|
public:
|
||||||
|
@ -77,6 +82,8 @@ namespace JavaScript {
|
||||||
|
|
||||||
World();
|
World();
|
||||||
|
|
||||||
|
std::vector<JS2Runtime::Context *> contextList;
|
||||||
|
|
||||||
/* Random number generator state, used by jsmath.c. */
|
/* Random number generator state, used by jsmath.c. */
|
||||||
bool rngInitialized;
|
bool rngInitialized;
|
||||||
int64 rngMultiplier;
|
int64 rngMultiplier;
|
||||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,13 +1,7 @@
|
||||||
struct JSRuntime {
|
|
||||||
double jsNaN;
|
|
||||||
double jsNegativeInfinity;
|
|
||||||
double jsPositiveInfinity;
|
|
||||||
JSString *emptyString;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct JSContext {
|
typedef struct JSStackFrame JSStackFrame;
|
||||||
JSRuntime *runtime;
|
typedef struct JSPropertyDescArray JSPropertyDescArray;
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef JS_ARGUMENT_FORMATTER_DEFINED
|
#ifdef JS_ARGUMENT_FORMATTER_DEFINED
|
||||||
|
|
|
@ -68,7 +68,7 @@ LINK32=link.exe
|
||||||
# PROP Ignore_Export_Lib 0
|
# PROP Ignore_Export_Lib 0
|
||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SHAMU_EXPORTS" /YX /FD /GZ /c
|
# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SHAMU_EXPORTS" /YX /FD /GZ /c
|
||||||
# ADD CPP /nologo /MTd /W3 /Gm /GR /GX /ZI /Od /I "..\..\..\..\js\src" /I "..\..\..\src" /I "..\..\..\src\regexp" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SHAMU_EXPORTS" /D "DEBUG" /D "XP_PC" /D "EXPORT_JS_API" /FR /YX /FD /GZ /c
|
# ADD CPP /nologo /MTd /W3 /Gm /GR /GX /ZI /Od /I "..\..\..\..\js\src" /I "..\..\..\src" /I "..\..\..\src\regexp" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SHAMU_EXPORTS" /D "DEBUG" /D "XP_PC" /D "EXPORT_JS_API" /D "JS_THREADSAFE" /FR /YX /FD /GZ /c
|
||||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||||
|
@ -91,6 +91,10 @@ LINK32=link.exe
|
||||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=..\..\..\..\js\src\jsdhash.c
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=..\shamu.cpp
|
SOURCE=..\shamu.cpp
|
||||||
|
|
||||||
!IF "$(CFG)" == "shamu - Win32 Release"
|
!IF "$(CFG)" == "shamu - Win32 Release"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче