search for: clasp

Displaying 20 results from an estimated 28 matches for "clasp".

Did you mean: class
2017 Nov 06
3
ORC JIT and multithreading
2007 Mar 05
0
5 commits - libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c test/trace
...ec/swfdec_script.c +++ b/libswfdec/swfdec_script.c @@ -1387,7 +1387,7 @@ static JSBool swfdec_action_new_object (JSContext *cx, guint action, const guint8 *data, guint len) { JSStackFrame *fp = cx->fp; - jsval constructor; + jsval constructor, proto; JSObject *object; const JSClass *clasp; guint n_args; @@ -1414,7 +1414,12 @@ swfdec_action_new_object (JSContext *cx, if (JS_GetClass (object) != &js_FunctionClass) goto fail; clasp = ((JSFunction *) JS_GetPrivate (cx, object))->clasp; - object = JS_NewObject (cx, clasp, NULL, NULL); + if (!JS_GetProperty (cx, obj...
2015 Jul 05
2
[LLVMdev] How to run LLVM3.6.1 on OS X (Yosemite, Xcode6.4) OR how to link bitcode generated by OS X clang with LLVM3.6.1
...4 generates a bitcode file but it cannot be loaded into my language that was compiled using LLVM3.6.1. It complains with the following message: Linking app-resources:lib;release;intrinsics_bitcode_boehm.o warning: ignoring debug info with an invalid version (602053001) in /Users/meister/Development/clasp/build/clasp/Contents/Resources/lib/release/intrinsics_bitcode_boehm.o warning: Linking two modules of different target triples: /Users/meister/Development/clasp/build/clasp/Contents/Resources/lib/release/intrinsics_bitcode_boehm.o' is 'x86_64-apple-macosx10.7.0' whereas 'image'...
2007 Jan 16
0
9 commits - libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_cache.c libswfdec/swfdec_cached.c libswfdec/swfdec_cached.h libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_image.c
...s/jsapi.c b/libswfdec/js/jsapi.c index b98e232..e33b846 100644 --- a/libswfdec/js/jsapi.c +++ b/libswfdec/js/jsapi.c @@ -1889,7 +1889,7 @@ JS_FinalizeStub(JSContext *cx, JSObject JS_PUBLIC_API(JSObject *) JS_InitClass(JSContext *cx, JSObject *obj, JSObject *parent_proto, - JSClass *clasp, JSNative constructor, uintN nargs, + const JSClass *clasp, JSNative constructor, uintN nargs, JSPropertySpec *ps, JSFunctionSpec *fs, JSPropertySpec *static_ps, JSFunctionSpec *static_fs) { @@ -1979,7 +1979,7 @@ JS_GetClass(JSObject *obj) #endif JS_PUBL...
2007 Sep 28
1
SwfDec in Windows
...imp__js_ObjectOps' C:/msys/1.0/home/Administrador/swfdec-0.4.3/libswfdec/js/jsapi.c:598: undefined reference to '_imp__js_FunctionClass' The lines are: JS_PUBLIC_API(JSType) JS_TypeOfValue(JSContext *cx, jsval v) { JSType type; JSObject *obj; JSObjectOps *ops; JSClass *clasp; CHECK_REQUEST(cx); if (JSVAL_IS_OBJECT(v)) { /* XXX JSVAL_IS_OBJECT(v) is true for null too! Can we change ECMA? */ obj = JSVAL_TO_OBJECT(v); if (obj && (ops = obj->map->ops, ops == &js_ObjectOps //***ERROR IN THIS LINE***...
2017 Feb 20
2
Inlining with the ORC JIT
...nerated code that is fed, Module by Module, into the ORC JIT? I'd like to add a Module compiled from C++ code into the JIT and then as I add later modules, functions from the first module are inlined in the later ones. I already do this for file compilation/linking in my Common Lisp compiler “Clasp” (github.com/drmeister/clasp <https://urldefense.proofpoint.com/v2/url?u=http-3A__github.com_drmeister_clasp&d=DwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=sSykZW5nIEBIoQEQoyEQF3iTvIwIffdEAf9FkbyVYz0&s=ao0EQZ_k7esDdMap8YjoO52BiKyMRHBv7PG4XJd...
2015 Jul 08
2
[LLVMdev] How to run LLVM3.6.1 on OS X (Yosemite, Xcode6.4) OR how to link bitcode generated by OS X clang with LLVM3.6.1
Thank you. I found a partial answer to the problem (1), namely “how to run Clang compiled with LLVM3.6.1 on OS X Yosemite/Xcode6.4" It’s a combination of -isysroot and -resource-dir I’m using these compiler options: "/Users/meister/Development/externals-clasp/build/release/bin/clang" -v \ -resource-dir "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.1.0" \ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk \ … I say partial...
2015 Feb 16
5
[LLVMdev] What is on the LLVM horizon for truly relocatable JITted code?
Hello everyone, Is fully relocatable/position-independent JITted code on the horizon or currently possible with LLVM? I’ve written a Common Lisp compiler (currently called Clasp: https://github.com/drmeister/clasp) in C++ that uses LLVM as the backend and interoperates with C++. It uses copying garbage collection via the Memory Pool System (MPS) garbage collector by Ravenbrook. This garbage collector is precise on the heap and conservative on the stack. Currently I JIT...
2007 Mar 09
0
17 commits - libswfdec/js libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c
...ec/swfdec_script.c +++ b/libswfdec/swfdec_script.c @@ -1397,9 +1397,8 @@ static JSBool swfdec_action_new_object (JSContext *cx, guint action, const guint8 *data, guint len) { JSStackFrame *fp = cx->fp; - jsval constructor, proto; + jsval constructor; JSObject *object; - const JSClass *clasp; guint n_args; const char *name; @@ -1418,20 +1417,10 @@ swfdec_action_new_object (JSContext *cx, } fp->sp[-1] = constructor; - if (!JSVAL_IS_OBJECT (constructor) || JSVAL_IS_NULL (constructor)) - goto fail; - object = JSVAL_TO_OBJECT (constructor); - if (JS_GetClass (objec...
2007 Mar 11
0
10 commits - libswfdec/js libswfdec/swfdec_js_color.c libswfdec/swfdec_js_connection.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_js_video.c libswfdec/swfdec_js_xml.c libswfdec/swfdec_script.c player/.gitignore
...t_path (void *movieclip); +extern void g_free (void *p); JSBool js_obj_toString(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { - jschar *chars; - size_t nchars; - const char *clazz, *prefix; + const char *name; JSString *str; JSClass *clasp; -#if JS_HAS_INITIALIZERS - if (cx->version == JSVERSION_1_2) - return js_obj_toSource(cx, obj, argc, argv, rval); -#endif - clasp = OBJ_GET_CLASS(cx, obj); - clazz = clasp->name; - /* special case in here (woohoo) */ if (clasp == &js_ArgumentsClass) { - *...
2014 Sep 29
2
[LLVMdev] LLVM Weekly - #39, Sep 29th 2014
...at <http://llvmweekly.org> and pass it on to anyone else you think may be interested. Please send any tips or feedback to <asb at asbradbury.org>, or @llvmweekly or @asbradbury on Twitter. ## News and articles from around the web An implementation of Common Lisp with an LLVM backend, Clasp, [has been announced](http://drmeister.wordpress.com/2014/09/18/announcing-clasp/). There's a lot of work to be done on performance, but development is [very active on Github](https://github.com/drmeister/clasp). A backend for the educational 'y86' instruction set architecture has [bee...
2007 Mar 20
0
9 commits - configure.ac libswfdec/swfdec_bits.c libswfdec/swfdec_debug.c libswfdec/swfdec_js.c libswfdec/swfdec_script.c libswfdec/swfdec_sound.c
...o = cx->fp->sp[-2]; + if (JSVAL_IS_OBJECT (o) && !JSVAL_IS_NULL (o)) { + if (!JS_GetProperty (cx, JSVAL_TO_OBJECT (o), s, &cx->fp->sp[-2])) + return JS_FALSE; +#ifdef SWFDEC_WARN_MISSING_PROPERTIES + if (cx->fp->sp[-2] == JSVAL_VOID) { + const JSClass *clasp = JS_GetClass (JSVAL_TO_OBJECT (o)); + if (clasp != &js_ObjectClass) { + SWFDEC_WARNING ("no variable named %s:%s", clasp->name, s); + } + } +#endif } else { cx->fp->sp[-2] = JSVAL_VOID; } diff-tree e818e899b7bc6d82ab5927c3a7088853efcff83e (from ae406d...
2015 Jan 17
2
[LLVMdev] Assertion: replaceAllUses of value with new value of different type! being thrown all of a sudden
...omeone would know what is going on below. All of a sudden I’m getting this assertion thrown: Assertion failed: (New->getType() == getType() && "replaceAllUses of value with new value of different type!"), function replaceAllUsesWith, file /Users/meister/Development/externals-clasp/llvm36/lib/IR/Value.cpp, line 345. It’s happening when DIBuilder::finalize is being called at the end of a source file compilation. Here’s the most illuminating debugging information I could pull out of a frame: (lldb) frame #6: 0x0000000103a67c3e clasp_boehm_d`llvm::DIDescriptor::replaceAllUs...
2018 Nov 05
2
ORC JIT api, object files and stackmaps
Hi Christian Your use case seems to have similar requirements as remote JITing in ORC. So far I haven't used that part myself and I am sure Lang can tell you much more about it. However, this comment on the RemoteObjectClientLayer class sounds promising for your questions (1) and (2): /// Sending relocatable objects to the server (rather than fully relocated /// bits) allows JIT'd code
2015 Jan 19
2
[LLVMdev] Assertion: replaceAllUses of value with new value of different type! being thrown all of a sudden
...;> >> >> All of a sudden I’m getting this assertion thrown: >> >> Assertion failed: (New->getType() == getType() && "replaceAllUses of value with new value of different type!"), function replaceAllUsesWith, file /Users/meister/Development/externals-clasp/llvm36/lib/IR/Value.cpp, line 345. >> >> It’s happening when DIBuilder::finalize is being called at the end of a source file compilation. >> >> Here’s the most illuminating debugging information I could pull out of a frame: >> >> >> (lldb) >> fra...
2007 Jun 27
0
Branch 'as' - 16 commits - configure.ac libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_script_function.c
...-} - -void -swfdec_js_eval_set (JSContext *cx, JSObject *obj, const char *str, - jsval val) -{ - g_return_if_fail (cx != NULL); - g_return_if_fail (str != NULL); - - swfdec_js_eval_internal (cx, obj, str, &val, TRUE); -} - -/** - * swfdec_js_construct_object: - * @cx: the #JSContext - * @clasp: class to use for constructing the object - * @constructor: a jsval possibly referring to a constructor - * @newp: pointer to variable that will take the created object or NULL on - * failure - * - * Constructs a JSObject for the given @constructor, if it really is a - * constructor. - * &...
2007 Feb 19
0
22 commits - libswfdec/js libswfdec/swfdec_debugger.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_script.c
...string diff --git a/libswfdec/js/jsobj.c b/libswfdec/js/jsobj.c index 396c724..860e38c 100644 --- a/libswfdec/js/jsobj.c +++ b/libswfdec/js/jsobj.c @@ -913,13 +913,21 @@ js_obj_toString(JSContext *cx, JSObject size_t nchars; const char *clazz, *prefix; JSString *str; + JSClass *clasp; #if JS_HAS_INITIALIZERS if (cx->version == JSVERSION_1_2) return js_obj_toSource(cx, obj, argc, argv, rval); #endif - clazz = OBJ_GET_CLASS(cx, obj)->name; + clasp = OBJ_GET_CLASS(cx, obj); + clazz = clasp->name; + /* special case in here (woohoo) */ + i...
2004 Aug 23
0
you won't be disa~ppointed!
...p,this site came to me and saved me from terrible ---Linda WT Syr Juox http://p.jn.sublunary1132nx.com/f74m/ Experience had given him implicit confidence in the powers of the electrical instrument whose unseen forces carried him so swiftly and surely, and while the tiny, watch-like machine was clasped to his wrist he felt himself to be absolutely safeHaving slipped away from the Turk and attained a fair altitude, he set the indicator at zero and paused long enough to consult his map and decide what direction it was best for him to take nidificar 17 ovillar 03 trienalzumeldebajo
2007 Mar 13
0
4 commits - test/swfscript.c
...dec_js_is_movieclip (JSContext *cx, JSObject *obj); extern char *swfdec_movie_get_path (void *movieclip); extern void g_free (void *p); JSBool @@ -921,7 +921,7 @@ js_obj_toString(JSContext *cx, JSObject *rval = STRING_TO_JSVAL(cx->runtime->emptyString); return JS_TRUE; } - if (clasp == &movieclip_class) { + if (swfdec_js_is_movieclip (cx, obj)) { void *p = JS_GetPrivate (cx, obj); if (p) { char *path = swfdec_movie_get_path (p);
2007 Jan 29
0
Branch 'interpreter' - 18 commits - libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_sound.c libswfdec/swfdec_pattern.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_script.c
...POOLS ***/ @@ -1063,6 +1064,47 @@ swfdec_action_stop_sounds (JSContext *cx return JS_TRUE; } +static JSBool +swfdec_action_new_object (JSContext *cx, guint action, const guint8 *data, guint len) +{ + JSStackFrame *fp = cx->fp; + jsval constructor; + JSObject *object; + const JSClass *clasp; + guint n_args; + + constructor = fp->sp[-1]; + if (!swfdec_eval_jsval (cx, NULL, &constructor)) + return JS_FALSE; + if (!JS_ValueToECMAUint32 (cx, fp->sp[-2], &n_args)) + return JS_FALSE; + if ((guint) (fp->sp - fp->spbase) < n_args + 2) { + SWFDEC_ERROR (&qu...