Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: runtime/vm/stub_code.cc

Issue 178233003: Allocate instance closures similarly to regular closures, i.e. without a (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/stub_code.h ('k') | runtime/vm/stub_code_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code.cc
===================================================================
--- runtime/vm/stub_code.cc (revision 33072)
+++ runtime/vm/stub_code.cc (working copy)
@@ -117,25 +117,6 @@
}
-RawCode* StubCode::GetAllocationStubForClosure(const Function& func) {
- Code& stub = Code::Handle(func.closure_allocation_stub());
- if (stub.IsNull()) {
- Assembler assembler;
- const char* name = func.ToCString();
- StubCode::GenerateAllocationStubForClosure(&assembler, func);
- stub ^= Code::FinalizeCode(name, &assembler);
- func.set_closure_allocation_stub(stub);
- if (FLAG_disassemble_stubs) {
- OS::Print("Code for 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;
« no previous file with comments | « runtime/vm/stub_code.h ('k') | runtime/vm/stub_code_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698