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

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

Issue 18292003: Inline native setters for length and data in the optimizer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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 | « runtime/lib/growable_array.cc ('k') | runtime/vm/flow_graph_optimizer.cc » ('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 "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 19 matching lines...) Expand all
30 V(_Uint16ArrayFactory, kTypedDataUint16ArrayCid, 967612741) \ 30 V(_Uint16ArrayFactory, kTypedDataUint16ArrayCid, 967612741) \
31 V(_Int32ArrayFactory, kTypedDataInt32ArrayCid, 332168564) \ 31 V(_Int32ArrayFactory, kTypedDataInt32ArrayCid, 332168564) \
32 V(_Uint32ArrayFactory, kTypedDataUint32ArrayCid, 966424258) \ 32 V(_Uint32ArrayFactory, kTypedDataUint32ArrayCid, 966424258) \
33 V(_Int64ArrayFactory, kTypedDataInt64ArrayCid, 541618991) \ 33 V(_Int64ArrayFactory, kTypedDataInt64ArrayCid, 541618991) \
34 V(_Uint64ArrayFactory, kTypedDataUint64ArrayCid, 1085703705) \ 34 V(_Uint64ArrayFactory, kTypedDataUint64ArrayCid, 1085703705) \
35 V(_Float64ArrayFactory, kTypedDataFloat64ArrayCid, 1867705160) \ 35 V(_Float64ArrayFactory, kTypedDataFloat64ArrayCid, 1867705160) \
36 V(_Float32ArrayFactory, kTypedDataFloat32ArrayCid, 1691006880) \ 36 V(_Float32ArrayFactory, kTypedDataFloat32ArrayCid, 1691006880) \
37 V(_Float32x4ArrayFactory, kTypedDataFloat32x4ArrayCid, 1739837241) \ 37 V(_Float32x4ArrayFactory, kTypedDataFloat32x4ArrayCid, 1739837241) \
38 38
39 39
40 // An class to collect the exits from an inlined function during graph 40 // A class to collect the exits from an inlined function during graph
41 // construction so they can be plugged into the caller's flow graph. 41 // construction so they can be plugged into the caller's flow graph.
42 class InlineExitCollector: public ZoneAllocated { 42 class InlineExitCollector: public ZoneAllocated {
43 public: 43 public:
44 InlineExitCollector(FlowGraph* caller_graph, Definition* call) 44 InlineExitCollector(FlowGraph* caller_graph, Definition* call)
45 : caller_graph_(caller_graph), call_(call), exits_(4) { } 45 : caller_graph_(caller_graph), call_(call), exits_(4) { }
46 46
47 void AddExit(ReturnInstr* exit); 47 void AddExit(ReturnInstr* exit);
48 48
49 void Union(const InlineExitCollector* other); 49 void Union(const InlineExitCollector* other);
50 50
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 // Output parameters. 517 // Output parameters.
518 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 518 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
519 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 519 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
520 520
521 intptr_t condition_token_pos_; 521 intptr_t condition_token_pos_;
522 }; 522 };
523 523
524 } // namespace dart 524 } // namespace dart
525 525
526 #endif // VM_FLOW_GRAPH_BUILDER_H_ 526 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « runtime/lib/growable_array.cc ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698