Skip to content
This repository has been archived by the owner on Dec 9, 2017. It is now read-only.

Commit

Permalink
partly fixing #43
Browse files Browse the repository at this point in the history
  • Loading branch information
ksen007 committed Feb 8, 2014
1 parent 4427e6f commit cff5bbb
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 6 deletions.
Binary file modified jout/production/jalangijava/AndFormula.class
Binary file not shown.
Binary file modified jout/production/jalangijava/FalseFormula.class
Binary file not shown.
Binary file modified jout/production/jalangijava/Formula.class
Binary file not shown.
Binary file modified jout/production/jalangijava/OrFormula.class
Binary file not shown.
Binary file modified jout/production/jalangijava/RegexpEncoder.class
Binary file not shown.
Binary file modified jout/production/jalangijava/RelConstant.class
Binary file not shown.
Binary file modified jout/production/jalangijava/TrueFormula.class
Binary file not shown.
7 changes: 4 additions & 3 deletions scripts/histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
iids = {}
for line in ins:
record = json.loads(line)
if record[2] in iids:
iids[record[2]] = iids[record[2]] + 1
key = str(record[2])+":"+str(record[4])
if key in iids:
iids[key] = iids[key] + 1
else:
iids[record[2]] = 1
iids[key] = 1
count = count + 1
ins.close()
stats = sorted(iids.iteritems(), key=operator.itemgetter(1), reverse=True)
Expand Down
18 changes: 15 additions & 3 deletions src/js/analysis.js
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,12 @@
}
}
}
val[SPECIAL_PROP] = {};
if (val.__proto__ && val.__proto__[SPECIAL_PROP])
val[SPECIAL_PROP] = Object.create(val.__proto__[SPECIAL_PROP]);
else
val[SPECIAL_PROP] = {};

// val[SPECIAL_PROP] = Object.create(val[SPECIAL_PROP]);
val[SPECIAL_PROP][SPECIAL_PROP] = objectId;
// console.log("oid:"+objectId);
objectId = objectId + 2;
Expand Down Expand Up @@ -1286,7 +1291,11 @@
writable:true
});
}
val[SPECIAL_PROP] = {};
if (val.__proto__ && val.__proto__[SPECIAL_PROP])
val[SPECIAL_PROP] = Object.create(val.__proto__[SPECIAL_PROP]);
else
val[SPECIAL_PROP] = {};
//val[SPECIAL_PROP] = Object.create(val[SPECIAL_PROP]);
val[SPECIAL_PROP][SPECIAL_PROP] = id = literalId;
literalId = literalId + 2;
// changes due to getter or setter method
Expand Down Expand Up @@ -1352,7 +1361,10 @@
writable:true
});
}
obj[SPECIAL_PROP] = {};
if (obj.__proto__ && obj.__proto__[SPECIAL_PROP])
obj[SPECIAL_PROP] = Object.create(obj.__proto__[SPECIAL_PROP]);
else
obj[SPECIAL_PROP] = {};
obj[SPECIAL_PROP][SPECIAL_PROP] = recordedValue;
objectMap[recordedValue] = ((obj === replayValue) ? oldReplayValue : obj);
}
Expand Down
14 changes: 14 additions & 0 deletions tests/unit/proto_prop_lookup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
function C() {
this.x = 1;
}

C.prototype.foo = function () {
this.x = 2;
}

var o = new C();
o.foo();
o.foo();
o.foo();
o.foo();
o.foo();

0 comments on commit cff5bbb

Please sign in to comment.