Index: runtime/vm/stub_code.cc |
=================================================================== |
--- runtime/vm/stub_code.cc (revision 355) |
+++ runtime/vm/stub_code.cc (working copy) |
@@ -157,27 +157,6 @@ |
} |
-RawCode* StubCode::GetAllocationStubForStaticImplicitClosure( |
- const Function& func) { |
- ASSERT(func.is_static()); |
- Code& stub = Code::Handle(func.closure_allocation_stub()); |
- if (stub.IsNull()) { |
- Assembler assembler; |
- const char* name = func.ToCString(); |
- StubCode::GenerateAllocationStubForStaticImplicitClosure(&assembler, func); |
- stub ^= Code::FinalizeCode(name, &assembler); |
- func.set_closure_allocation_stub(stub); |
- if (FLAG_disassemble_stubs) { |
- OS::Print("Code for implicit closure allocation stub '%s': {\n", name); |
- Disassembler::Disassemble(stub.EntryPoint(), |
- stub.EntryPoint() + assembler.CodeSize()); |
- OS::Print("}\n"); |
- } |
- } |
- return stub.raw(); |
-} |
- |
- |
RawCode* StubCode::Generate(const char* name, |
void (*GenerateStub)(Assembler* assembler)) { |
Assembler assembler; |