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

Side by Side Diff: runtime/vm/stub_code.h

Issue 1423473004: Switch profiler from isolates to threads [second landing] (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/profiler_test.cc ('k') | runtime/vm/stub_code.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_STUB_CODE_H_ 5 #ifndef VM_STUB_CODE_H_
6 #define VM_STUB_CODE_H_ 6 #define VM_STUB_CODE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 static void ReadFrom(SnapshotReader* reader); 103 static void ReadFrom(SnapshotReader* reader);
104 static void WriteTo(SnapshotWriter* writer); 104 static void WriteTo(SnapshotWriter* writer);
105 105
106 // Generate all stubs which are generated on a per isolate basis as they 106 // Generate all stubs which are generated on a per isolate basis as they
107 // have embedded objects which are isolate specific. 107 // have embedded objects which are isolate specific.
108 static void Init(Isolate* isolate); 108 static void Init(Isolate* isolate);
109 109
110 static void VisitObjectPointers(ObjectPointerVisitor* visitor); 110 static void VisitObjectPointers(ObjectPointerVisitor* visitor);
111 111
112 // Returns true if stub code has been initialized.
113 static bool HasBeenInitialized();
114
112 // Check if specified pc is in the dart invocation stub used for 115 // Check if specified pc is in the dart invocation stub used for
113 // transitioning into dart code. 116 // transitioning into dart code.
114 static bool InInvocationStub(uword pc); 117 static bool InInvocationStub(uword pc);
115 118
116 // Check if the specified pc is in the jump to exception handler stub. 119 // Check if the specified pc is in the jump to exception handler stub.
117 static bool InJumpToExceptionHandlerStub(uword pc); 120 static bool InJumpToExceptionHandlerStub(uword pc);
118 121
119 // Returns NULL if no stub found. 122 // Returns NULL if no stub found.
120 static const char* NameOfStub(uword entry_point); 123 static const char* NameOfStub(uword entry_point);
121 124
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 184
182 185
183 enum DeoptStubKind { 186 enum DeoptStubKind {
184 kLazyDeopt, 187 kLazyDeopt,
185 kEagerDeopt 188 kEagerDeopt
186 }; 189 };
187 190
188 } // namespace dart 191 } // namespace dart
189 192
190 #endif // VM_STUB_CODE_H_ 193 #endif // VM_STUB_CODE_H_
OLDNEW
« no previous file with comments | « runtime/vm/profiler_test.cc ('k') | runtime/vm/stub_code.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698