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

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

Issue 1142423003: Add tokens for null-aware operators (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Adding tokens for null-aware operators Created 5 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
« no previous file with comments | « no previous file | runtime/vm/method_recognizer.h » ('j') | runtime/vm/token.h » ('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_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 #define RECOGNIZED_LIST_FACTORY_LIST(V) \ 33 #define RECOGNIZED_LIST_FACTORY_LIST(V) \
34 V(_ListFactory, kArrayCid, 335347617) \ 34 V(_ListFactory, kArrayCid, 335347617) \
35 V(_GrowableListWithData, kGrowableObjectArrayCid, 536409567) \ 35 V(_GrowableListWithData, kGrowableObjectArrayCid, 2094352700) \
36 V(_GrowableListFactory, kGrowableObjectArrayCid, 619206641) \ 36 V(_GrowableListFactory, kGrowableObjectArrayCid, 619206641) \
37 V(_Int8ArrayFactory, kTypedDataInt8ArrayCid, 1234236264) \ 37 V(_Int8ArrayFactory, kTypedDataInt8ArrayCid, 439914696) \
38 V(_Uint8ArrayFactory, kTypedDataUint8ArrayCid, 89436950) \ 38 V(_Uint8ArrayFactory, kTypedDataUint8ArrayCid, 1442599030) \
39 V(_Uint8ClampedArrayFactory, kTypedDataUint8ClampedArrayCid, 2114336727) \ 39 V(_Uint8ClampedArrayFactory, kTypedDataUint8ClampedArrayCid, 1320015159) \
40 V(_Int16ArrayFactory, kTypedDataInt16ArrayCid, 779429598) \ 40 V(_Int16ArrayFactory, kTypedDataInt16ArrayCid, 2132591678) \
41 V(_Uint16ArrayFactory, kTypedDataUint16ArrayCid, 351653952) \ 41 V(_Uint16ArrayFactory, kTypedDataUint16ArrayCid, 1704816032) \
42 V(_Int32ArrayFactory, kTypedDataInt32ArrayCid, 1909366715) \ 42 V(_Int32ArrayFactory, kTypedDataInt32ArrayCid, 1115045147) \
43 V(_Uint32ArrayFactory, kTypedDataUint32ArrayCid, 32690110) \ 43 V(_Uint32ArrayFactory, kTypedDataUint32ArrayCid, 1385852190) \
44 V(_Int64ArrayFactory, kTypedDataInt64ArrayCid, 1987760123) \ 44 V(_Int64ArrayFactory, kTypedDataInt64ArrayCid, 1193438555) \
45 V(_Uint64ArrayFactory, kTypedDataUint64ArrayCid, 1205087814) \ 45 V(_Uint64ArrayFactory, kTypedDataUint64ArrayCid, 410766246) \
46 V(_Float64ArrayFactory, kTypedDataFloat64ArrayCid, 77468920) \ 46 V(_Float64ArrayFactory, kTypedDataFloat64ArrayCid, 1430631000) \
47 V(_Float32ArrayFactory, kTypedDataFloat32ArrayCid, 1988570712) \ 47 V(_Float32ArrayFactory, kTypedDataFloat32ArrayCid, 1194249144) \
48 V(_Float32x4ArrayFactory, kTypedDataFloat32x4ArrayCid, 953075137) \ 48 V(_Float32x4ArrayFactory, kTypedDataFloat32x4ArrayCid, 158753569) \
49 49
50 50
51 // Class that recognizes factories and returns corresponding result cid. 51 // Class that recognizes factories and returns corresponding result cid.
52 class FactoryRecognizer : public AllStatic { 52 class FactoryRecognizer : public AllStatic {
53 public: 53 public:
54 // Return kDynamicCid if factory is not recognized. 54 // Return kDynamicCid if factory is not recognized.
55 static intptr_t ResultCid(const Function& factory); 55 static intptr_t ResultCid(const Function& factory);
56 }; 56 };
57 57
58 58
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 // Output parameters. 600 // Output parameters.
601 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 601 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
602 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 602 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
603 603
604 intptr_t condition_token_pos_; 604 intptr_t condition_token_pos_;
605 }; 605 };
606 606
607 } // namespace dart 607 } // namespace dart
608 608
609 #endif // VM_FLOW_GRAPH_BUILDER_H_ 609 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/method_recognizer.h » ('j') | runtime/vm/token.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698