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

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

Issue 17554003: Change static calls in unoptimized code to always call via a stub. Using ICData, the call count of … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('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_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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 // Emit code to load a Value into register 'dst'. 479 // Emit code to load a Value into register 'dst'.
480 void LoadValue(Register dst, Value* value); 480 void LoadValue(Register dst, Value* value);
481 481
482 void EmitStaticCall(const Function& function, 482 void EmitStaticCall(const Function& function,
483 const Array& arguments_descriptor, 483 const Array& arguments_descriptor,
484 intptr_t argument_count, 484 intptr_t argument_count,
485 intptr_t deopt_id, 485 intptr_t deopt_id,
486 intptr_t token_pos, 486 intptr_t token_pos,
487 LocationSummary* locs); 487 LocationSummary* locs);
488 488
489 void EmitUnoptimizedStaticCall(const Function& function,
490 const Array& arguments_descriptor,
491 intptr_t argument_count,
492 intptr_t deopt_id,
493 intptr_t token_pos,
494 LocationSummary* locs);
495
489 // Type checking helper methods. 496 // Type checking helper methods.
490 void CheckClassIds(Register class_id_reg, 497 void CheckClassIds(Register class_id_reg,
491 const GrowableArray<intptr_t>& class_ids, 498 const GrowableArray<intptr_t>& class_ids,
492 Label* is_instance_lbl, 499 Label* is_instance_lbl,
493 Label* is_not_instance_lbl); 500 Label* is_not_instance_lbl);
494 501
495 RawSubtypeTestCache* GenerateInlineInstanceof(intptr_t token_pos, 502 RawSubtypeTestCache* GenerateInlineInstanceof(intptr_t token_pos,
496 const AbstractType& type, 503 const AbstractType& type,
497 Label* is_instance_lbl, 504 Label* is_instance_lbl,
498 Label* is_not_instance_lbl); 505 Label* is_not_instance_lbl);
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 // that should be used when deoptimizing we store it in this variable. 595 // that should be used when deoptimizing we store it in this variable.
589 // In future AddDeoptStub should be moved out of the instruction template. 596 // In future AddDeoptStub should be moved out of the instruction template.
590 Environment* pending_deoptimization_env_; 597 Environment* pending_deoptimization_env_;
591 598
592 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 599 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
593 }; 600 };
594 601
595 } // namespace dart 602 } // namespace dart
596 603
597 #endif // VM_FLOW_GRAPH_COMPILER_H_ 604 #endif // VM_FLOW_GRAPH_COMPILER_H_
OLDNEW
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698