Chromium Code Reviews| Index: runtime/vm/stub_code.cc |
| =================================================================== |
| --- runtime/vm/stub_code.cc (revision 41244) |
| +++ runtime/vm/stub_code.cc (working copy) |
| @@ -58,22 +58,35 @@ |
| } |
| -void StubCode::GenerateFor(Isolate* init) { |
| - // Generate all the stubs. |
| +void StubCode::GenerateBootstrapStubsFor(Isolate* init) { |
| + // Generate initial stubs. |
| Code& code = Code::Handle(); |
| - STUB_CODE_LIST(STUB_CODE_GENERATE); |
| + BOOTSTRAP_STUB_CODE_LIST(STUB_CODE_GENERATE); |
| } |
| + |
| +void StubCode::GenerateOtherStubsFor(Isolate* init) { |
|
Vyacheslav Egorov (Google)
2014/10/22 15:45:45
I find the name "other-stubs" confusing.
|
| + // Generate all the other stubs. |
| + Code& code = Code::Handle(); |
| + OTHER_STUB_CODE_LIST(STUB_CODE_GENERATE); |
| +} |
| + |
| #undef STUB_CODE_GENERATE |
| -void StubCode::Init(Isolate* isolate) { |
| +void StubCode::InitBootstrapStubs(Isolate* isolate) { |
| StubCode* stubs = new StubCode(isolate); |
| isolate->set_stub_code(stubs); |
| - stubs->GenerateFor(isolate); |
| + stubs->GenerateBootstrapStubsFor(isolate); |
| } |
| +void StubCode::Init(Isolate* isolate) { |
| + StubCode* stubs = isolate->stub_code(); |
| + stubs->GenerateOtherStubsFor(isolate); |
| +} |
| + |
| + |
| void StubCode::VisitObjectPointers(ObjectPointerVisitor* visitor) { |
| // The current isolate is needed as part of the macro. |
| Isolate* isolate = Isolate::Current(); |