Fix fast API call for MinGW-w64
authorulan@chromium.org <ulan@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 16 Apr 2012 09:22:12 +0000 (09:22 +0000)
committerulan@chromium.org <ulan@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 16 Apr 2012 09:22:12 +0000 (09:22 +0000)
commit267879e92c34feb7037145e4ebe3c48ac595cb96
treea04537963a212778612df2f26f4a16acbbb42ff0
parent68e680bf90bda23e9ffa2cb78152885632def127
Fix fast API call for MinGW-w64

MinGW-w64 uses the rcx register for the first argument. Unlike MSVC, it does not require preparing a slot for the result handle on the stack and putting a pointer to it in the rcx register.

BUGS=v8:2026
TEST=cctest/test-api

Review URL: https://chromiumcodereview.appspot.com/9959050
Patch from Jonathan Liu <net147@gmail.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11325 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/x64/macro-assembler-x64.cc
src/x64/stub-cache-x64.cc