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

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

Issue 11568044: Add DoubleToSmi optimistically, preventing boxing/unboxing of doubles and propagate smi-nessof the … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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/flow_graph_optimizer.cc » ('j') | runtime/vm/flow_graph_optimizer.cc » ('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_CODE_GENERATOR_H_ 5 #ifndef VM_CODE_GENERATOR_H_
6 #define VM_CODE_GENERATOR_H_ 6 #define VM_CODE_GENERATOR_H_
7 7
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 #include "vm/runtime_entry.h" 9 #include "vm/runtime_entry.h"
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 V(Equality) \ 64 V(Equality) \
65 V(RelationalOp) \ 65 V(RelationalOp) \
66 V(EqualityClassCheck) \ 66 V(EqualityClassCheck) \
67 V(NoTypeFeedback) \ 67 V(NoTypeFeedback) \
68 V(UnaryOp) \ 68 V(UnaryOp) \
69 V(UnboxInteger) \ 69 V(UnboxInteger) \
70 V(CheckClass) \ 70 V(CheckClass) \
71 V(CheckSmi) \ 71 V(CheckSmi) \
72 V(CheckArrayBound) \ 72 V(CheckArrayBound) \
73 V(AtCall) \ 73 V(AtCall) \
74 V(DoubleToSmi) \
74 V(NumReasons) \ 75 V(NumReasons) \
75 76
76 enum DeoptReasonId { 77 enum DeoptReasonId {
77 #define DEFINE_ENUM_LIST(name) kDeopt##name, 78 #define DEFINE_ENUM_LIST(name) kDeopt##name,
78 DEOPT_REASONS(DEFINE_ENUM_LIST) 79 DEOPT_REASONS(DEFINE_ENUM_LIST)
79 #undef DEFINE_ENUM_LIST 80 #undef DEFINE_ENUM_LIST
80 }; 81 };
81 82
82 83
83 const char* DeoptReasonToText(intptr_t deopt_id); 84 const char* DeoptReasonToText(intptr_t deopt_id);
84 85
85 86
86 RawCode* ResolveCompileInstanceCallTarget( 87 RawCode* ResolveCompileInstanceCallTarget(
87 const Instance& receiver, 88 const Instance& receiver,
88 const ICData& ic_data, 89 const ICData& ic_data,
89 const Array& arguments_descriptor); 90 const Array& arguments_descriptor);
90 91
91 void DeoptimizeAll(); 92 void DeoptimizeAll();
92 void DeoptimizeIfOwner(const GrowableArray<intptr_t>& classes); 93 void DeoptimizeIfOwner(const GrowableArray<intptr_t>& classes);
93 94
94 } // namespace dart 95 } // namespace dart
95 96
96 #endif // VM_CODE_GENERATOR_H_ 97 #endif // VM_CODE_GENERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | runtime/vm/flow_graph_optimizer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698