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

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

Issue 269253007: - Fix the external_test.dart as it was relying on outdated (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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/intermediate_language.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_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, 176587978) \ 35 V(_ListFactory, kArrayCid, 1595327584) \
36 V(_GrowableListWithData, kGrowableObjectArrayCid, 264792196) \ 36 V(_GrowableListWithData, kGrowableObjectArrayCid, 732923072) \
37 V(_GrowableListFactory, kGrowableObjectArrayCid, 1720763678) \ 37 V(_GrowableListFactory, kGrowableObjectArrayCid, 1842713619) \
38 V(_Int8ArrayFactory, kTypedDataInt8ArrayCid, 545976988) \ 38 V(_Int8ArrayFactory, kTypedDataInt8ArrayCid, 1499010120) \
39 V(_Uint8ArrayFactory, kTypedDataUint8ArrayCid, 981297074) \ 39 V(_Uint8ArrayFactory, kTypedDataUint8ArrayCid, 354210806) \
40 V(_Uint8ClampedArrayFactory, kTypedDataUint8ClampedArrayCid, 1617830104) \ 40 V(_Uint8ClampedArrayFactory, kTypedDataUint8ClampedArrayCid, 231626935) \
41 V(_Int16ArrayFactory, kTypedDataInt16ArrayCid, 300928419) \ 41 V(_Int16ArrayFactory, kTypedDataInt16ArrayCid, 1044203454) \
42 V(_Uint16ArrayFactory, kTypedDataUint16ArrayCid, 480982704) \ 42 V(_Uint16ArrayFactory, kTypedDataUint16ArrayCid, 616427808) \
43 V(_Int32ArrayFactory, kTypedDataInt32ArrayCid, 1876611964) \ 43 V(_Int32ArrayFactory, kTypedDataInt32ArrayCid, 26656923) \
44 V(_Uint32ArrayFactory, kTypedDataUint32ArrayCid, 1811693442) \ 44 V(_Uint32ArrayFactory, kTypedDataUint32ArrayCid, 297463966) \
45 V(_Int64ArrayFactory, kTypedDataInt64ArrayCid, 958749261) \ 45 V(_Int64ArrayFactory, kTypedDataInt64ArrayCid, 105050331) \
46 V(_Uint64ArrayFactory, kTypedDataUint64ArrayCid, 767338823) \ 46 V(_Uint64ArrayFactory, kTypedDataUint64ArrayCid, 1469861670) \
47 V(_Float64ArrayFactory, kTypedDataFloat64ArrayCid, 1599078532) \ 47 V(_Float64ArrayFactory, kTypedDataFloat64ArrayCid, 342242776) \
48 V(_Float32ArrayFactory, kTypedDataFloat32ArrayCid, 1721244151) \ 48 V(_Float32ArrayFactory, kTypedDataFloat32ArrayCid, 105860920) \
49 V(_Float32x4ArrayFactory, kTypedDataFloat32x4ArrayCid, 879975401) \ 49 V(_Float32x4ArrayFactory, kTypedDataFloat32x4ArrayCid, 1217848993) \
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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 // Output parameters. 586 // Output parameters.
587 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 587 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
588 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 588 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
589 589
590 intptr_t condition_token_pos_; 590 intptr_t condition_token_pos_;
591 }; 591 };
592 592
593 } // namespace dart 593 } // namespace dart
594 594
595 #endif // VM_FLOW_GRAPH_BUILDER_H_ 595 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698