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

Side by Side Diff: src/x64/lithium-gap-resolver-x64.cc

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/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.h » ('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 18 matching lines...) Expand all
29 29
30 #if defined(V8_TARGET_ARCH_X64) 30 #if defined(V8_TARGET_ARCH_X64)
31 31
32 #include "x64/lithium-gap-resolver-x64.h" 32 #include "x64/lithium-gap-resolver-x64.h"
33 #include "x64/lithium-codegen-x64.h" 33 #include "x64/lithium-codegen-x64.h"
34 34
35 namespace v8 { 35 namespace v8 {
36 namespace internal { 36 namespace internal {
37 37
38 LGapResolver::LGapResolver(LCodeGen* owner) 38 LGapResolver::LGapResolver(LCodeGen* owner)
39 : cgen_(owner), moves_(32) {} 39 : cgen_(owner), moves_(owner->zone(), 32) {}
40 40
41 41
42 void LGapResolver::Resolve(LParallelMove* parallel_move) { 42 void LGapResolver::Resolve(LParallelMove* parallel_move) {
43 ASSERT(moves_.is_empty()); 43 ASSERT(moves_.is_empty());
44 // Build up a worklist of moves. 44 // Build up a worklist of moves.
45 BuildInitialMoveList(parallel_move); 45 BuildInitialMoveList(parallel_move);
46 46
47 for (int i = 0; i < moves_.length(); ++i) { 47 for (int i = 0; i < moves_.length(); ++i) {
48 LMoveOperands move = moves_[i]; 48 LMoveOperands move = moves_[i];
49 // Skip constants to perform them last. They don't block other moves 49 // Skip constants to perform them last. They don't block other moves
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 moves_[i].set_source(source); 311 moves_[i].set_source(source);
312 } 312 }
313 } 313 }
314 } 314 }
315 315
316 #undef __ 316 #undef __
317 317
318 } } // namespace v8::internal 318 } } // namespace v8::internal
319 319
320 #endif // V8_TARGET_ARCH_X64 320 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698