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

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

Issue 14703005: Added Object._cid getter, optimized it. Added to (some) classes a static final _clCid. Use those to… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_INTERMEDIATE_LANGUAGE_H_ 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_
6 #define VM_INTERMEDIATE_LANGUAGE_H_ 6 #define VM_INTERMEDIATE_LANGUAGE_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 17 matching lines...) Expand all
28 class Instruction; 28 class Instruction;
29 class LocalVariable; 29 class LocalVariable;
30 class ParsedFunction; 30 class ParsedFunction;
31 class Range; 31 class Range;
32 32
33 33
34 // TODO(srdjan): Unify with INTRINSIC_LIST. 34 // TODO(srdjan): Unify with INTRINSIC_LIST.
35 // (class-name, function-name, recognized enum, fingerprint). 35 // (class-name, function-name, recognized enum, fingerprint).
36 // See intrinsifier for fingerprint computation. 36 // See intrinsifier for fingerprint computation.
37 #define RECOGNIZED_LIST(V) \ 37 #define RECOGNIZED_LIST(V) \
38 V(Object, get:_cid, ObjectCid, 732498573) \
38 V(_ObjectArray, get:length, ObjectArrayLength, 405297088) \ 39 V(_ObjectArray, get:length, ObjectArrayLength, 405297088) \
39 V(_ImmutableArray, get:length, ImmutableArrayLength, 433698233) \ 40 V(_ImmutableArray, get:length, ImmutableArrayLength, 433698233) \
40 V(_TypedList, get:length, TypedDataLength, 1004567191) \ 41 V(_TypedList, get:length, TypedDataLength, 1004567191) \
41 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 728842615) \ 42 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 728842615) \
42 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 728842615) \ 43 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 728842615) \
43 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 728842615) \ 44 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 728842615) \
44 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 728842615) \ 45 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 728842615) \
45 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 728842615) \ 46 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 728842615) \
46 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 728842615) \ 47 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 728842615) \
47 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 1067360925) \ 48 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 1067360925) \
(...skipping 6358 matching lines...) Expand 10 before | Expand all | Expand 10 after
6406 ForwardInstructionIterator* current_iterator_; 6407 ForwardInstructionIterator* current_iterator_;
6407 6408
6408 private: 6409 private:
6409 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 6410 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
6410 }; 6411 };
6411 6412
6412 6413
6413 } // namespace dart 6414 } // namespace dart
6414 6415
6415 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 6416 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698