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

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

Issue 10885039: Deoptimization can occur at Dart calls (includes native calls to C) but not at runtime calls. This … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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/code_descriptors.cc » ('j') | runtime/vm/code_descriptors.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_CODE_DESCRIPTORS_H_ 5 #ifndef VM_CODE_DESCRIPTORS_H_
6 #define VM_CODE_DESCRIPTORS_H_ 6 #define VM_CODE_DESCRIPTORS_H_
7 7
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 #include "vm/growable_array.h" 9 #include "vm/growable_array.h"
10 #include "vm/object.h" 10 #include "vm/object.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 } 43 }
44 intptr_t TryIndex(int index) const { 44 intptr_t TryIndex(int index) const {
45 return list_[index].try_index; 45 return list_[index].try_index;
46 } 46 }
47 47
48 void AddDescriptor(PcDescriptors::Kind kind, 48 void AddDescriptor(PcDescriptors::Kind kind,
49 intptr_t pc_offset, 49 intptr_t pc_offset,
50 intptr_t deopt_id, 50 intptr_t deopt_id,
51 intptr_t token_index, 51 intptr_t token_index,
52 intptr_t try_index); 52 intptr_t try_index);
53 void AddDeoptInfo(intptr_t pc_offset, 53 void AddDeoptIndex(intptr_t pc_offset,
54 intptr_t deopt_id, 54 intptr_t deopt_id,
55 intptr_t token_index, 55 intptr_t deopt_reason,
56 intptr_t deopt_array_index); 56 intptr_t deopt_array_index);
57 57
58 RawPcDescriptors* FinalizePcDescriptors(uword entry_point); 58 RawPcDescriptors* FinalizePcDescriptors(uword entry_point);
59 59
60 private: 60 private:
61 GrowableArray<struct PcDesc> list_; 61 GrowableArray<struct PcDesc> list_;
62 DISALLOW_COPY_AND_ASSIGN(DescriptorList); 62 DISALLOW_COPY_AND_ASSIGN(DescriptorList);
63 }; 63 };
64 64
65 65
66 class StackmapTableBuilder : public ZoneAllocated { 66 class StackmapTableBuilder : public ZoneAllocated {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 128 }
129 129
130 private: 130 private:
131 GrowableArray<struct HandlerDesc> list_; 131 GrowableArray<struct HandlerDesc> list_;
132 DISALLOW_COPY_AND_ASSIGN(ExceptionHandlerList); 132 DISALLOW_COPY_AND_ASSIGN(ExceptionHandlerList);
133 }; 133 };
134 134
135 } // namespace dart 135 } // namespace dart
136 136
137 #endif // VM_CODE_DESCRIPTORS_H_ 137 #endif // VM_CODE_DESCRIPTORS_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/code_descriptors.cc » ('j') | runtime/vm/code_descriptors.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698