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

Unified Diff: runtime/vm/stub_code.cc

Issue 668193002: Remove isolate pointer from context objects. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 41244)
+++ runtime/vm/stub_code.cc (working copy)
@@ -58,22 +58,34 @@
}
-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::GenerateStubsFor(Isolate* init) {
+ // Generate all the other stubs.
+ Code& code = Code::Handle();
+ REST_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) {
+ isolate->stub_code()->GenerateStubsFor(isolate);
+}
+
+
void StubCode::VisitObjectPointers(ObjectPointerVisitor* visitor) {
// The current isolate is needed as part of the macro.
Isolate* isolate = Isolate::Current();
« 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