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

Side by Side Diff: src/hydrogen-environment-liveness.h

Issue 17827005: Get rid of ZoneScope completely. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Suggestions from danno 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 | « src/gdb-jit.cc ('k') | src/hydrogen-environment-liveness.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void ZapEnvironmentSlotsForInstruction(HEnvironmentMarker* marker); 55 void ZapEnvironmentSlotsForInstruction(HEnvironmentMarker* marker);
56 void UpdateLivenessAtBlockEnd(HBasicBlock* block, BitVector* live); 56 void UpdateLivenessAtBlockEnd(HBasicBlock* block, BitVector* live);
57 void UpdateLivenessAtInstruction(HInstruction* instr, BitVector* live); 57 void UpdateLivenessAtInstruction(HInstruction* instr, BitVector* live);
58 58
59 Zone* zone() { return &zone_; } 59 Zone* zone() { return &zone_; }
60 60
61 HGraph* graph_; 61 HGraph* graph_;
62 // Use a dedicated Zone for this phase, with a ZoneScope to ensure it 62 // Use a dedicated Zone for this phase, with a ZoneScope to ensure it
63 // gets freed. 63 // gets freed.
64 Zone zone_; 64 Zone zone_;
65 ZoneScope zone_scope_;
66 65
67 int block_count_; 66 int block_count_;
68 67
69 // Largest number of local variables in any environment in the graph 68 // Largest number of local variables in any environment in the graph
70 // (including inlined environments). 69 // (including inlined environments).
71 int maximum_environment_size_; 70 int maximum_environment_size_;
72 71
73 // Per-block data. All these lists are indexed by block_id. 72 // Per-block data. All these lists are indexed by block_id.
74 ZoneList<BitVector*>* live_at_block_start_; 73 ZoneList<BitVector*>* live_at_block_start_;
75 ZoneList<HSimulate*>* first_simulate_; 74 ZoneList<HSimulate*>* first_simulate_;
76 ZoneList<BitVector*>* first_simulate_invalid_for_index_; 75 ZoneList<BitVector*>* first_simulate_invalid_for_index_;
77 76
78 // List of all HEnvironmentMarker instructions for quick iteration/deletion. 77 // List of all HEnvironmentMarker instructions for quick iteration/deletion.
79 // It is populated during the first pass over the graph, controlled by 78 // It is populated during the first pass over the graph, controlled by
80 // |collect_markers_|. 79 // |collect_markers_|.
81 ZoneList<HEnvironmentMarker*>* markers_; 80 ZoneList<HEnvironmentMarker*>* markers_;
82 bool collect_markers_; 81 bool collect_markers_;
83 82
84 // Keeps track of the last simulate seen, as well as the environment slots 83 // Keeps track of the last simulate seen, as well as the environment slots
85 // for which a new live range has started since (so they must not be zapped 84 // for which a new live range has started since (so they must not be zapped
86 // in that simulate when the end of another live range of theirs is found). 85 // in that simulate when the end of another live range of theirs is found).
87 HSimulate* last_simulate_; 86 HSimulate* last_simulate_;
88 BitVector* went_live_since_last_simulate_; 87 BitVector* went_live_since_last_simulate_;
89 }; 88 };
90 89
91 90
92 } } // namespace v8::internal 91 } } // namespace v8::internal
93 92
94 #endif /* V8_HYDROGEN_ENVIRONMENT_LIVENESS_H_ */ 93 #endif /* V8_HYDROGEN_ENVIRONMENT_LIVENESS_H_ */
OLDNEW
« no previous file with comments | « src/gdb-jit.cc ('k') | src/hydrogen-environment-liveness.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698