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

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

Issue 257793005: Fix SIMARM64 to compile on Mac, fix compilation because of ICData change. (Closed) Base URL: http://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/code_generator.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) 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/ast.h" 8 #include "vm/ast.h"
9 #include "vm/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
11 #include "vm/growable_array.h" 11 #include "vm/growable_array.h"
12 #include "vm/object.h" 12 #include "vm/object.h"
13 13
14 namespace dart { 14 namespace dart {
15 15
16 class DescriptorList : public ZoneAllocated { 16 class DescriptorList : public ZoneAllocated {
17 public: 17 public:
18 struct PcDesc { 18 struct PcDesc {
19 intptr_t pc_offset; // PC offset value of the descriptor. 19 intptr_t pc_offset; // PC offset value of the descriptor.
20 PcDescriptors::Kind kind; // Descriptor kind (kDeopt, kOther). 20 PcDescriptors::Kind kind; // Descriptor kind (kDeopt, kOther).
21 intptr_t deopt_id; // Deoptimization id. 21 intptr_t deopt_id; // Deoptimization id.
22 intptr_t data; // Token position or deopt reason. 22 intptr_t data; // Token position or deopt reason.
23 intptr_t try_index; // Try block index of PC or deopt array index. 23 intptr_t try_index; // Try block index of PC or deopt array index.
24 void SetTokenPos(intptr_t value) { data = value; } 24 void SetTokenPos(intptr_t value) { data = value; }
25 intptr_t TokenPos() const { return data; } 25 intptr_t TokenPos() const { return data; }
26 void SetDeoptReason(ICData::DeoptReasonId value) { data = value; } 26 void SetDeoptReason(ICData::DeoptReasonId value) { data = value; }
27 ICData::DeoptReasonId DeoptReason() const { 27 ICData::DeoptReasonId DeoptReason() const {
28 ASSERT((0 <= data) && (data < ICData::ICData::kDeoptNumReasons)); 28 ASSERT((0 <= data) && (data < ICData::kDeoptNumReasons));
29 return static_cast<ICData::DeoptReasonId>(data); 29 return static_cast<ICData::DeoptReasonId>(data);
30 } 30 }
31 }; 31 };
32 32
33 explicit DescriptorList(intptr_t initial_capacity) : list_(initial_capacity) { 33 explicit DescriptorList(intptr_t initial_capacity) : list_(initial_capacity) {
34 } 34 }
35 ~DescriptorList() { } 35 ~DescriptorList() { }
36 36
37 intptr_t Length() const { 37 intptr_t Length() const {
38 return list_.length(); 38 return list_.length();
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 } 178 }
179 179
180 private: 180 private:
181 GrowableArray<struct HandlerDesc> list_; 181 GrowableArray<struct HandlerDesc> list_;
182 DISALLOW_COPY_AND_ASSIGN(ExceptionHandlerList); 182 DISALLOW_COPY_AND_ASSIGN(ExceptionHandlerList);
183 }; 183 };
184 184
185 } // namespace dart 185 } // namespace dart
186 186
187 #endif // VM_CODE_DESCRIPTORS_H_ 187 #endif // VM_CODE_DESCRIPTORS_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/code_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698