Fixing warning.

This commit is contained in:
Ben Vanik 2014-01-02 23:39:53 -08:00
parent 73d934b37b
commit 99c200fda5
2 changed files with 4 additions and 1 deletions

View File

@ -232,7 +232,7 @@ void X64CodeChunk::AddTableEntry(uint8_t* code, size_t code_size) {
auto& fn_entry = fn_table[fn_table_count++]; auto& fn_entry = fn_table[fn_table_count++];
fn_entry.BeginAddress = (DWORD)(code - buffer); fn_entry.BeginAddress = (DWORD)(code - buffer);
fn_entry.EndAddress = (DWORD)(fn_entry.BeginAddress + code_size); fn_entry.EndAddress = (DWORD)(fn_entry.BeginAddress + code_size);
fn_entry.UnwindData = unwind_info_offset; fn_entry.UnwindData = (DWORD)unwind_info_offset;
// Notify the function table that it has new entries. // Notify the function table that it has new entries.
RtlGrowFunctionTable(fn_table_handle, fn_table_count); RtlGrowFunctionTable(fn_table_handle, fn_table_count);

View File

@ -109,6 +109,9 @@ int XbyakGenerator::Emit(LIRBuilder* builder) {
// RBX, RBP, RDI, RSI, RSP, R12, R13, R14, R15 // RBX, RBP, RDI, RSI, RSP, R12, R13, R14, R15
// Only want to do this if we actually use them, though, otherwise // Only want to do this if we actually use them, though, otherwise
// it just adds overhead. // it just adds overhead.
// IMPORTANT: any changes to the prolog must be kept in sync with
// X64CodeCache, which dynamically generates exception information.
// Adding or changing anything here must be matched!
const size_t stack_size = 16; const size_t stack_size = 16;
sub(rsp, stack_size); sub(rsp, stack_size);