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

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

Issue 11696005: Improve line info accuracy in debugging (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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/debugger_api_impl_test.cc ('k') | runtime/vm/intrinsifier.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_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 Range; 28 class Range;
29 class FlowGraphOptimizer; 29 class FlowGraphOptimizer;
30 30
31 31
32 // TODO(srdjan): Unify with INTRINSIC_LIST. 32 // TODO(srdjan): Unify with INTRINSIC_LIST.
33 // (class-name, function-name, recognized enum, fingerprint). 33 // (class-name, function-name, recognized enum, fingerprint).
34 // See intrinsifier for fingerprint computation. 34 // See intrinsifier for fingerprint computation.
35 #define RECOGNIZED_LIST(V) \ 35 #define RECOGNIZED_LIST(V) \
36 V(_ObjectArray, get:length, ObjectArrayLength, 405297088) \ 36 V(_ObjectArray, get:length, ObjectArrayLength, 405297088) \
37 V(_ImmutableArray, get:length, ImmutableArrayLength, 433698233) \ 37 V(_ImmutableArray, get:length, ImmutableArrayLength, 433698233) \
38 V(_ByteArrayBase, get:length, ByteArrayBaseLength, 1828280001) \ 38 V(_ByteArrayBase, get:length, ByteArrayBaseLength, 1098081765) \
39 V(_GrowableObjectArray, get:length, GrowableArrayLength, 725548050) \ 39 V(_GrowableObjectArray, get:length, GrowableArrayLength, 725548050) \
40 V(_GrowableObjectArray, get:_capacity, GrowableArrayCapacity, 725548050) \ 40 V(_GrowableObjectArray, get:_capacity, GrowableArrayCapacity, 725548050) \
41 V(_StringBase, get:length, StringBaseLength, 320803993) \ 41 V(_StringBase, get:length, StringBaseLength, 320803993) \
42 V(_StringBase, get:isEmpty, StringBaseIsEmpty, 583130725) \ 42 V(_StringBase, get:isEmpty, StringBaseIsEmpty, 711547329) \
43 V(_StringBase, charCodeAt, StringBaseCharCodeAt, 984449525) \ 43 V(_StringBase, charCodeAt, StringBaseCharCodeAt, 984449525) \
44 V(_StringBase, [], StringBaseCharAt, 1062366987) \ 44 V(_StringBase, [], StringBaseCharAt, 1062366987) \
45 V(_IntegerImplementation, toDouble, IntegerToDouble, 1252792570) \ 45 V(_IntegerImplementation, toDouble, IntegerToDouble, 733149324) \
46 V(_Double, toInt, DoubleToInteger, 362666636) \ 46 V(_Double, toInt, DoubleToInteger, 362666636) \
47 V(::, sqrt, MathSqrt, 2232519) \ 47 V(::, sqrt, MathSqrt, 1662640002) \
48 48
49 // Class that recognizes the name and owner of a function and returns the 49 // Class that recognizes the name and owner of a function and returns the
50 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable 50 // corresponding enum. See RECOGNIZED_LIST above for list of recognizable
51 // functions. 51 // functions.
52 class MethodRecognizer : public AllStatic { 52 class MethodRecognizer : public AllStatic {
53 public: 53 public:
54 enum Kind { 54 enum Kind {
55 kUnknown, 55 kUnknown,
56 #define DEFINE_ENUM_LIST(class_name, function_name, enum_name, fp) k##enum_name, 56 #define DEFINE_ENUM_LIST(class_name, function_name, enum_name, fp) k##enum_name,
57 RECOGNIZED_LIST(DEFINE_ENUM_LIST) 57 RECOGNIZED_LIST(DEFINE_ENUM_LIST)
(...skipping 4264 matching lines...) Expand 10 before | Expand all | Expand 10 after
4322 ForwardInstructionIterator* current_iterator_; 4322 ForwardInstructionIterator* current_iterator_;
4323 4323
4324 private: 4324 private:
4325 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 4325 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
4326 }; 4326 };
4327 4327
4328 4328
4329 } // namespace dart 4329 } // namespace dart
4330 4330
4331 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 4331 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/debugger_api_impl_test.cc ('k') | runtime/vm/intrinsifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698