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

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

Issue 735723003: Implement enum types in VM (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | Annotate | Revision Log
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_FLOW_GRAPH_BUILDER_H_ 5 #ifndef VM_FLOW_GRAPH_BUILDER_H_
6 #define VM_FLOW_GRAPH_BUILDER_H_ 6 #define VM_FLOW_GRAPH_BUILDER_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "platform/globals.h" 9 #include "platform/globals.h"
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 14 matching lines...) Expand all
25 class String; 25 class String;
26 class TypeArguments; 26 class TypeArguments;
27 27
28 class NestedStatement; 28 class NestedStatement;
29 class TestGraphVisitor; 29 class TestGraphVisitor;
30 30
31 // List of recognized list factories: 31 // List of recognized list factories:
32 // (factory-name-symbol, result-cid, fingerprint). 32 // (factory-name-symbol, result-cid, fingerprint).
33 // TODO(srdjan): Store the values in the snapshot instead. 33 // TODO(srdjan): Store the values in the snapshot instead.
34 #define RECOGNIZED_LIST_FACTORY_LIST(V) \ 34 #define RECOGNIZED_LIST_FACTORY_LIST(V) \
35 V(_ListFactory, kArrayCid, 1595327584) \ 35 V(_ListFactory, kArrayCid, 335347617) \
36 V(_GrowableListWithData, kGrowableObjectArrayCid, 732923072) \ 36 V(_GrowableListWithData, kGrowableObjectArrayCid, 536409567) \
37 V(_GrowableListFactory, kGrowableObjectArrayCid, 1956565810) \ 37 V(_GrowableListFactory, kGrowableObjectArrayCid, 619206641) \
38 V(_Int8ArrayFactory, kTypedDataInt8ArrayCid, 1499010120) \ 38 V(_Int8ArrayFactory, kTypedDataInt8ArrayCid, 1234236264) \
39 V(_Uint8ArrayFactory, kTypedDataUint8ArrayCid, 354210806) \ 39 V(_Uint8ArrayFactory, kTypedDataUint8ArrayCid, 89436950) \
40 V(_Uint8ClampedArrayFactory, kTypedDataUint8ClampedArrayCid, 231626935) \ 40 V(_Uint8ClampedArrayFactory, kTypedDataUint8ClampedArrayCid, 2114336727) \
41 V(_Int16ArrayFactory, kTypedDataInt16ArrayCid, 1044203454) \ 41 V(_Int16ArrayFactory, kTypedDataInt16ArrayCid, 779429598) \
42 V(_Uint16ArrayFactory, kTypedDataUint16ArrayCid, 616427808) \ 42 V(_Uint16ArrayFactory, kTypedDataUint16ArrayCid, 351653952) \
43 V(_Int32ArrayFactory, kTypedDataInt32ArrayCid, 26656923) \ 43 V(_Int32ArrayFactory, kTypedDataInt32ArrayCid, 1909366715) \
44 V(_Uint32ArrayFactory, kTypedDataUint32ArrayCid, 297463966) \ 44 V(_Uint32ArrayFactory, kTypedDataUint32ArrayCid, 32690110) \
45 V(_Int64ArrayFactory, kTypedDataInt64ArrayCid, 105050331) \ 45 V(_Int64ArrayFactory, kTypedDataInt64ArrayCid, 1987760123) \
46 V(_Uint64ArrayFactory, kTypedDataUint64ArrayCid, 1469861670) \ 46 V(_Uint64ArrayFactory, kTypedDataUint64ArrayCid, 1205087814) \
47 V(_Float64ArrayFactory, kTypedDataFloat64ArrayCid, 342242776) \ 47 V(_Float64ArrayFactory, kTypedDataFloat64ArrayCid, 77468920) \
48 V(_Float32ArrayFactory, kTypedDataFloat32ArrayCid, 105860920) \ 48 V(_Float32ArrayFactory, kTypedDataFloat32ArrayCid, 1988570712) \
49 V(_Float32x4ArrayFactory, kTypedDataFloat32x4ArrayCid, 1217848993) \ 49 V(_Float32x4ArrayFactory, kTypedDataFloat32x4ArrayCid, 953075137) \
50 50
51 51
52 // Class that recognizes factories and returns corresponding result cid. 52 // Class that recognizes factories and returns corresponding result cid.
53 class FactoryRecognizer : public AllStatic { 53 class FactoryRecognizer : public AllStatic {
54 public: 54 public:
55 // Return kDynamicCid if factory is not recognized. 55 // Return kDynamicCid if factory is not recognized.
56 static intptr_t ResultCid(const Function& factory) { 56 static intptr_t ResultCid(const Function& factory) {
57 ASSERT(factory.IsFactory()); 57 ASSERT(factory.IsFactory());
58 const Class& function_class = Class::Handle(factory.Owner()); 58 const Class& function_class = Class::Handle(factory.Owner());
59 const Library& lib = Library::Handle(function_class.library()); 59 const Library& lib = Library::Handle(function_class.library());
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 // Output parameters. 603 // Output parameters.
604 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 604 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
605 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 605 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
606 606
607 intptr_t condition_token_pos_; 607 intptr_t condition_token_pos_;
608 }; 608 };
609 609
610 } // namespace dart 610 } // namespace dart
611 611
612 #endif // VM_FLOW_GRAPH_BUILDER_H_ 612 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698