Displaying 20 results from an estimated 33 matches for "callfunction".
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
...fdec_js_xml.c | 14 ------
libswfdec/swfdec_script.c | 31 ++++++++------
player/.gitignore | 3 +
test/.gitignore | 3 +
test/trace/Makefile.am | 9 +++-
test/trace/callfunction-stack.as | 44 ++++++++++++++++++++
test/trace/callfunction-stack.swf |binary
test/trace/callfunction-stack.swf.trace | 14 ++++++
test/trace/empty-stack.as | 7 +++
test/trace/empty-stack.swf |binary
test/trace/empty-st...
2007 Nov 15
0
4 commits - libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c test/trace
....swf and b/test/trace/arguments-5.swf differ
diff --git a/test/trace/arguments-5.swf.trace b/test/trace/arguments-5.swf.trace
index 02fbeb4..7e8718f 100644
--- a/test/trace/arguments-5.swf.trace
+++ b/test/trace/arguments-5.swf.trace
@@ -2,23 +2,49 @@ Global:
arguments:
caller:
callee:
-Child CallFunction:
+Child:
arguments:
caller: null
-callee: func
-Child CallMethod:
+callee: child
+Run:
arguments:
caller: null
-callee: func
+callee: run
+Child CallFunction:
+arguments:
+caller: run
+callee: child
+Child CallMethod:
+arguments:
+caller: run
+callee: child
+
+toString:
+arguments:
+caller...
2011 Nov 06
3
[LLVMdev] LLVM: to catch 'unwind' instruction from calling C++ code
Hi!
I have a little problem using LLVM and will be happy to get a solution. I
need to handle in C++ code an uncaught unwind instruction while calling JIT
(now I get segfault). I mean something like nonexistent
ExecutionEngine::invokeFunction instead of callFunction. Setting
llvm::JITExceptionHandling to true and enclosing the JIT-call within
try/catch block does not help here, because there is no C++ style exception
thrown, but a simple unwind instruction. Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <h...
2007 Nov 14
0
4 commits - libswfdec/swfdec_as_interpret.c test/trace
...files /dev/null and b/test/trace/super-existance-5.swf differ
diff --git a/test/trace/super-existance-5.swf.trace b/test/trace/super-existance-5.swf.trace
new file mode 100644
index 0000000..57f41ab
--- /dev/null
+++ b/test/trace/super-existance-5.swf.trace
@@ -0,0 +1,19 @@
+undefined
+>>> CallFunction bar ()
+bar
+undefined
+calling last function's super object:
+>>> CallMethod bar ()
+calling last function's super object:
+>>> this.bar ()
+bar
+undefined
+calling last function's super object:
+>>> new bar ()
+bar
+undefined
+calling last function's...
2011 Nov 07
0
[LLVMdev] LLVM: to catch 'unwind' instruction from calling C++ code
...oblem using LLVM and will be happy to get a solution.
>> I need
>> > to handle in C++ code an uncaught unwind instruction while calling JIT
>> (now I
>> > get segfault). I mean something like nonexistent
>> ExecutionEngine::invokeFunction
>> > instead of callFunction. Setting llvm::JITExceptionHandling to true
>> > and enclosing the JIT-call within try/catch block does not help here,
>> because
>> > there is no C++ style exception thrown, but a simple unwind
>> instruction. Thanks
>> > in advance.
>> >
>> &g...
2007 Aug 17
0
Branch 'vivi' - 13 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_debugger.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_script_function.c test/trace vivified/core vivified/ui
...;Trace/>
+ </actions>
+ </DeclareFunction2>
+ <PushData>
+ <items>
+ <StackInteger value="0"/>
+ <StackString value="foo"/>
+ </items>
+ </PushData>
+ <CallFunction/>
+ <Pop/>
+ <DeclareFunction2 name="foo" argc="0" regc="1">
+ <actions>
+ <PushData>
+ <items>
+ <StackString value="hi"/>
+ </items>
+ </PushData>
+ <S...
2009 Jun 29
2
[LLVMdev] Instruction Combining Pass *Breaking* Struct Reads?
...16 ; <i8*> [#uses=1]
%3 = alloca i8, i32 12 ; <i8*> [#uses=1]
%4 = call i8* @"Environment::extend"(i8* inttoptr (i32 173374432 to i8*))
; <i8*> [#uses=3]
%5 = call i8* @"ArrayObj::create"(i32 0) ; <i8*> [#uses=1]
%6 = call i8* @"Interpreter::callFunction"(i8* inttoptr (i32 147457088 to
i8*), i8* %5, i32 0) ; <i8*> [#uses=0]
%7 = bitcast i8* %2 to { i64, i64 }* ; <{ i64, i64 }*> [#uses=3]
%8 = bitcast i8* %3 to { i8*, i64 }* ; <{ i8*, i64 }*> [#uses=3]
%9 = getelementptr { i64, i64 }* %7, i32 0, i32 0 ; <i64*> [#u...
2007 Jul 30
0
10 commits - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_super.c libswfdec/swfdec_video_movie_as.c test/trace
...;Trace/>
+ </actions>
+ </DeclareFunction2>
+ <PushData>
+ <items>
+ <StackInteger value="0"/>
+ <StackString value="foo"/>
+ </items>
+ </PushData>
+ <CallFunction/>
+ <Pop/>
+ <GetURL url="fscommand:quit" target=""/>
+ </actions>
+ </DoAction>
+ <ShowFrame/>
+ <End/>
+ </tags>
+ </Header>
+</swf>
diff --git a/test/trace/definefunction2-overwrite.swf b/test/tra...
2014 Aug 04
3
[LLVMdev] LLVM AllocaInst and StoreInst
Hi,
I am trying to write a simple interpreter.
I am trying to generate LLVM IR for assignment operation. The code for the
generation part looks like this
llvm::Value* codeGenSymTab(llvm::LLVMContext& context) {
> printf("\n CodeGen SymTab \n");
> Value *num = ConstantInt::get(Type::getInt64Ty(context), aTable.value,
> true);
> Value *alloc = new
2007 May 22
0
Branch 'as' - 9 commits - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_script_function.c
...rg>
Date: Tue May 22 11:44:28 2007 +0200
add tests for CallMethod with undefined or empty function name
diff --git a/test/trace/Makefile.am b/test/trace/Makefile.am
index e101ba5..582c598 100644
--- a/test/trace/Makefile.am
+++ b/test/trace/Makefile.am
@@ -20,6 +20,13 @@ EXTRA_DIST = \
callfunction-stack.as \
callfunction-stack.swf \
callfunction-stack.swf.trace \
+ callmethod-undefined-this-5.swf \
+ callmethod-undefined-this-5.swf.trace \
+ callmethod-undefined-this-6.swf \
+ callmethod-undefined-this-6.swf.trace \
+ callmethod-undefined-this-7.swf \
+ callmethod-undefined-this-7.swf.tr...
2013 Feb 20
0
[LLVMdev] LLVM Interpreter & QSort
...79C: ffi_call (in /usr/local/lib/libffi.so.6.0.1)
==9222== by 0x8604AE:
llvm::Interpreter::callExternalFunction(llvm::Function*,
std::vector<llvm::GenericValue,
std::allocator<llvm::GenericValue> > const&) (in
/usr/local/bin/lli)
==9222== by 0x85B49A:
llvm::Interpreter::callFunction(llvm::Function*,
std::vector<llvm::GenericValue,
std::allocator<llvm::GenericValue> > const&) (in
/usr/local/bin/lli)
==9222== by 0x85B952: llvm::Interpreter::visitCallSite(llvm::CallSite) (in /usr/local/bin/lli)
==9222== by 0x85D638: ??? (in /usr/local/bin/lli)
==9222==...
2013 Feb 20
0
[LLVMdev] LLVM Interpreter & Qsort
...05479C: ffi_call (in /usr/local/lib/libffi.so.6.0.1)
==9222== by 0x8604AE:
llvm::Interpreter::callExternalFunction(llvm::Function*,
std::vector<llvm::GenericValue, std::allocator<llvm::GenericValue> >
const&) (in /usr/local/bin/lli)
==9222== by 0x85B49A: llvm::Interpreter::callFunction(llvm::Function*,
std::vector<llvm::GenericValue, std::allocator<llvm::GenericValue> >
const&) (in /usr/local/bin/lli)
==9222== by 0x85B952: llvm::Interpreter::visitCallSite(llvm::CallSite)
(in /usr/local/bin/lli)
==9222== by 0x85D638: ??? (in /usr/local/bin/lli)
==9222==...
2007 Apr 27
0
Changes to 'refs/tags/0.4.3'
...>script is accessed unconditionally
check !JSVAL_IS_NULL in all JSVAL_IS_OBJECT checks
fix SwfdecScript reference handling
implement DefineFunction
return "[type Function]" from function.toString()
create a call object for calls to SWF code
implement CallFunction, BitRShift, BitLShift and BitURShift
add 2 tests for DefineFunction
add swfdec_movie_get_path
implement NextFrame, PreviousFrame, ToInteger, TargetPath, GotoLabel, GotoFrame2
add test for Color constructor
make eval (obj, "") return obj and not undefined...
2007 Apr 27
0
Changes to 'refs/tags/0.4.4'
...>script is accessed unconditionally
check !JSVAL_IS_NULL in all JSVAL_IS_OBJECT checks
fix SwfdecScript reference handling
implement DefineFunction
return "[type Function]" from function.toString()
create a call object for calls to SWF code
implement CallFunction, BitRShift, BitLShift and BitURShift
add 2 tests for DefineFunction
add swfdec_movie_get_path
implement NextFrame, PreviousFrame, ToInteger, TargetPath, GotoLabel, GotoFrame2
add test for Color constructor
make eval (obj, "") return obj and not undefined...
2007 Jan 31
0
Branch 'interpreter' - 3 commits - libswfdec/js libswfdec/swfdec_script.c
...quot;, NULL }, //, 2, 0, { NULL, NULL, swfdec_action_define_local, swfdec_action_define_local, swfdec_action_define_local } },
+ [0x3c] = { "DefineLocal", NULL, 2, 0, { NULL, NULL, swfdec_action_define_local, swfdec_action_define_local, swfdec_action_define_local } },
[0x3d] = { "CallFunction", NULL, -1, 1, { NULL, NULL, swfdec_action_call_function, swfdec_action_call_function, swfdec_action_call_function } },
- [0x3e] = { "Return", NULL },
+ [0x3e] = { "Return", NULL, 1, 0, { NULL, NULL, swfdec_action_return, swfdec_action_return, swfdec_action_return } },...
2007 Jun 28
0
Branch 'as' - 4 commits - libswfdec/swfdec_debugger.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c test/image
...<items>
+ <StackInteger value="1"/>
+ <StackInteger value="1"/>
+ <StackDictionaryLookup index="0"/>
+ </items>
+ </PushData>
+ <CallFunction/>
+ <Pop/>
+ <EndAction/>
+ </actions>
+ </DoAction>
+ <ShowFrame/>
+ <End/>
+ </tags>
+ </DefineSprite>
+ <PlaceObject2 replace="0" depth="1" o...
2007 Feb 16
0
11 commits - libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_script.h test/.gitignore test/trace
...;sp[-1]);
+ }
+}
+
/*** PRINT FUNCTIONS ***/
static char *
@@ -2020,7 +2058,7 @@ static const SwfdecActionSpec actions[25
[0x3c] = { "DefineLocal", NULL, 2, 0, { NULL, NULL, swfdec_action_define_local, swfdec_action_define_local, swfdec_action_define_local } },
[0x3d] = { "CallFunction", NULL, -1, 1, { NULL, NULL, swfdec_action_call_function, swfdec_action_call_function, swfdec_action_call_function } },
[0x3e] = { "Return", NULL, 1, 0, { NULL, NULL, swfdec_action_return, swfdec_action_return, swfdec_action_return } },
- [0x3f] = { "Modulo", NULL },
+...
2007 May 29
0
Branch 'as' - 6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_js_xml.c libswfdec/swfdec_tag.c player/swfplay.c
...L, swfdec_action_delete2, swfdec_action_delete2, swfdec_action_delete2 } },
[SWFDEC_AS_ACTION_DEFINE_LOCAL] = { "DefineLocal", NULL, 2, 0, { NULL, NULL, swfdec_action_define_local, swfdec_action_define_local, swfdec_action_define_local } },
[SWFDEC_AS_ACTION_CALL_FUNCTION] = { "CallFunction", NULL, -1, 1, { NULL, NULL, swfdec_action_call_function, swfdec_action_call_function, swfdec_action_call_function } },
[SWFDEC_AS_ACTION_RETURN] = { "Return", NULL, 1, 0, { NULL, NULL, swfdec_action_return, swfdec_action_return, swfdec_action_return } },
diff-tree 91a151966efb877...
2007 Jun 08
0
Changes to 'refs/tags/0.4.2'
...>script is accessed unconditionally
check !JSVAL_IS_NULL in all JSVAL_IS_OBJECT checks
fix SwfdecScript reference handling
implement DefineFunction
return "[type Function]" from function.toString()
create a call object for calls to SWF code
implement CallFunction, BitRShift, BitLShift and BitURShift
add 2 tests for DefineFunction
add swfdec_movie_get_path
implement NextFrame, PreviousFrame, ToInteger, TargetPath, GotoLabel, GotoFrame2
add test for Color constructor
make eval (obj, "") return obj and not undefined...
2007 Jan 31
0
Branch 'interpreter' - 20 commits - autogen.sh configure.ac libswfdec/js libswfdec/swfdec_debug.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_script.c
...00000..59c46d4
--- /dev/null
+++ b/test/trace/function2.swf.trace
@@ -0,0 +1,2 @@
+[type Function]
+3
diff-tree ae5cb38d44ea9dabd46c38fd5231ef3afcfd86ac (from e2aa7731c273e897af818cadf20d5bb923d8c01e)
Author: Benjamin Otte <otte@gnome.org>
Date: Wed Jan 31 10:30:41 2007 +0100
implement CallFunction, BitRShift, BitLShift and BitURShift
includes some fixes like implementing the function with name case
diff --git a/libswfdec/swfdec_script.c b/libswfdec/swfdec_script.c
index c398e62..b172ec6 100644
--- a/libswfdec/swfdec_script.c
+++ b/libswfdec/swfdec_script.c
@@ -387,6 +387,33 @@ swfd...