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

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

Issue 10872096: Simplify EmitTestAndCall and eliminated excessive code generation (two Smi tests emitted). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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_compiler.cc ('k') | runtime/vm/flow_graph_compiler_x64.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_COMPILER_IA32_H_ 5 #ifndef VM_FLOW_GRAPH_COMPILER_IA32_H_
6 #define VM_FLOW_GRAPH_COMPILER_IA32_H_ 6 #define VM_FLOW_GRAPH_COMPILER_IA32_H_
7 7
8 #ifndef VM_FLOW_GRAPH_COMPILER_H_ 8 #ifndef VM_FLOW_GRAPH_COMPILER_H_
9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_ia32.h. 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_ia32.h.
10 #endif 10 #endif
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 intptr_t token_pos, 147 intptr_t token_pos,
148 intptr_t try_index, 148 intptr_t try_index,
149 LocationSummary* locs); 149 LocationSummary* locs);
150 150
151 void EmitLoadIndexedGeneric(LoadIndexedComp* comp); 151 void EmitLoadIndexedGeneric(LoadIndexedComp* comp);
152 void EmitTestAndCall(const ICData& ic_data, 152 void EmitTestAndCall(const ICData& ic_data,
153 Register class_id_reg, 153 Register class_id_reg,
154 intptr_t arg_count, 154 intptr_t arg_count,
155 const Array& arg_names, 155 const Array& arg_names,
156 Label* deopt, 156 Label* deopt,
157 Label* done, // Can be NULL, which means fallthrough.
158 intptr_t deopt_id, 157 intptr_t deopt_id,
159 intptr_t token_index, 158 intptr_t token_index,
160 intptr_t try_index, 159 intptr_t try_index,
161 LocationSummary* locs); 160 LocationSummary* locs);
162 161
163 void EmitDoubleCompareBranch(Condition true_condition, 162 void EmitDoubleCompareBranch(Condition true_condition,
164 XmmRegister left, 163 XmmRegister left,
165 XmmRegister right, 164 XmmRegister right,
166 BranchInstr* branch); 165 BranchInstr* branch);
167 void EmitDoubleCompareBool(Condition true_condition, 166 void EmitDoubleCompareBool(Condition true_condition,
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 // that should be used when deoptimizing we store it in this variable. 325 // that should be used when deoptimizing we store it in this variable.
327 // In future AddDeoptStub should be moved out of the instruction template. 326 // In future AddDeoptStub should be moved out of the instruction template.
328 Environment* pending_deoptimization_env_; 327 Environment* pending_deoptimization_env_;
329 328
330 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 329 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
331 }; 330 };
332 331
333 } // namespace dart 332 } // namespace dart
334 333
335 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_ 334 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/flow_graph_compiler_x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698