зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1086842 part 2 - Add debug checks for TypeTagOnly type barriers. r=bhackett
This commit is contained in:
Родитель
e3aea8a8ea
Коммит
df2a06c99a
|
@ -134,6 +134,15 @@ MacroAssembler::guardTypeSet(const Source &address, const TypeSet *types, Barrie
|
|||
if (kind != BarrierKind::TypeTagOnly) {
|
||||
Register obj = extractObject(address, scratch);
|
||||
guardObjectType(obj, types, scratch, miss);
|
||||
} else {
|
||||
#ifdef DEBUG
|
||||
Label fail;
|
||||
Register obj = extractObject(address, scratch);
|
||||
guardObjectType(obj, types, scratch, &fail);
|
||||
jump(&matched);
|
||||
bind(&fail);
|
||||
assumeUnreachable("Unexpected object type");
|
||||
#endif
|
||||
}
|
||||
|
||||
bind(&matched);
|
||||
|
|
Загрузка…
Ссылка в новой задаче