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

Side by Side Diff: src/hydrogen.h

Issue 7374002: Refactor allocation policies. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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/globals.h ('k') | src/hydrogen.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 ZoneList<int> deleted_phis_; 178 ZoneList<int> deleted_phis_;
179 HBasicBlock* parent_loop_header_; 179 HBasicBlock* parent_loop_header_;
180 bool is_inline_return_target_; 180 bool is_inline_return_target_;
181 bool is_deoptimizing_; 181 bool is_deoptimizing_;
182 }; 182 };
183 183
184 184
185 class HLoopInformation: public ZoneObject { 185 class HLoopInformation: public ZoneObject {
186 public: 186 public:
187 explicit HLoopInformation(HBasicBlock* loop_header) 187 explicit HLoopInformation(HBasicBlock* loop_header)
188 : back_edges_(4), 188 : back_edges_(ZONE, 4),
189 loop_header_(loop_header), 189 loop_header_(loop_header),
190 blocks_(8), 190 blocks_(ZONE, 8),
191 stack_check_(NULL) { 191 stack_check_(NULL) {
192 blocks_.Add(loop_header); 192 blocks_.Add(loop_header);
193 } 193 }
194 virtual ~HLoopInformation() {} 194 virtual ~HLoopInformation() {}
195 195
196 const ZoneList<HBasicBlock*>* back_edges() const { return &back_edges_; } 196 const ZoneList<HBasicBlock*>* back_edges() const { return &back_edges_; }
197 const ZoneList<HBasicBlock*>* blocks() const { return &blocks_; } 197 const ZoneList<HBasicBlock*>* blocks() const { return &blocks_; }
198 HBasicBlock* loop_header() const { return loop_header_; } 198 HBasicBlock* loop_header() const { return loop_header_; }
199 HBasicBlock* GetLastBackEdge() const; 199 HBasicBlock* GetLastBackEdge() const;
200 void RegisterBackEdge(HBasicBlock* block); 200 void RegisterBackEdge(HBasicBlock* block);
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
1220 const char* filename_; 1220 const char* filename_;
1221 HeapStringAllocator string_allocator_; 1221 HeapStringAllocator string_allocator_;
1222 StringStream trace_; 1222 StringStream trace_;
1223 int indent_; 1223 int indent_;
1224 }; 1224 };
1225 1225
1226 1226
1227 } } // namespace v8::internal 1227 } } // namespace v8::internal
1228 1228
1229 #endif // V8_HYDROGEN_H_ 1229 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698