)]}'
{
  "commit": "a0d61dcc43875b171cc84bb8cc7025d11542358a",
  "tree": "d28910266e28689589afbcd192be7f96c7746ff8",
  "parents": [
    "11a0d2e11987688f30387790fffed15ecab67634"
  ],
  "author": {
    "name": "Ray Cromwell",
    "email": "cromwellian@google.com",
    "time": "Thu Aug 27 20:24:20 2015 -0700"
  },
  "committer": {
    "name": "Ray Cromwell",
    "email": "cromwellian@google.com",
    "time": "Thu Sep 24 22:02:19 2015 -0700"
  },
  "message": "Setup classes using closure idioms\n\nEliminate defineClass() and inline it\u0027s function\n\nBefore:\nfunction Stub(){}\ndefineClass(typeId, superTypeId, cTM, Stub);\nStub.prototype._.method \u003d blah\nctor1.prototype \u003d ctor2.prototype \u003d Stub.prototype;\n// class literal patched in later via lookup\n\nAfter:\nfunction Stub() {}\nStub.prototype.method \u003d blah\nStub.prototype.castableTypeMap \u003d {...}\nStub.prototype.___clazz \u003d classLiteral;\n\ngoog.inherits(ctor1, Stub);\ngoog.inherits(ctor2, Stub);\n\nWhy do this?\n\n1) defineClass() holds global reference to class proto\nvia global table, making it hard to prune unused protos\n\n2) defineClass() hides how the ctors are chained and what\nhappens to Stub. Closure compiler does not like to see\nctor1.prototype \u003d ctor2.prototype \u003d Stub.prototype. It\ndoes not know how to model this.\n\n3) Closure has specific knowledge that goog.inherits()\nsets up a subtyping relationship.\n\n4) Adds goog.abstractMethod declarations to JInterfaceType\noutput (previously only an empty function literal was supplied)\nto aid a later CL that references these with @implements JsDoc.\n\n3% code size reduction on some apps. When JsDoc annotations\nare added, this rises to 16% on Inbox. Without this CL, but\nwith the JsDoc annotations, there is not much gain at all.\n\n5) Class literals are now all setup directly during\nvtable initialization for regular GWT mode too,\nregular than being deferred by a placeholder and\nsetup in defineClass(). This will lead to a slight\ncode size increase when not post-compiled by Closure,\nbut a subsequent Js pass can recover most of the regression.\n\nChange-Id: I8560fe08601487fbe8ab80d1555e01fc0f1c308f\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a88df952a22b10bf15eed3586f2ad2e33d5efd5f",
      "old_mode": 33188,
      "old_path": "dev/core/src/com/google/gwt/dev/jjs/impl/ClosureJsInteropExportsGenerator.java",
      "new_id": "d55f67e504a58939562bf1889682c29f5b4e990a",
      "new_mode": 33188,
      "new_path": "dev/core/src/com/google/gwt/dev/jjs/impl/ClosureJsInteropExportsGenerator.java"
    },
    {
      "type": "modify",
      "old_id": "f5b640a867bfdd2eca402e0645f4f8369bcf4393",
      "old_mode": 33188,
      "old_path": "dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java",
      "new_id": "5401a4d0418ec6540b05315e3ff9a776f15de156",
      "new_mode": 33188,
      "new_path": "dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java"
    },
    {
      "type": "modify",
      "old_id": "ff2108f65bed22f250a84a2e8ce08e926fe057ec",
      "old_mode": 33188,
      "old_path": "dev/core/src/com/google/gwt/dev/jjs/impl/codesplitter/FragmentExtractor.java",
      "new_id": "b9ba2c9ab3928a12c5e3a7d22ae0fd1e98360510",
      "new_mode": 33188,
      "new_path": "dev/core/src/com/google/gwt/dev/jjs/impl/codesplitter/FragmentExtractor.java"
    },
    {
      "type": "modify",
      "old_id": "73e987343b4e8848ab467b6488ede08dbdd2fcb8",
      "old_mode": 33188,
      "old_path": "dev/core/src/com/google/gwt/dev/js/JsUtils.java",
      "new_id": "fbc8e75eae77486de9a1bb1cee243b9efb6f917e",
      "new_mode": 33188,
      "new_path": "dev/core/src/com/google/gwt/dev/js/JsUtils.java"
    },
    {
      "type": "modify",
      "old_id": "b7b20001143e9c9c56436b5449208ea1326a1f84",
      "old_mode": 33188,
      "old_path": "dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/JavaClassHierarchySetupUtil.java",
      "new_id": "185ac0838c68406a6deb41d16a4c81102631207f",
      "new_mode": 33188,
      "new_path": "dev/core/super/com/google/gwt/dev/jjs/intrinsic/com/google/gwt/lang/JavaClassHierarchySetupUtil.java"
    },
    {
      "type": "modify",
      "old_id": "9e5713a34b341758ca14d736d3226a6406cbf236",
      "old_mode": 33188,
      "old_path": "dev/core/test/com/google/gwt/dev/jjs/JavaAstConstructor.java",
      "new_id": "465d2d9511f0e2e287029c12fb6d49e92b859fb1",
      "new_mode": 33188,
      "new_path": "dev/core/test/com/google/gwt/dev/jjs/JavaAstConstructor.java"
    },
    {
      "type": "modify",
      "old_id": "af1d2205df612e5bce83d55059d440c6827111c7",
      "old_mode": 33188,
      "old_path": "user/src/com/google/gwt/junit/linker/closurehelpers.js",
      "new_id": "8dbf9772999a4d90c14a1ffa2935739d564f803b",
      "new_mode": 33188,
      "new_path": "user/src/com/google/gwt/junit/linker/closurehelpers.js"
    }
  ]
}
