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

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

Issue 264933006: Fix edge case where profiler would miss the caller of the top frame (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/profiler.h » ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_ISOLATE_H_ 5 #ifndef VM_ISOLATE_H_
6 #define VM_ISOLATE_H_ 6 #define VM_ISOLATE_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/thread.h" 10 #include "platform/thread.h"
11 #include "vm/base_isolate.h" 11 #include "vm/base_isolate.h"
12 #include "vm/class_table.h" 12 #include "vm/class_table.h"
13 #include "vm/handles.h" 13 #include "vm/handles.h"
14 #include "vm/megamorphic_cache_table.h" 14 #include "vm/megamorphic_cache_table.h"
15 #include "vm/random.h" 15 #include "vm/random.h"
16 #include "vm/store_buffer.h" 16 #include "vm/store_buffer.h"
17 #include "vm/tags.h" 17 #include "vm/tags.h"
18 #include "vm/timer.h" 18 #include "vm/timer.h"
19 19
20 namespace dart { 20 namespace dart {
21 21
22 // Forward declarations. 22 // Forward declarations.
23 class AbstractType; 23 class AbstractType;
24 class ApiState; 24 class ApiState;
25 class Array; 25 class Array;
26 class Class; 26 class Class;
27 class Code;
27 class CodeIndexTable; 28 class CodeIndexTable;
28 class Debugger; 29 class Debugger;
29 class DeoptContext; 30 class DeoptContext;
30 class Error; 31 class Error;
31 class Field; 32 class Field;
32 class Function; 33 class Function;
33 class GrowableObjectArray; 34 class GrowableObjectArray;
34 class HandleScope; 35 class HandleScope;
35 class HandleVisitor; 36 class HandleVisitor;
36 class Heap; 37 class Heap;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 IsolateVisitor() {} 74 IsolateVisitor() {}
74 virtual ~IsolateVisitor() {} 75 virtual ~IsolateVisitor() {}
75 76
76 virtual void VisitIsolate(Isolate* isolate) = 0; 77 virtual void VisitIsolate(Isolate* isolate) = 0;
77 78
78 private: 79 private:
79 DISALLOW_COPY_AND_ASSIGN(IsolateVisitor); 80 DISALLOW_COPY_AND_ASSIGN(IsolateVisitor);
80 }; 81 };
81 82
82 #define REUSABLE_HANDLE_LIST(V) \ 83 #define REUSABLE_HANDLE_LIST(V) \
84 V(AbstractType) \
83 V(Array) \ 85 V(Array) \
84 V(Class) \ 86 V(Class) \
87 V(Code) \
85 V(Error) \ 88 V(Error) \
86 V(Field) \ 89 V(Field) \
87 V(Function) \ 90 V(Function) \
88 V(Instance) \ 91 V(Instance) \
89 V(Object) \ 92 V(Object) \
90 V(String) \ 93 V(String) \
91 V(TypeArguments) \ 94 V(TypeArguments) \
92 V(AbstractType) \
93 V(TypeParameter) \ 95 V(TypeParameter) \
94 96
95 class Isolate : public BaseIsolate { 97 class Isolate : public BaseIsolate {
96 public: 98 public:
97 ~Isolate(); 99 ~Isolate();
98 100
99 static inline Isolate* Current() { 101 static inline Isolate* Current() {
100 return reinterpret_cast<Isolate*>(Thread::GetThreadLocal(isolate_key)); 102 return reinterpret_cast<Isolate*>(Thread::GetThreadLocal(isolate_key));
101 } 103 }
102 104
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 char* script_url_; 720 char* script_url_;
719 char* library_url_; 721 char* library_url_;
720 char* class_name_; 722 char* class_name_;
721 char* function_name_; 723 char* function_name_;
722 char* exception_callback_name_; 724 char* exception_callback_name_;
723 }; 725 };
724 726
725 } // namespace dart 727 } // namespace dart
726 728
727 #endif // VM_ISOLATE_H_ 729 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/profiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698