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

Side by Side Diff: src/arm/lithium-arm.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/allocation-inl.h ('k') | src/arm/lithium-arm.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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 enum InnerPosition { 327 enum InnerPosition {
328 BEFORE, 328 BEFORE,
329 START, 329 START,
330 END, 330 END,
331 AFTER, 331 AFTER,
332 FIRST_INNER_POSITION = BEFORE, 332 FIRST_INNER_POSITION = BEFORE,
333 LAST_INNER_POSITION = AFTER 333 LAST_INNER_POSITION = AFTER
334 }; 334 };
335 335
336 LParallelMove* GetOrCreateParallelMove(InnerPosition pos) { 336 LParallelMove* GetOrCreateParallelMove(InnerPosition pos) {
337 if (parallel_moves_[pos] == NULL) parallel_moves_[pos] = new LParallelMove; 337 if (parallel_moves_[pos] == NULL) {
338 parallel_moves_[pos] = new LParallelMove(block_->zone());
339 }
338 return parallel_moves_[pos]; 340 return parallel_moves_[pos];
339 } 341 }
340 342
341 LParallelMove* GetParallelMove(InnerPosition pos) { 343 LParallelMove* GetParallelMove(InnerPosition pos) {
342 return parallel_moves_[pos]; 344 return parallel_moves_[pos];
343 } 345 }
344 346
345 private: 347 private:
346 LParallelMove* parallel_moves_[LAST_INNER_POSITION + 1]; 348 LParallelMove* parallel_moves_[LAST_INNER_POSITION + 1];
347 HBasicBlock* block_; 349 HBasicBlock* block_;
(...skipping 1809 matching lines...) Expand 10 before | Expand all | Expand 10 after
2157 2159
2158 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2160 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2159 }; 2161 };
2160 2162
2161 #undef DECLARE_HYDROGEN_ACCESSOR 2163 #undef DECLARE_HYDROGEN_ACCESSOR
2162 #undef DECLARE_CONCRETE_INSTRUCTION 2164 #undef DECLARE_CONCRETE_INSTRUCTION
2163 2165
2164 } } // namespace v8::internal 2166 } } // namespace v8::internal
2165 2167
2166 #endif // V8_ARM_LITHIUM_ARM_H_ 2168 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/allocation-inl.h ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698