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

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

Issue 1016803002: Remove PropertyCell space (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-codegen-ia32.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 // 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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/double.h" 8 #include "src/double.h"
9 #include "src/factory.h" 9 #include "src/factory.h"
10 #include "src/hydrogen-infer-representation.h" 10 #include "src/hydrogen-infer-representation.h"
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 case HValue::kClampToUint8: 864 case HValue::kClampToUint8:
865 case HValue::kDateField: 865 case HValue::kDateField:
866 case HValue::kDeoptimize: 866 case HValue::kDeoptimize:
867 case HValue::kDiv: 867 case HValue::kDiv:
868 case HValue::kForInCacheArray: 868 case HValue::kForInCacheArray:
869 case HValue::kForInPrepareMap: 869 case HValue::kForInPrepareMap:
870 case HValue::kFunctionLiteral: 870 case HValue::kFunctionLiteral:
871 case HValue::kInvokeFunction: 871 case HValue::kInvokeFunction:
872 case HValue::kLoadContextSlot: 872 case HValue::kLoadContextSlot:
873 case HValue::kLoadFunctionPrototype: 873 case HValue::kLoadFunctionPrototype:
874 case HValue::kLoadGlobalCell:
875 case HValue::kLoadKeyed: 874 case HValue::kLoadKeyed:
876 case HValue::kLoadKeyedGeneric: 875 case HValue::kLoadKeyedGeneric:
877 case HValue::kMathFloorOfDiv: 876 case HValue::kMathFloorOfDiv:
878 case HValue::kMod: 877 case HValue::kMod:
879 case HValue::kMul: 878 case HValue::kMul:
880 case HValue::kOsrEntry: 879 case HValue::kOsrEntry:
881 case HValue::kPower: 880 case HValue::kPower:
882 case HValue::kRor: 881 case HValue::kRor:
883 case HValue::kSar: 882 case HValue::kSar:
884 case HValue::kSeqStringSetChar: 883 case HValue::kSeqStringSetChar:
885 case HValue::kShl: 884 case HValue::kShl:
886 case HValue::kShr: 885 case HValue::kShr:
887 case HValue::kSimulate: 886 case HValue::kSimulate:
888 case HValue::kStackCheck: 887 case HValue::kStackCheck:
889 case HValue::kStoreContextSlot: 888 case HValue::kStoreContextSlot:
890 case HValue::kStoreGlobalCell:
891 case HValue::kStoreKeyedGeneric: 889 case HValue::kStoreKeyedGeneric:
892 case HValue::kStringAdd: 890 case HValue::kStringAdd:
893 case HValue::kStringCompareAndBranch: 891 case HValue::kStringCompareAndBranch:
894 case HValue::kSub: 892 case HValue::kSub:
895 case HValue::kToFastProperties: 893 case HValue::kToFastProperties:
896 case HValue::kTransitionElementsKind: 894 case HValue::kTransitionElementsKind:
897 case HValue::kTrapAllocationMemento: 895 case HValue::kTrapAllocationMemento:
898 case HValue::kTypeof: 896 case HValue::kTypeof:
899 case HValue::kUnaryMathOperation: 897 case HValue::kUnaryMathOperation:
900 case HValue::kWrapReceiver: 898 case HValue::kWrapReceiver:
(...skipping 2716 matching lines...) Expand 10 before | Expand all | Expand 10 after
3617 ElementsKind to_kind = transitioned_map().handle()->elements_kind(); 3615 ElementsKind to_kind = transitioned_map().handle()->elements_kind();
3618 os << " " << *original_map().handle() << " [" 3616 os << " " << *original_map().handle() << " ["
3619 << ElementsAccessor::ForKind(from_kind)->name() << "] -> " 3617 << ElementsAccessor::ForKind(from_kind)->name() << "] -> "
3620 << *transitioned_map().handle() << " [" 3618 << *transitioned_map().handle() << " ["
3621 << ElementsAccessor::ForKind(to_kind)->name() << "]"; 3619 << ElementsAccessor::ForKind(to_kind)->name() << "]";
3622 if (IsSimpleMapChangeTransition(from_kind, to_kind)) os << " (simple)"; 3620 if (IsSimpleMapChangeTransition(from_kind, to_kind)) os << " (simple)";
3623 return os; 3621 return os;
3624 } 3622 }
3625 3623
3626 3624
3627 std::ostream& HLoadGlobalCell::PrintDataTo(std::ostream& os) const { // NOLINT
3628 os << "[" << *cell().handle() << "]";
3629 if (details_.IsConfigurable()) os << " (configurable)";
3630 if (details_.IsReadOnly()) os << " (read-only)";
3631 return os;
3632 }
3633
3634
3635 std::ostream& HLoadGlobalGeneric::PrintDataTo( 3625 std::ostream& HLoadGlobalGeneric::PrintDataTo(
3636 std::ostream& os) const { // NOLINT 3626 std::ostream& os) const { // NOLINT
3637 return os << name()->ToCString().get() << " "; 3627 return os << name()->ToCString().get() << " ";
3638 } 3628 }
3639 3629
3640 3630
3641 std::ostream& HInnerAllocatedObject::PrintDataTo( 3631 std::ostream& HInnerAllocatedObject::PrintDataTo(
3642 std::ostream& os) const { // NOLINT 3632 std::ostream& os) const { // NOLINT
3643 os << NameOf(base_object()) << " offset "; 3633 os << NameOf(base_object()) << " offset ";
3644 return offset()->PrintTo(os); 3634 return offset()->PrintTo(os);
3645 } 3635 }
3646 3636
3647 3637
3648 std::ostream& HStoreGlobalCell::PrintDataTo(std::ostream& os) const { // NOLINT
3649 os << "[" << *cell().handle() << "] = " << NameOf(value());
3650 if (details_.IsConfigurable()) os << " (configurable)";
3651 if (details_.IsReadOnly()) os << " (read-only)";
3652 return os;
3653 }
3654
3655
3656 std::ostream& HLoadContextSlot::PrintDataTo(std::ostream& os) const { // NOLINT 3638 std::ostream& HLoadContextSlot::PrintDataTo(std::ostream& os) const { // NOLINT
3657 return os << NameOf(value()) << "[" << slot_index() << "]"; 3639 return os << NameOf(value()) << "[" << slot_index() << "]";
3658 } 3640 }
3659 3641
3660 3642
3661 std::ostream& HStoreContextSlot::PrintDataTo( 3643 std::ostream& HStoreContextSlot::PrintDataTo(
3662 std::ostream& os) const { // NOLINT 3644 std::ostream& os) const { // NOLINT
3663 return os << NameOf(context()) << "[" << slot_index() 3645 return os << NameOf(context()) << "[" << slot_index()
3664 << "] = " << NameOf(value()); 3646 << "] = " << NameOf(value());
3665 } 3647 }
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
4729 break; 4711 break;
4730 case HObjectAccess::kExternalMemory: 4712 case HObjectAccess::kExternalMemory:
4731 os << "[external-memory]"; 4713 os << "[external-memory]";
4732 break; 4714 break;
4733 } 4715 }
4734 4716
4735 return os << "@" << access.offset(); 4717 return os << "@" << access.offset();
4736 } 4718 }
4737 4719
4738 } } // namespace v8::internal 4720 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698