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

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

Issue 1756403002: VM: Add smi fast path operations for precompiled code (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: addressed comments Created 4 years, 9 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
« no previous file with comments | « runtime/vm/constant_propagator.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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 TokenPosition token_pos, 453 TokenPosition token_pos,
454 LocationSummary* locs); 454 LocationSummary* locs);
455 455
456 // Pass a value for try-index where block is not available (e.g. slow path). 456 // Pass a value for try-index where block is not available (e.g. slow path).
457 void EmitMegamorphicInstanceCall( 457 void EmitMegamorphicInstanceCall(
458 const ICData& ic_data, 458 const ICData& ic_data,
459 intptr_t argument_count, 459 intptr_t argument_count,
460 intptr_t deopt_id, 460 intptr_t deopt_id,
461 TokenPosition token_pos, 461 TokenPosition token_pos,
462 LocationSummary* locs, 462 LocationSummary* locs,
463 intptr_t try_index = CatchClauseNode::kInvalidTryIndex); 463 intptr_t try_index,
464 intptr_t slow_path_argument_count = 0);
464 465
465 void EmitSwitchableInstanceCall(const ICData& ic_data, 466 void EmitSwitchableInstanceCall(const ICData& ic_data,
466 intptr_t argument_count, 467 intptr_t argument_count,
467 intptr_t deopt_id, 468 intptr_t deopt_id,
468 TokenPosition token_pos, 469 TokenPosition token_pos,
469 LocationSummary* locs); 470 LocationSummary* locs);
470 471
471 void EmitTestAndCall(const ICData& ic_data, 472 void EmitTestAndCall(const ICData& ic_data,
472 intptr_t arg_count, 473 intptr_t arg_count,
473 const Array& arg_names, 474 const Array& arg_names,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 void AddExceptionHandler(intptr_t try_index, 508 void AddExceptionHandler(intptr_t try_index,
508 intptr_t outer_try_index, 509 intptr_t outer_try_index,
509 intptr_t pc_offset, 510 intptr_t pc_offset,
510 const Array& handler_types, 511 const Array& handler_types,
511 bool needs_stacktrace); 512 bool needs_stacktrace);
512 void SetNeedsStacktrace(intptr_t try_index); 513 void SetNeedsStacktrace(intptr_t try_index);
513 void AddCurrentDescriptor(RawPcDescriptors::Kind kind, 514 void AddCurrentDescriptor(RawPcDescriptors::Kind kind,
514 intptr_t deopt_id, 515 intptr_t deopt_id,
515 TokenPosition token_pos); 516 TokenPosition token_pos);
516 517
517 void RecordSafepoint(LocationSummary* locs); 518 void RecordSafepoint(LocationSummary* locs,
519 intptr_t slow_path_argument_count = 0);
518 520
519 Label* AddDeoptStub(intptr_t deopt_id, 521 Label* AddDeoptStub(intptr_t deopt_id,
520 ICData::DeoptReasonId reason, 522 ICData::DeoptReasonId reason,
521 uint32_t flags = 0); 523 uint32_t flags = 0);
522 524
523 void AddDeoptIndexAtCall(intptr_t deopt_id, TokenPosition token_pos); 525 void AddDeoptIndexAtCall(intptr_t deopt_id, TokenPosition token_pos);
524 526
525 void AddSlowPathCode(SlowPathCode* slow_path); 527 void AddSlowPathCode(SlowPathCode* slow_path);
526 528
527 void FinalizeExceptionHandlers(const Code& code); 529 void FinalizeExceptionHandlers(const Code& code);
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 const GrowableArray<const Function*>& inline_id_to_function_; 805 const GrowableArray<const Function*>& inline_id_to_function_;
804 const GrowableArray<TokenPosition>& inline_id_to_token_pos_; 806 const GrowableArray<TokenPosition>& inline_id_to_token_pos_;
805 const GrowableArray<intptr_t>& caller_inline_id_; 807 const GrowableArray<intptr_t>& caller_inline_id_;
806 808
807 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 809 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
808 }; 810 };
809 811
810 } // namespace dart 812 } // namespace dart
811 813
812 #endif // VM_FLOW_GRAPH_COMPILER_H_ 814 #endif // VM_FLOW_GRAPH_COMPILER_H_
OLDNEW
« no previous file with comments | « runtime/vm/constant_propagator.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698