Better asserts/checks around bad function addresses.
This commit is contained in:
@@ -106,6 +106,8 @@ int X64Emitter::PrepareFunction(FunctionSymbol* symbol) {
|
||||
XESUCCEED();
|
||||
}
|
||||
|
||||
XEASSERT(symbol->type != FunctionSymbol::Unknown);
|
||||
|
||||
// Create the custom redirector function.
|
||||
// This function will jump to the on-demand compilation routine to
|
||||
// generate the real function as required. Afterwards, it will be
|
||||
@@ -592,6 +594,10 @@ void X64Emitter::GenerateBasicBlock(FunctionBlock* block) {
|
||||
}
|
||||
}
|
||||
|
||||
if (FLAGS_log_codegen) {
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
TraceInstruction(i);
|
||||
|
||||
if (!i.type) {
|
||||
|
||||
Reference in New Issue
Block a user