Marking branches/calls as volatile.
This commit is contained in:
parent
646b32ad4f
commit
a53ee330ce
|
@ -321,6 +321,7 @@ bool RegisterAllocationPass::TryAllocateRegister(Value* value) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RegisterAllocationPass::SpillOneRegister(HIRBuilder* builder,
|
bool RegisterAllocationPass::SpillOneRegister(HIRBuilder* builder,
|
||||||
|
Block* block,
|
||||||
TypeName required_type) {
|
TypeName required_type) {
|
||||||
// Get the set that we will be picking from.
|
// Get the set that we will be picking from.
|
||||||
RegisterSetUsage* usage_set;
|
RegisterSetUsage* usage_set;
|
||||||
|
|
|
@ -54,43 +54,43 @@ DEFINE_OPCODE(
|
||||||
OPCODE_CALL,
|
OPCODE_CALL,
|
||||||
"call",
|
"call",
|
||||||
OPCODE_SIG_X_S,
|
OPCODE_SIG_X_S,
|
||||||
OPCODE_FLAG_BRANCH)
|
OPCODE_FLAG_BRANCH | OPCODE_FLAG_VOLATILE)
|
||||||
|
|
||||||
DEFINE_OPCODE(
|
DEFINE_OPCODE(
|
||||||
OPCODE_CALL_TRUE,
|
OPCODE_CALL_TRUE,
|
||||||
"call_true",
|
"call_true",
|
||||||
OPCODE_SIG_X_V_S,
|
OPCODE_SIG_X_V_S,
|
||||||
OPCODE_FLAG_BRANCH)
|
OPCODE_FLAG_BRANCH | OPCODE_FLAG_VOLATILE)
|
||||||
|
|
||||||
DEFINE_OPCODE(
|
DEFINE_OPCODE(
|
||||||
OPCODE_CALL_INDIRECT,
|
OPCODE_CALL_INDIRECT,
|
||||||
"call_indirect",
|
"call_indirect",
|
||||||
OPCODE_SIG_X_V,
|
OPCODE_SIG_X_V,
|
||||||
OPCODE_FLAG_BRANCH)
|
OPCODE_FLAG_BRANCH | OPCODE_FLAG_VOLATILE)
|
||||||
|
|
||||||
DEFINE_OPCODE(
|
DEFINE_OPCODE(
|
||||||
OPCODE_CALL_INDIRECT_TRUE,
|
OPCODE_CALL_INDIRECT_TRUE,
|
||||||
"call_indirect_true",
|
"call_indirect_true",
|
||||||
OPCODE_SIG_X_V_V,
|
OPCODE_SIG_X_V_V,
|
||||||
OPCODE_FLAG_BRANCH)
|
OPCODE_FLAG_BRANCH | OPCODE_FLAG_VOLATILE)
|
||||||
|
|
||||||
DEFINE_OPCODE(
|
DEFINE_OPCODE(
|
||||||
OPCODE_CALL_EXTERN,
|
OPCODE_CALL_EXTERN,
|
||||||
"call_extern",
|
"call_extern",
|
||||||
OPCODE_SIG_X_S,
|
OPCODE_SIG_X_S,
|
||||||
OPCODE_FLAG_BRANCH)
|
OPCODE_FLAG_BRANCH | OPCODE_FLAG_VOLATILE)
|
||||||
|
|
||||||
DEFINE_OPCODE(
|
DEFINE_OPCODE(
|
||||||
OPCODE_RETURN,
|
OPCODE_RETURN,
|
||||||
"return",
|
"return",
|
||||||
OPCODE_SIG_X,
|
OPCODE_SIG_X,
|
||||||
OPCODE_FLAG_BRANCH)
|
OPCODE_FLAG_BRANCH | OPCODE_FLAG_VOLATILE)
|
||||||
|
|
||||||
DEFINE_OPCODE(
|
DEFINE_OPCODE(
|
||||||
OPCODE_RETURN_TRUE,
|
OPCODE_RETURN_TRUE,
|
||||||
"return_true",
|
"return_true",
|
||||||
OPCODE_SIG_X_V,
|
OPCODE_SIG_X_V,
|
||||||
OPCODE_FLAG_BRANCH)
|
OPCODE_FLAG_BRANCH | OPCODE_FLAG_VOLATILE)
|
||||||
|
|
||||||
DEFINE_OPCODE(
|
DEFINE_OPCODE(
|
||||||
OPCODE_SET_RETURN_ADDRESS,
|
OPCODE_SET_RETURN_ADDRESS,
|
||||||
|
|
Loading…
Reference in New Issue