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

Side by Side Diff: src/objects-debug.cc

Issue 10784014: Removed transitions from the accessor pair descriptors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 8 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/objects.cc ('k') | src/objects-inl.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 // 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 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 return !target->IsMap() || Map::cast(target)->GetBackPointer() == current_map; 942 return !target->IsMap() || Map::cast(target)->GetBackPointer() == current_map;
943 } 943 }
944 944
945 945
946 bool TransitionArray::IsConsistentWithBackPointers(Map* current_map) { 946 bool TransitionArray::IsConsistentWithBackPointers(Map* current_map) {
947 if (HasElementsTransition() && 947 if (HasElementsTransition() &&
948 !CheckOneBackPointer(current_map, elements_transition())) { 948 !CheckOneBackPointer(current_map, elements_transition())) {
949 return false; 949 return false;
950 } 950 }
951 for (int i = 0; i < number_of_transitions(); ++i) { 951 for (int i = 0; i < number_of_transitions(); ++i) {
952 Object* value = GetValue(i); 952 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false;
953 if (value->IsAccessorPair()) {
954 AccessorPair* accessors = AccessorPair::cast(value);
955 if (!CheckOneBackPointer(current_map, accessors->getter())) return false;
956 if (!CheckOneBackPointer(current_map, accessors->setter())) return false;
957 } else {
958 ASSERT(value->IsMap());
959 if (!CheckOneBackPointer(current_map, value)) return false;
960 }
961 } 953 }
962 return true; 954 return true;
963 } 955 }
964 956
965 957
966 void JSFunctionResultCache::JSFunctionResultCacheVerify() { 958 void JSFunctionResultCache::JSFunctionResultCacheVerify() {
967 JSFunction::cast(get(kFactoryIndex))->Verify(); 959 JSFunction::cast(get(kFactoryIndex))->Verify();
968 960
969 int size = Smi::cast(get(kCacheSizeIndex))->value(); 961 int size = Smi::cast(get(kCacheSizeIndex))->value();
970 ASSERT(kEntriesIndex <= size); 962 ASSERT(kEntriesIndex <= size);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 FixedArray* proto_transitions = GetPrototypeTransitions(); 1008 FixedArray* proto_transitions = GetPrototypeTransitions();
1017 MemsetPointer(proto_transitions->data_start(), 1009 MemsetPointer(proto_transitions->data_start(),
1018 GetHeap()->the_hole_value(), 1010 GetHeap()->the_hole_value(),
1019 proto_transitions->length()); 1011 proto_transitions->length());
1020 } 1012 }
1021 1013
1022 1014
1023 #endif // DEBUG 1015 #endif // DEBUG
1024 1016
1025 } } // namespace v8::internal 1017 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698