This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A | |
{ | |
public: | |
typedef union { | |
int x, y; | |
char* s; | |
} UnionType; | |
UnionType u; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function temporary(accessor, value, body) { | |
var old_value = accessor(value); | |
try { return body(value, old_value) } | |
finally { | |
old_value = accessor(old_value); | |
if (old_value !== value) | |
throw [accessor, value, old_value]; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c++ -o debug_util.o -c -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES -DZLIB_INTERNAL -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -DEXCLUDE_SKIA_DEPENDENCIES -DCHROMIUM_MOZILLA_BUILD -DOS_LINUX=1 -DOS_POSIX=1 -DHAVE_CONFIG_H -I/home/ben/dev/electrolysis/ipc/chromium/src -I/home/ben/dev/electrolysis/ipc/glue -I../../ipc/ipdl/_ipdlheaders -I/home/ben/dev/electrolysis/ipc/chromium/src/third_party/libevent -I/home/ben/dev/electrolysis/ipc/chromium/src/third_party/libevent/linux -I/home/ben/dev/electrolysis/ipc/chromium -I. -I../../dist/include -I../../dist/include/nsprpub -I/home/ben/dev/electrolysis/obj-ff-debug/dist/include/nspr -I/home/ben/dev/electrolysis/obj-ff-debug/dist/include/nss -fPIC -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Wno-long-long -fno-strict-aliasing -pth |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class test { | |
static boolean set_x(test t) { | |
return t.x = true; | |
} | |
static boolean get_x(test t) { | |
return t.x; | |
} | |
private boolean x = set_x(this) && get_x(this); | |
public static void main(String[] args) { | |
System.out.println(new test().x + ""); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function.prototype.new_apply = function(args) { | |
var empty = function() {}, obj, rv; | |
empty.prototype = this.prototype; // 'this' is the constructor function, here | |
rv = this.apply(obj = new empty, args); | |
if (rv && typeof rv == "object") | |
return rv; // throw away the new object if the constructor returns a non-null object | |
return obj; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*static*/ JSBool | |
JSObjectParent::JPW_GetProperty(JSContext *cx, JSObject *obj, jsval id, | |
jsval *vp) | |
{ | |
printf("Calling JPW_GetProperty...\n"); fflush(0); | |
JSObjectParent* self = Unwrap(cx, obj); | |
if (!self) | |
return JS_FALSE; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/js/src/ipc/PJSObject.ipdl b/js/src/ipc/PJSObject.ipdl | |
--- a/js/src/ipc/PJSObject.ipdl | |
+++ b/js/src/ipc/PJSObject.ipdl | |
@@ -1,18 +1,29 @@ | |
include protocol "PScriptProxy.ipdl"; | |
-include "PScriptProxy.h"; // XXX why is this needed? | |
+include "mozilla/js/ipc/ScriptProxyTypes.h"; | |
-using mozilla::js::ipc::JSVariant; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function empty() {} | |
empty.prototype = Date.prototype; | |
empty.prototype.constructor = Date; | |
var date = new empty, | |
rv = Date.call(date); | |
if (rv && typeof rv == "object") | |
date = rv; | |
console.log(date); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Building deps for /e/builds/moz2_slave/win32-unit/mozilla/js/src/ipc/ObjectWrapperChild.cpp | |
cl -FoObjectWrapperChild.obj -c -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES -DZLIB_INTERNAL -DOSTYPE=\"WINNT5.2\" -DOSARCH=WINNT -DEXCLUDE_SKIA_DEPENDENCIES -DCHROMIUM_MOZILLA_BUILD -DUNICODE -D_UNICODE -DNOMINMAX -D_CRT_RAND_S -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -D_SECURE_ATL -D_HAS_TR1=0 -DCHROMIUM_BUILD -DU_STATIC_IMPLEMENTATION -DCOMPILER_MSVC -DOS_WIN=1 -DWIN32 -D_WIN32 -D_WINDOWS -DWIN32_LEAN_AND_MEAN -DBIN_SUFFIX='".exe"' -I/e/builds/moz2_slave/win32-unit/mozilla/ipc/chromium/src -I/e/builds/moz2_slave/win32-unit/mozilla/ipc/glue -I../../../ipc/ipdl/_ipdlheaders -I/e/builds/moz2_slave/win32-unit/mozilla/js/src/ipc -I. -I../../../dist/include -I../../../dist/include/nsprpub -Ie:/builds/moz2_slave/win32-unit/mozilla/objdir/dist/include/nspr -Ie:/builds/moz2_slave/win32-unit/mozilla/objdir/dist/include/nss |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
js> _execute_test() | |
TEST-INFO | (xpcshell/head.js) | test 1 pending | |
WARNING: Connect called twice: file c:/Development/electrolysis/ipc/chromium/src | |
/chrome/common/ipc_channel_win.cc, line 175 | |
parent: TEST-INFO | (xpcshell/head.js) | test 2 pending | |
parent: TEST-INFO | (xpcshell/head.js) | test 2 finished | |
parent: TEST-INFO | (xpcshell/head.js) | running event loop | |
### XPCOM_MEM_LEAK_LOG defined -- logging leaks to c:\docume~1\test\locals~1\tem | |
p\tmpgokjo1\runxpcshelltests_leaks_tab_pid2464.log | |
WARNING: NS_ENSURE_TRUE(compMgr) failed: file c:/Development/electrolysis/obj-ff |