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

Side by Side Diff: src/hydrogen-instructions.cc

Issue 309373002: ARM64: Regenerate instead of spilling and restoring cheap lithium instructions. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/hydrogen-instructions.h ('k') | src/lithium.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "v8.h" 5 #include "v8.h"
6 6
7 #include "double.h" 7 #include "double.h"
8 #include "factory.h" 8 #include "factory.h"
9 #include "hydrogen-infer-representation.h" 9 #include "hydrogen-infer-representation.h"
10 #include "property-details-inl.h" 10 #include "property-details-inl.h"
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 void HUseIterator::Advance() { 362 void HUseIterator::Advance() {
363 current_ = next_; 363 current_ = next_;
364 if (current_ != NULL) { 364 if (current_ != NULL) {
365 next_ = current_->tail(); 365 next_ = current_->tail();
366 value_ = current_->value(); 366 value_ = current_->value();
367 index_ = current_->index(); 367 index_ = current_->index();
368 } 368 }
369 } 369 }
370 370
371 371
372 bool HValue::HasPhiUses() const {
373 for (HUseIterator it(uses()); !it.Done(); it.Advance()) {
374 if (it.value()->IsPhi()) {
375 return true;
376 }
377 }
378 return false;
379 }
380
381
372 int HValue::UseCount() const { 382 int HValue::UseCount() const {
373 int count = 0; 383 int count = 0;
374 for (HUseIterator it(uses()); !it.Done(); it.Advance()) ++count; 384 for (HUseIterator it(uses()); !it.Done(); it.Advance()) ++count;
375 return count; 385 return count;
376 } 386 }
377 387
378 388
379 HUseListNode* HValue::RemoveUse(HValue* value, int index) { 389 HUseListNode* HValue::RemoveUse(HValue* value, int index) {
380 HUseListNode* previous = NULL; 390 HUseListNode* previous = NULL;
381 HUseListNode* current = use_list_; 391 HUseListNode* current = use_list_;
(...skipping 4380 matching lines...) Expand 10 before | Expand all | Expand 10 after
4762 break; 4772 break;
4763 case kExternalMemory: 4773 case kExternalMemory:
4764 stream->Add("[external-memory]"); 4774 stream->Add("[external-memory]");
4765 break; 4775 break;
4766 } 4776 }
4767 4777
4768 stream->Add("@%d", offset()); 4778 stream->Add("@%d", offset());
4769 } 4779 }
4770 4780
4771 } } // namespace v8::internal 4781 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/lithium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698