Explicitly change the type of a method with implicit RetBuf to BYREF for
authorLubomir Litchev <lubol@microsoft.com>
Tue, 23 Feb 2016 18:24:21 +0000 (10:24 -0800)
committerLubomir Litchev <lubol@microsoft.com>
Thu, 25 Feb 2016 23:09:35 +0000 (15:09 -0800)
commit9f6baf04de71fd6fb795786181dd872c2e5edbb8
tree58aa9082c627c1c6fadce68bfc417e4ae6809a22
parentbdd5be00414fc53d427a03f515e447f73f4fd5c5
Explicitly change the type of a method with implicit RetBuf to BYREF for
System V.

The System V ABI requires the address implicit RetBuf to be returned in
RAX.
Instead of moving the address of the buffer to RAX in codegenxarch.cpp,
change such methods return type to TYP_BYREF and generate the necessary
code to put the address in RAX.

Added/cleaned some comments.

Fixes issue #3299.
src/jit/codegenxarch.cpp
src/jit/compiler.h
src/jit/importer.cpp