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

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

Issue 337503003: Fix a bug in ParallelMoveResolver::AllocateScratchRegister, where we end up allocating PC on ARM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | « no previous file | 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 private: 55 private:
56 ParallelMoveResolver* resolver_; 56 ParallelMoveResolver* resolver_;
57 Register reg_; 57 Register reg_;
58 bool spilled_; 58 bool spilled_;
59 }; 59 };
60 60
61 61
62 bool IsScratchLocation(Location loc); 62 bool IsScratchLocation(Location loc);
63 intptr_t AllocateScratchRegister(Location::Kind kind, 63 intptr_t AllocateScratchRegister(Location::Kind kind,
64 intptr_t blocked, 64 intptr_t blocked,
65 intptr_t register_count, 65 intptr_t first_free_register,
66 intptr_t last_free_register,
66 bool* spilled); 67 bool* spilled);
67 68
68 void SpillScratch(Register reg); 69 void SpillScratch(Register reg);
69 void RestoreScratch(Register reg); 70 void RestoreScratch(Register reg);
70 void SpillFpuScratch(FpuRegister reg); 71 void SpillFpuScratch(FpuRegister reg);
71 void RestoreFpuScratch(FpuRegister reg); 72 void RestoreFpuScratch(FpuRegister reg);
72 73
73 // friend class ScratchXmmRegisterScope; 74 // friend class ScratchXmmRegisterScope;
74 75
75 // Build the initial list of moves. 76 // Build the initial list of moves.
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 intptr_t entry_patch_pc_offset_; 602 intptr_t entry_patch_pc_offset_;
602 intptr_t patch_code_pc_offset_; 603 intptr_t patch_code_pc_offset_;
603 intptr_t lazy_deopt_pc_offset_; 604 intptr_t lazy_deopt_pc_offset_;
604 605
605 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 606 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
606 }; 607 };
607 608
608 } // namespace dart 609 } // namespace dart
609 610
610 #endif // VM_FLOW_GRAPH_COMPILER_H_ 611 #endif // VM_FLOW_GRAPH_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698