Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
cb0eaef
Use WCHAR instead of wchar_t
obastemur Dec 27, 2016
1d56e43
xplat-arm: implement missing arm_Thunks after xplat Debugger support
obastemur Dec 28, 2016
ea6b954
android: fix va_* and cleanup pal + first output
obastemur Dec 28, 2016
17b8f3a
Resolves #1391: Implement TypedArray updates to index handling.
Dec 28, 2016
d9cf919
[MERGE #2291 @obastemur] xplat-arm: implement missing arm_Thunks afte…
obastemur Dec 29, 2016
5db69c2
[MERGE #2292 @obastemur] android: fix va_* and cleanup pal + first ou…
obastemur Dec 29, 2016
4f58ae9
Keep property records live on IteratorObjectEnumerator
rajatd Dec 13, 2016
d160d49
[MERGE #2198 @rajatd] Keep property records live on IteratorObjectEnu…
rajatd Dec 29, 2016
ade649c
[1.4>master] [MERGE #2198 @rajatd] Keep property records live on Iter…
rajatd Dec 29, 2016
8b331b8
Marshal value when traversing property keys via proxy
ThomsonTan Dec 30, 2016
82cd6ae
[MERGE #2300 @ThomsonTan] Marshal value when traversing property keys…
ThomsonTan Dec 30, 2016
0ba25c5
[1.4>master] [MERGE #2300 @ThomsonTan] Marshal value when traversing …
ThomsonTan Dec 30, 2016
bae8bd5
Don't marshal symbol when it is just created from the same script con…
ThomsonTan Dec 30, 2016
6f4c890
[MERGE #2301 @ThomsonTan] Don't marshal symbol when it is just create…
ThomsonTan Dec 31, 2016
dce349e
[1.4>master] [MERGE #2301 @ThomsonTan] Don't marshal symbol when it i…
ThomsonTan Dec 31, 2016
b252b16
Added a null-terminating character to the character list when scanning a
kfarnung Dec 20, 2016
a40d2f9
[MERGE #2263 @kfarnung] Added a null-terminating character to the cha…
kfarnung Jan 3, 2017
8edb0c8
TypeSharing Bug fix
kunalspathak Jan 3, 2017
d0f4f88
[MERGE #2289 @atulkatti] Resolves #1391: Implement TypedArray updates…
Jan 3, 2017
26e3ccd
[1.4>master] [MERGE #2289 @atulkatti] Resolves #1391: Implement Typed…
Jan 3, 2017
bedc2ff
Utf8Codex DecodeTail read past end of buffer
boingoing Jan 3, 2017
2c07e14
Fix one more instance of hardcoding the end of buffer pointer for utf…
boingoing Jan 3, 2017
200438b
[MERGE #2288 @obastemur] Use WCHAR instead of wchar_t
obastemur Jan 4, 2017
646776b
Fix handling of inlined ArgIn_Rest while mapping formals during inlining
Dec 14, 2016
c65d768
[MERGE #2202 @meg-gupta] Fix handling of inlined ArgIn_Rest while map…
Jan 4, 2017
1c38588
[MERGE #2303 @kunalspathak] TypeSharing Bug fix
kunalspathak Jan 4, 2017
257378a
[1.4>master] [MERGE #2202 @meg-gupta] Fix handling of inlined ArgIn_R…
Jan 4, 2017
3f84a23
[1.4>master] [MERGE #2303 @kunalspathak] TypeSharing Bug fix
kunalspathak Jan 4, 2017
45df9ea
Fix VSO 10259529: Add assertion to satisfy analysis of descriptors[de…
dilijev Jan 4, 2017
27ac785
Marshal result from ConstructTrap
kunalspathak Jan 4, 2017
3f89a29
[MERGE #2304 @boingoing] Utf8Codex DecodeTail read past end of buffer
boingoing Jan 4, 2017
16f7a28
[MERGE #2308 @kunalspathak] Marshal result of ContructTrap
kunalspathak Jan 4, 2017
71a87b0
[1.4>master] [MERGE #2304 @boingoing] Utf8Codex DecodeTail read past …
boingoing Jan 5, 2017
9e09807
Fix some OACR warnings about non-const locals.
dilijev Jan 5, 2017
582b512
[MERGE #2310 @dilijev] Fix VSO 10259529: Add assertion to satisfy ana…
dilijev Jan 5, 2017
05be762
fix legacy build issue - Pch header location
obastemur Jan 5, 2017
1e7ddca
[1.4>master] [MERGE #2308 @kunalspathak] Marshal result of ContructTrap
kunalspathak Jan 5, 2017
efa80e1
[1.4>master] [MERGE #2310 @dilijev] Fix VSO 10259529: Add assertion t…
dilijev Jan 5, 2017
a5a1cb3
Recover perf regression related to stack args
rajatd Jan 4, 2017
6e57c26
Fix TTD issues found during Node master merge
kfarnung Jan 5, 2017
f8475c5
[MERGE #2309 @kfarnung] Fix TTD issues found during Node master merge
kfarnung Jan 5, 2017
582a9c3
[MERGE #2307 @rajatd] Recover perf regression related to stack args
rajatd Jan 5, 2017
34a11b1
[1.4>master] [MERGE #2307 @rajatd] Recover perf regression related to…
rajatd Jan 5, 2017
20e1e6e
[MERGE #2320 @obastemur] fix legacy build issue - Pch header location
obastemur Jan 5, 2017
2386409
Remove InternalErrorException and FailFast instead
tcare Jan 4, 2017
ee8e57e
[MERGE #2315 @tcare] Remove InternalErrorException and FailFast instead
tcare Jan 6, 2017
0a64a1c
[1.4>master] [MERGE #2315 @tcare] Remove InternalErrorException and F…
tcare Jan 6, 2017
89a43bf
Adding bounds checking to the TTD string manipulation
kfarnung Jan 6, 2017
6a94785
Issue#829: class extends null should bind this
Jan 6, 2017
3e97c3c
[MERGE #2329 @kfarnung] Adding bounds checking to the TTD string mani…
kfarnung Jan 6, 2017
e193897
Array.prototype.unshift does not marshal parameters correctly
tcare Dec 14, 2016
341a8c9
[MERGE #2327 @suwc] Issue#829: class extends null should bind this
Jan 6, 2017
5592fe0
[1.4>master] [MERGE #2327 @suwc] Issue#829: class extends null should…
Jan 6, 2017
96c8b12
[MERGE #2201 @tcare] Array.prototype.unshift does not marshal paramet…
tcare Jan 7, 2017
3239cc6
[1.4>master] [MERGE #2201 @tcare] Array.prototype.unshift does not ma…
tcare Jan 7, 2017
b04b132
Solve an AST anomaly in rare redeferral cases. We may redefer a neste…
pleath Jan 6, 2017
f63759b
Merge branch 'master' into users/leish/wb3merge
leirocks Jan 7, 2017
d5c4f47
[MERGE #2330 @pleath] Solve an AST anomaly in rare redeferral cases.
pleath Jan 9, 2017
0824e05
2 very simple redeferral fixes: 1. Now that the ScopeSlots structure …
pleath Jan 5, 2017
f5315fb
[1.4>master] [MERGE #2330 @pleath] Solve an AST anomaly in rare redef…
pleath Jan 9, 2017
6d27c9e
[MERGE #2323 @pleath] 2 very simple redeferral fixes
pleath Jan 9, 2017
b9a9e2a
[1.4>master] [MERGE #2323 @pleath] 2 very simple redeferral fixes
pleath Jan 9, 2017
ad40625
Merge branch 'master' into users/leish/wb3merge
leirocks Jan 9, 2017
cd8cb9e
fix needed for full build
leirocks Jan 9, 2017
1eb488e
fix build: RegisterPendingWriteBarrierBlock only needed with force so…
leirocks Jan 10, 2017
622abd7
a few fixes for review comment in last PR
leirocks Jan 10, 2017
398b92d
restore default using hardware writewatch and prepare for merging bac…
leirocks Jan 10, 2017
a123fdf
Merge branch 'swb' into users/leish/wbmerge
leirocks Jan 10, 2017
e6a14fe
remove one unnecessary stack barrier update
leirocks Jan 10, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions bin/External/catch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1571,8 +1571,8 @@ std::string toString( std::string const& value );
std::string toString( std::wstring const& value );
std::string toString( const char* const value );
std::string toString( char* const value );
std::string toString( const wchar_t* const value );
std::string toString( wchar_t* const value );
std::string toString( const WCHAR* const value );
std::string toString( WCHAR* const value );
std::string toString( int value );
std::string toString( unsigned long value );
std::string toString( unsigned int value );
Expand Down Expand Up @@ -8095,14 +8095,14 @@ std::string toString( char* const value ) {
return Catch::toString( static_cast<const char*>( value ) );
}

std::string toString( const wchar_t* const value )
std::string toString( const WCHAR* const value )
{
return value ? Catch::toString( std::wstring(value) ) : std::string( "{null string}" );
}

std::string toString( wchar_t* const value )
std::string toString( WCHAR* const value )
{
return Catch::toString( static_cast<const wchar_t*>( value ) );
return Catch::toString( static_cast<const WCHAR*>( value ) );
}

std::string toString( int value ) {
Expand Down Expand Up @@ -10506,4 +10506,3 @@ int main (int argc, char * const argv[]) {
using Catch::Detail::Approx;

#endif // TWOBLUECUBES_SINGLE_INCLUDE_CATCH_HPP_INCLUDED

26 changes: 13 additions & 13 deletions bin/NativeTests/JsRTApiTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ namespace JsRTApiTest
REQUIRE(JsCreateObject(&object) == JsNoError);

JsPropertyIdRef name1 = JS_INVALID_REFERENCE;
const wchar_t* name = nullptr;
const WCHAR* name = nullptr;
REQUIRE(JsGetPropertyIdFromName(_u("stringProperty1"), &name1) == JsNoError);
REQUIRE(JsGetPropertyNameFromId(name1, &name) == JsNoError);
CHECK(!wcscmp(name, _u("stringProperty1")));
Expand Down Expand Up @@ -582,7 +582,7 @@ namespace JsRTApiTest
JsValueRef CALLBACK ExternalFunctionPreScriptAbortionCallback(JsValueRef /* function */, bool /* isConstructCall */, JsValueRef * args /* args */, USHORT /* cargs */, void * /* callbackState */)
{
JsValueRef result = JS_INVALID_REFERENCE;
const wchar_t *scriptText = nullptr;
const WCHAR *scriptText = nullptr;
size_t scriptTextLen;

REQUIRE(JsStringToPointer(args[0], &scriptText, &scriptTextLen) == JsNoError);
Expand All @@ -593,7 +593,7 @@ namespace JsRTApiTest
JsValueRef CALLBACK ExternalFunctionPostScriptAbortionCallback(JsValueRef /* function */, bool /* isConstructCall */, JsValueRef * args /* args */, USHORT /* cargs */, void * /* callbackState */)
{
JsValueRef result = JS_INVALID_REFERENCE;
const wchar_t *scriptText = nullptr;
const WCHAR *scriptText = nullptr;
size_t scriptTextLen;

REQUIRE(JsStringToPointer(args[0], &scriptText, &scriptTextLen) == JsNoError);
Expand Down Expand Up @@ -656,7 +656,7 @@ namespace JsRTApiTest
REQUIRE(JsCreateFunction(ExternalFunctionCallback, nullptr, &function) == JsNoError);
testConstructorName(function, _u(""), 0);

wchar_t name[] = _u("FooName");
WCHAR name[] = _u("FooName");
JsValueRef nameString = JS_INVALID_REFERENCE;
REQUIRE(JsPointerToString(name, _countof(name) - 1, &nameString) == JsNoError);
REQUIRE(JsCreateNamedFunction(nameString, ExternalFunctionCallback, nullptr, &function) == JsNoError);
Expand Down Expand Up @@ -688,7 +688,7 @@ namespace JsRTApiTest

JsValueRef args[] = { GetUndefined() };

// throw from script, handle in host
// throw from script, handle in host
REQUIRE(JsGetPropertyIdFromName(_u("throwAtHost"), &name) == JsNoError);
REQUIRE(JsGetProperty(global, name, &function) == JsNoError);
REQUIRE(JsCallFunction(function, args, _countof(args), &result) == JsErrorScriptException);
Expand All @@ -701,12 +701,12 @@ namespace JsRTApiTest
REQUIRE(JsGetPropertyIdFromName(_u("callHost"), &name) == JsNoError);
REQUIRE(JsSetProperty(global, name, result, true) == JsNoError);

// throw from host callback, catch in script
// throw from host callback, catch in script
REQUIRE(JsGetPropertyIdFromName(_u("callHostWithTryCatch"), &name) == JsNoError);
REQUIRE(JsGetProperty(global, name, &function) == JsNoError);
REQUIRE(JsCallFunction(function, args, _countof(args), &result) == JsNoError);

// throw from host callback, through script, handle in host
// throw from host callback, through script, handle in host
REQUIRE(JsGetPropertyIdFromName(_u("callHostWithNoTryCatch"), &name) == JsNoError);
REQUIRE(JsGetProperty(global, name, &function) == JsNoError);
REQUIRE(JsCallFunction(function, args, _countof(args), &result) == JsErrorScriptException);
Expand Down Expand Up @@ -855,7 +855,7 @@ namespace JsRTApiTest
JsValueRef nameValue = JS_INVALID_REFERENCE;
REQUIRE(JsGetIndexedProperty(propertyNames, indexValue, &nameValue) == JsNoError);

const wchar_t *name = nullptr;
const WCHAR *name = nullptr;
size_t length;
REQUIRE(JsStringToPointer(nameValue, &name, &length) == JsNoError);

Expand All @@ -879,7 +879,7 @@ namespace JsRTApiTest
JsPropertyIdRef propertyId = JS_INVALID_REFERENCE;
JsValueRef outValue = JS_INVALID_REFERENCE;
JsValueRef propertySymbols = JS_INVALID_REFERENCE;
const wchar_t* name = nullptr;
const WCHAR* name = nullptr;
JsPropertyIdType propertyIdType;

REQUIRE(JsCreateObject(&object) == JsNoError);
Expand Down Expand Up @@ -1003,7 +1003,7 @@ namespace JsRTApiTest
bool boolValue;
BYTE *compiledScript = nullptr;
unsigned int scriptSize = 0;
const wchar_t *stringValue;
const WCHAR *stringValue;
size_t stringLength;
ByteCodeCallbackTracker tracker = {};

Expand All @@ -1030,7 +1030,7 @@ namespace JsRTApiTest

tracker.script = script;
REQUIRE(JsRunSerializedScriptWithCallback(
[](JsSourceContext sourceContext, const wchar_t** scriptBuffer)
[](JsSourceContext sourceContext, const WCHAR** scriptBuffer)
{
((ByteCodeCallbackTracker*)sourceContext)->loadedScript = true;
*scriptBuffer = ((ByteCodeCallbackTracker*)sourceContext)->script;
Expand Down Expand Up @@ -1079,7 +1079,7 @@ namespace JsRTApiTest
REQUIRE(oldProtect == PAGE_READWRITE);
tracker.script = scriptFnToString;
REQUIRE(JsRunSerializedScriptWithCallback(
[](JsSourceContext sourceContext, const wchar_t** scriptBuffer)
[](JsSourceContext sourceContext, const WCHAR** scriptBuffer)
{
((ByteCodeCallbackTracker*)sourceContext)->loadedScript = true;
*scriptBuffer = ((ByteCodeCallbackTracker*)sourceContext)->script;
Expand Down Expand Up @@ -1619,7 +1619,7 @@ namespace JsRTApiTest
REQUIRE(JsCreateFunction(ExternalFunctionPostScriptAbortionCallback, nullptr, &postScriptAbortFunction) == JsNoError);
JsValueRef scriptTextArg = JS_INVALID_REFERENCE;

wchar_t *scriptText = const_cast<wchar_t *>(terminationTests[i]);
WCHAR *scriptText = const_cast<WCHAR *>(terminationTests[i]);
REQUIRE(JsPointerToString(scriptText, wcslen(scriptText), &scriptTextArg) == JsNoError);
JsValueRef args[] = { scriptTextArg };

Expand Down
7 changes: 6 additions & 1 deletion bin/ch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ target_include_directories (ch
if(STATIC_LIBRARY)
if(CC_TARGET_OS_ANDROID OR CC_TARGET_OS_LINUX)
set(LINKER_START_GROUP -pie -Wl,--start-group)
set(LINKER_END_GROUP -Wl,--end-group -static-libstdc++)
set(LINKER_END_GROUP -Wl,--end-group)
if (CC_TARGET_OS_LINUX) # do not embed libstdc++ statically on Android
set(LINKER_END_GROUP "${LINKER_END_GROUP} -static-libstdc++")
else()
set(LINKER_END_GROUP "${LINKER_END_GROUP} -llog")
endif()
elseif(CC_TARGET_OS_OSX)
set(LINKER_START_GROUP -Wl,-force_load,)
endif()
Expand Down
Loading