)]}'
{
  "commit": "4ea7aa7cf3755533634904d934c89f93d461d642",
  "tree": "c2bbd74b1f9f4d4e5b131b0afb881039b5818722",
  "parents": [
    "24f7d89a73b7bd77127a56e8a8552c48278d251b"
  ],
  "author": {
    "name": "Cherry Zhang",
    "email": "cherryyz@google.com",
    "time": "Tue Jun 25 14:48:04 2019 -0400"
  },
  "committer": {
    "name": "Cherry Zhang",
    "email": "cherryyz@google.com",
    "time": "Wed Jun 26 16:01:47 2019 +0000"
  },
  "message": "cmd/compile, runtime: use R20, R21 in ARM64\u0027s Duff\u0027s devices\n\nCurrently we use R16 and R17 for ARM64\u0027s Duff\u0027s devices.\nAccording to ARM64 ABI, R16 and R17 can be used by the (external)\nlinker as scratch registers in trampolines. So don\u0027t use these\nregisters to pass information across functions.\n\nIt seems unlikely that calling Duff\u0027s devices would need a\ntrampoline in normal cases. But it could happen if the call\ntarget is out of the 128 MB direct jump limit.\n\nThe choice of R20 and R21 is kind of arbitrary. The register\nallocator allocates from low-numbered registers. High numbered\nregisters are chosen so it is unlikely to hold a live value and\nforces a spill.\n\nFixes #32773.\n\nChange-Id: Id22d555b5afeadd4efcf62797d1580d641c39218\nReviewed-on: https://go-review.googlesource.com/c/go/+/183842\nRun-TryBot: Cherry Zhang \u003ccherryyz@google.com\u003e\nReviewed-by: Keith Randall \u003ckhr@golang.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "9d8fe53cfdc87eddbf4430517456ac2fb64b29fc",
      "old_mode": 33188,
      "old_path": "src/cmd/compile/internal/arm64/ggen.go",
      "new_id": "2f925656bc15d088883218fefcacf6c70b1220ff",
      "new_mode": 33188,
      "new_path": "src/cmd/compile/internal/arm64/ggen.go"
    },
    {
      "type": "modify",
      "old_id": "fc7a60e63eef2225af74e973e4594816403620d9",
      "old_mode": 33188,
      "old_path": "src/cmd/compile/internal/arm64/ssa.go",
      "new_id": "f13bd71f7ae979ba90fef1c21aae6856dedff647",
      "new_mode": 33188,
      "new_path": "src/cmd/compile/internal/arm64/ssa.go"
    },
    {
      "type": "modify",
      "old_id": "a0c8b060c759315de4ef2cfe65e8dff7972685ca",
      "old_mode": 33188,
      "old_path": "src/cmd/compile/internal/ssa/gen/ARM64Ops.go",
      "new_id": "d4de904a24b0f32f563cf5ed04baf9dc5ab317a4",
      "new_mode": 33188,
      "new_path": "src/cmd/compile/internal/ssa/gen/ARM64Ops.go"
    },
    {
      "type": "modify",
      "old_id": "8e701cdd9f35d833fb0a645fccfbf2e581f34c07",
      "old_mode": 33188,
      "old_path": "src/cmd/compile/internal/ssa/opGen.go",
      "new_id": "00e49c97b7ba6622d45715e3d20f39104790066d",
      "new_mode": 33188,
      "new_path": "src/cmd/compile/internal/ssa/opGen.go"
    },
    {
      "type": "modify",
      "old_id": "944eab19556ad92f1453693a0027a0179a544ede",
      "old_mode": 33188,
      "old_path": "src/cmd/internal/obj/arm64/a.out.go",
      "new_id": "4379f010ff33c03abc8d4c243149a2c9133dd6f7",
      "new_mode": 33188,
      "new_path": "src/cmd/internal/obj/arm64/a.out.go"
    },
    {
      "type": "modify",
      "old_id": "3739c3945a8dd400d7cd06404bb12a0ffd2d5315",
      "old_mode": 33188,
      "old_path": "src/runtime/duff_arm64.s",
      "new_id": "128b076af9db658b41847080c5fa72e35d7eecc6",
      "new_mode": 33188,
      "new_path": "src/runtime/duff_arm64.s"
    },
    {
      "type": "modify",
      "old_id": "b7c7e2689cfd73fa083414118551160214e33694",
      "old_mode": 33188,
      "old_path": "src/runtime/mkduff.go",
      "new_id": "b6fe701497ad8f1e161c27563c93c16d0e07ba03",
      "new_mode": 33188,
      "new_path": "src/runtime/mkduff.go"
    }
  ]
}
