816bf5af2e
On arm64, in Dart code, R18(SP) is the stack pointer. In C++ code, R31(CSP) is the stack pointer. The profiler must choose the right one when performing its bounds checks. This change also fixes a bug in the InvokeDartCode stub on arm64 so that CSP is set to the Isolate's stack limit immediately, rather than a bit later. When it was set a bit later, if a profiler interrupt came in in the interim, the stack would be smashed. R=johnmccutchan@google.com Review URL: https://codereview.chromium.org//583683002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40502 260f80e4-7a28-3924-810f-c04153c831b5