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

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

Issue 15741002: Use a uniform way to emit code for all instructions. (Closed) Base URL: https://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 | « no previous file | runtime/vm/flow_graph_compiler.cc » ('j') | runtime/vm/intermediate_language.h » ('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_FLOW_GRAPH_COMPILER_H_ 5 #ifndef VM_FLOW_GRAPH_COMPILER_H_
6 #define VM_FLOW_GRAPH_COMPILER_H_ 6 #define VM_FLOW_GRAPH_COMPILER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/code_descriptors.h" 10 #include "vm/code_descriptors.h"
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 const AbstractType& type, 326 const AbstractType& type,
327 Label* is_instance_lbl, 327 Label* is_instance_lbl,
328 Label* is_not_instance_lbl); 328 Label* is_not_instance_lbl);
329 void GenerateStringTypeCheck(Register kClassIdReg, 329 void GenerateStringTypeCheck(Register kClassIdReg,
330 Label* is_instance_lbl, 330 Label* is_instance_lbl,
331 Label* is_not_instance_lbl); 331 Label* is_not_instance_lbl);
332 void GenerateListTypeCheck(Register kClassIdReg, 332 void GenerateListTypeCheck(Register kClassIdReg,
333 Label* is_instance_lbl); 333 Label* is_instance_lbl);
334 334
335 void EmitComment(Instruction* instr); 335 void EmitComment(Instruction* instr);
336 void EmitInstruction(Instruction* instr);
336 337
337 void EmitOptimizedInstanceCall(ExternalLabel* target_label, 338 void EmitOptimizedInstanceCall(ExternalLabel* target_label,
338 const ICData& ic_data, 339 const ICData& ic_data,
339 const Array& arguments_descriptor, 340 const Array& arguments_descriptor,
340 intptr_t argument_count, 341 intptr_t argument_count,
341 intptr_t deopt_id, 342 intptr_t deopt_id,
342 intptr_t token_pos, 343 intptr_t token_pos,
343 LocationSummary* locs); 344 LocationSummary* locs);
344 345
345 void EmitInstanceCall(ExternalLabel* target_label, 346 void EmitInstanceCall(ExternalLabel* target_label,
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 // that should be used when deoptimizing we store it in this variable. 593 // that should be used when deoptimizing we store it in this variable.
593 // In future AddDeoptStub should be moved out of the instruction template. 594 // In future AddDeoptStub should be moved out of the instruction template.
594 Environment* pending_deoptimization_env_; 595 Environment* pending_deoptimization_env_;
595 596
596 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 597 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
597 }; 598 };
598 599
599 } // namespace dart 600 } // namespace dart
600 601
601 #endif // VM_FLOW_GRAPH_COMPILER_H_ 602 #endif // VM_FLOW_GRAPH_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler.cc » ('j') | runtime/vm/intermediate_language.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698