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

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

Issue 155723005: A64: Synchronize with r19001. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/hydrogen-load-elimination.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 2595 matching lines...) Expand 10 before | Expand all | Expand 10 after
2606 } 2606 }
2607 } 2607 }
2608 r = Representation::Tagged(); 2608 r = Representation::Tagged();
2609 } 2609 }
2610 } 2610 }
2611 set_representation(r); 2611 set_representation(r);
2612 SetFlag(kUseGVN); 2612 SetFlag(kUseGVN);
2613 } 2613 }
2614 2614
2615 2615
2616 bool HConstant::ImmortalImmovable() const {
2617 if (has_int32_value_) {
2618 return false;
2619 }
2620 if (has_double_value_) {
2621 if (IsSpecialDouble()) {
2622 return true;
2623 }
2624 return false;
2625 }
2626 if (has_external_reference_value_) {
2627 return false;
2628 }
2629
2630 ASSERT(!object_.handle().is_null());
2631 Heap* heap = isolate()->heap();
2632 ASSERT(!object_.IsKnownGlobal(heap->minus_zero_value()));
2633 ASSERT(!object_.IsKnownGlobal(heap->nan_value()));
2634 return
2635 #define IMMORTAL_IMMOVABLE_ROOT(name) \
2636 object_.IsKnownGlobal(heap->name()) ||
2637 IMMORTAL_IMMOVABLE_ROOT_LIST(IMMORTAL_IMMOVABLE_ROOT)
2638 #undef IMMORTAL_IMMOVABLE_ROOT
2639 #define INTERNALIZED_STRING(name, value) \
2640 object_.IsKnownGlobal(heap->name()) ||
2641 INTERNALIZED_STRING_LIST(INTERNALIZED_STRING)
2642 #undef INTERNALIZED_STRING
2643 #define STRING_TYPE(NAME, size, name, Name) \
2644 object_.IsKnownGlobal(heap->name##_map()) ||
2645 STRING_TYPE_LIST(STRING_TYPE)
2646 #undef STRING_TYPE
2647 false;
2648 }
2649
2650
2616 bool HConstant::EmitAtUses() { 2651 bool HConstant::EmitAtUses() {
2617 ASSERT(IsLinked()); 2652 ASSERT(IsLinked());
2618 if (block()->graph()->has_osr() && 2653 if (block()->graph()->has_osr() &&
2619 block()->graph()->IsStandardConstant(this)) { 2654 block()->graph()->IsStandardConstant(this)) {
2620 // TODO(titzer): this seems like a hack that should be fixed by custom OSR. 2655 // TODO(titzer): this seems like a hack that should be fixed by custom OSR.
2621 return true; 2656 return true;
2622 } 2657 }
2623 if (UseCount() == 0) return true; 2658 if (UseCount() == 0) return true;
2624 if (IsCell()) return false; 2659 if (IsCell()) return false;
2625 if (representation().IsDouble()) return false; 2660 if (representation().IsDouble()) return false;
(...skipping 1792 matching lines...) Expand 10 before | Expand all | Expand 10 after
4418 break; 4453 break;
4419 case kExternalMemory: 4454 case kExternalMemory:
4420 stream->Add("[external-memory]"); 4455 stream->Add("[external-memory]");
4421 break; 4456 break;
4422 } 4457 }
4423 4458
4424 stream->Add("@%d", offset()); 4459 stream->Add("@%d", offset());
4425 } 4460 }
4426 4461
4427 } } // namespace v8::internal 4462 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/hydrogen-load-elimination.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698