Displaying 5 results from an estimated 5 matches for "mytrac".
Did you mean:
mytrace
2007 Aug 17
0
2 commits - libswfdec/swfdec_as_array.c test/trace
...[]
+-1
[1, b, c, undefined, ]
3.4
[1, b, c, undefined, ]
diff --git a/test/trace/array2.as b/test/trace/array2.as
index bea9179..237a156 100644
--- a/test/trace/array2.as
+++ b/test/trace/array2.as
@@ -100,6 +100,11 @@ a = new Array (1, "b", "c", 4); // nega
a.length = -4;
mytrace (a);
mytrace (a.length);
+a = new Array (); // setting negative variable while negative length
+a.length = -4;
+a[-2] = "x";
+mytrace (a);
+mytrace (a.length);
a = new Array (1, "b", "c", 4); // floating point values
a.length = 3.4;
mytrace (a);
@@ -116,7 +121,...
2007 Aug 17
0
Branch 'vivi' - 9 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c
...[]
+-1
[1, b, c, undefined, ]
3.4
[1, b, c, undefined, ]
diff --git a/test/trace/array2.as b/test/trace/array2.as
index bea9179..237a156 100644
--- a/test/trace/array2.as
+++ b/test/trace/array2.as
@@ -100,6 +100,11 @@ a = new Array (1, "b", "c", 4); // nega
a.length = -4;
mytrace (a);
mytrace (a.length);
+a = new Array (); // setting negative variable while negative length
+a.length = -4;
+a[-2] = "x";
+mytrace (a);
+mytrace (a.length);
a = new Array (1, "b", "c", 4); // floating point values
a.length = 3.4;
mytrace (a);
@@ -116,7 +121,...
2010 Jul 16
1
[LLVMdev] Strange exception code behavior: insertion of trace instructions makes result incorrect
...;& as -o my.o my.s && g++ -o my my.o && my':
TRACE num=20
TRACE num=22
TRACE num=27
TRACE num=29
TRACE num=31
TRACE num=33
TRACE num=58
TRACE num=60
TRACE num=62
TRACE num=64
TRACE num=66
TRACE num=70
TRACE num=72
TRACE num=134515344
Segmentation fault
Removing all calls to mytrace makes behavior correct.
Why I can't insert trace instructions? What is the state that is saved
between commands that causes such crashes?
Also only leaving one 'mytrace ' instruction before or after
llvm.eh.exception near the label lpad1 already causes the crash.
I think something...
2007 Dec 20
0
13 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c test/trace
...[";
for (i = 0; i < arr.length; i++) {
- if (arr[i] != null && arr[i].constructor == Array) {
+ if (arr[i] instanceOf Array) {
str = str + pretty (arr[i], lvl + 1);
} else {
str = str + arr[i];
@@ -21,7 +21,7 @@ function pretty (arr, lvl) {
}
function mytrace (arr) {
- if (arr != null && arr.constructor == Array) {
+ if (arr instanceOf Array) {
trace (pretty (arr, 0));
} else {
trace (arr);
@@ -407,6 +407,8 @@ mytrace (a);
mytrace ("# Special cases");
+a = new Array (1, "b", "c", 4); // no argu...
2007 Sep 04
0
4 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_video_movie_as.c test/trace
...(fake.length + ": " + fake.join ("
trace (fake.sort ());
trace (fake.length + ": " + fake.join (":"));
+fake = new Object();
+fake.sort = Array.prototype.sort;
+fake[0] = 4;
+fake[1] = 3;
+trace (fake.sort ());
+trace (fake[0] + ", " + fake[1]);
+
mytrace ("## Done");
loadMovie ("FSCommand:quit", "");
diff-tree 2c6e1bac0a0f2defa01a80e2c8b1316bfa9b60ec (from 20f8453d82adc963b2afa898f921d94d2206f49c)
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Tue Sep 4 10:29:32 2007 +0300
Re-enable Array.sort for...