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

Unified Diff: runtime/vm/stub_code.cc

Issue 8234016: Inline allocation of implicit closures. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 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 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;
« 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