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

Side by Side Diff: src/ia32/lithium-ia32.cc

Issue 5605004: Remove NearestNextGapPos. It is not used anymore. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 10 years 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 return instructions_[index]->IsGap(); 453 return instructions_[index]->IsGap();
454 } 454 }
455 455
456 456
457 int LChunk::NearestGapPos(int index) const { 457 int LChunk::NearestGapPos(int index) const {
458 while (!IsGapAt(index)) index--; 458 while (!IsGapAt(index)) index--;
459 return index; 459 return index;
460 } 460 }
461 461
462 462
463 int LChunk::NearestNextGapPos(int index) const {
464 while (!IsGapAt(index)) index++;
465 return index;
466 }
467
468
469 void LChunk::AddGapMove(int index, LOperand* from, LOperand* to) { 463 void LChunk::AddGapMove(int index, LOperand* from, LOperand* to) {
470 GetGapAt(index)->GetOrCreateParallelMove(LGap::START)->AddMove(from, to); 464 GetGapAt(index)->GetOrCreateParallelMove(LGap::START)->AddMove(from, to);
471 } 465 }
472 466
473 467
474 class LGapNode: public ZoneObject { 468 class LGapNode: public ZoneObject {
475 public: 469 public:
476 explicit LGapNode(LOperand* operand) 470 explicit LGapNode(LOperand* operand)
477 : operand_(operand), resolved_(false), visited_id_(-1) { } 471 : operand_(operand), resolved_(false), visited_id_(-1) { }
478 472
(...skipping 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after
2087 void LPointerMap::PrintTo(StringStream* stream) const { 2081 void LPointerMap::PrintTo(StringStream* stream) const {
2088 stream->Add("{"); 2082 stream->Add("{");
2089 for (int i = 0; i < pointer_operands_.length(); ++i) { 2083 for (int i = 0; i < pointer_operands_.length(); ++i) {
2090 if (i != 0) stream->Add(";"); 2084 if (i != 0) stream->Add(";");
2091 pointer_operands_[i]->PrintTo(stream); 2085 pointer_operands_[i]->PrintTo(stream);
2092 } 2086 }
2093 stream->Add("} @%d", position()); 2087 stream->Add("} @%d", position());
2094 } 2088 }
2095 2089
2096 } } // namespace v8::internal 2090 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/lithium-allocator.cc » ('j') | src/lithium-allocator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698