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

Unified Diff: runtime/vm/stub_code.cc

Issue 1229283002: VM: Share some stub code between isolates. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: addressed comments Created 5 years, 5 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_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code.cc
diff --git a/runtime/vm/stub_code.cc b/runtime/vm/stub_code.cc
index 38fd62391a7aa19689137751429d770a84474b83..ad51097eadca0879c4cbbed0e24ee6a97866933d 100644
--- a/runtime/vm/stub_code.cc
+++ b/runtime/vm/stub_code.cc
@@ -58,30 +58,18 @@ void StubCode::InitOnce() {
}
-void StubCode::GenerateBootstrapStubsFor(Isolate* init) {
- // Generate initial stubs.
- Code& code = Code::Handle();
- BOOTSTRAP_STUB_CODE_LIST(STUB_CODE_GENERATE);
-}
-
-
void StubCode::GenerateStubsFor(Isolate* init) {
// Generate all the other stubs.
Code& code = Code::Handle();
- REST_STUB_CODE_LIST(STUB_CODE_GENERATE);
+ STUB_CODE_LIST(STUB_CODE_GENERATE);
}
#undef STUB_CODE_GENERATE
-void StubCode::InitBootstrapStubs(Isolate* isolate) {
+void StubCode::Init(Isolate* isolate) {
StubCode* stubs = new StubCode(isolate);
isolate->set_stub_code(stubs);
- stubs->GenerateBootstrapStubsFor(isolate);
-}
-
-
-void StubCode::Init(Isolate* isolate) {
isolate->stub_code()->GenerateStubsFor(isolate);
}
« no previous file with comments | « runtime/vm/stub_code.h ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698