remove unnecessary exception checks from bootimage.cpp

This commit is contained in:
Joel Dice 2011-01-27 11:53:53 -07:00
parent e16d5f83af
commit 5cedcf7833

View File

@ -409,35 +409,27 @@ writeBootImage2(Thread* t, FILE* out, BootImage* image, uint8_t* code,
// runtime:
{ resolveSystemClass
(t, root(t, Machine::BootLoader), makeByteArray(t, "[B"), true);
if (t->exception) return;
resolveSystemClass
(t, root(t, Machine::BootLoader), makeByteArray(t, "[Z"), true);
if (t->exception) return;
resolveSystemClass
(t, root(t, Machine::BootLoader), makeByteArray(t, "[S"), true);
if (t->exception) return;
resolveSystemClass
(t, root(t, Machine::BootLoader), makeByteArray(t, "[C"), true);
if (t->exception) return;
resolveSystemClass
(t, root(t, Machine::BootLoader), makeByteArray(t, "[I"), true);
if (t->exception) return;
resolveSystemClass
(t, root(t, Machine::BootLoader), makeByteArray(t, "[J"), true);
if (t->exception) return;
resolveSystemClass
(t, root(t, Machine::BootLoader), makeByteArray(t, "[F"), true);
if (t->exception) return;
resolveSystemClass
(t, root(t, Machine::BootLoader), makeByteArray(t, "[D"), true);
if (t->exception) return;
}
collect(t, Heap::MajorCollection);