Index: runtime/vm/stub_code.cc |
diff --git a/runtime/vm/stub_code.cc b/runtime/vm/stub_code.cc |
index e9fffc249f241b02d82ac14957c99c7c3f7da2a7..e991fdb53a9ee7c8639ae58f1fdc6cc258d80c94 100644 |
--- a/runtime/vm/stub_code.cc |
+++ b/runtime/vm/stub_code.cc |
@@ -116,7 +116,7 @@ RawCode* StubCode::GetAllocationStubForClass(const Class& cls) { |
Assembler assembler; |
const char* name = cls.ToCString(); |
StubCode::GenerateAllocationStubForClass(&assembler, cls); |
- stub ^= Code::FinalizeCode(name, &assembler); |
+ stub ^= Code::FinalizeCode(name, &assembler, false /* optimized */); |
stub.set_owner(cls); |
cls.set_allocation_stub(stub); |
if (FLAG_disassemble_stubs) { |
@@ -153,7 +153,8 @@ RawCode* StubCode::Generate(const char* name, |
void (*GenerateStub)(Assembler* assembler)) { |
Assembler assembler; |
GenerateStub(&assembler); |
- const Code& code = Code::Handle(Code::FinalizeCode(name, &assembler)); |
+ const Code& code = Code::Handle( |
+ Code::FinalizeCode(name, &assembler, false /* optimized */)); |
if (FLAG_disassemble_stubs) { |
LogBlock lb; |
THR_Print("Code for stub '%s': {\n", name); |