Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: compiled/bindings.ipp

Issue 29384673: Issue 4991 - [emscripten] Update to Emscripten 1.37.3 (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Created March 15, 2017, 10:59 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« compile ('K') | « compile ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/bindings.ipp
===================================================================
--- a/compiled/bindings.ipp
+++ b/compiled/bindings.ipp
@@ -498,17 +498,17 @@ namespace bindings_internal
var length = 0;
var buffer = 0;
if (str)
{
buffer = Runtime.stackAlloc(str.length * 2);
length = copyString(str, buffer);
}
- var result = Module.Runtime.stackAlloc(sizeofString);
+ var result = Runtime.stackAlloc(sizeofString);
Wladimir Palant 2017/03/15 11:02:48 We don't need to call this via Module, and above w
Module._InitString(result, buffer, length);
return result;
}
function readString(str)
{
var length = Module._GetStringLength(str);
var pointer = Module._GetStringData(str) >> 1;
@@ -523,17 +523,18 @@ namespace bindings_internal
};
if (superclass)
result.prototype = Object.create(superclass.prototype);
result.prototype.delete = function()
{
Module._ReleaseRef(this._pointer + ref_counted_offset);
};
return result;
- })");
+ }
+ )");
Wladimir Palant 2017/03/15 11:02:48 Surprisingly, this is the only change that was rea
sergei 2017/03/20 17:41:49 Should spaces at the beginning of ` )");` be re
sergei 2017/03/20 17:41:49 Actually the whole last line is removed. I think i
Wladimir Palant 2017/03/21 10:18:59 Luckily, we don't care about the resulting code be
}
void printClass(const ClassInfo& cls)
{
DifferentiatorInfo differentiator = cls.subclass_differentiator;
if (differentiator.offset != SIZE_MAX)
{
printf("var %s_mapping = \n", cls.name.c_str());
« compile ('K') | « compile ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld