| OLD | NEW |
| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 void TransitionArray::SetTarget(int transition_number, Map* value) { | 180 void TransitionArray::SetTarget(int transition_number, Map* value) { |
| 181 ASSERT(transition_number < number_of_transitions()); | 181 ASSERT(transition_number < number_of_transitions()); |
| 182 set(ToTargetIndex(transition_number), value); | 182 set(ToTargetIndex(transition_number), value); |
| 183 } | 183 } |
| 184 | 184 |
| 185 | 185 |
| 186 PropertyDetails TransitionArray::GetTargetDetails(int transition_number) { | 186 PropertyDetails TransitionArray::GetTargetDetails(int transition_number) { |
| 187 Map* map = GetTarget(transition_number); | 187 Map* map = GetTarget(transition_number); |
| 188 DescriptorArray* descriptors = map->instance_descriptors(); | 188 DescriptorArray* descriptors = map->instance_descriptors(); |
| 189 int descriptor = map->LastAdded(); | 189 int descriptor = map->LastAdded(); |
| 190 ASSERT(descriptor != Map::kNoneAdded); | |
| 191 return descriptors->GetDetails(descriptor); | 190 return descriptors->GetDetails(descriptor); |
| 192 } | 191 } |
| 193 | 192 |
| 194 | 193 |
| 195 int TransitionArray::Search(String* name) { | 194 int TransitionArray::Search(String* name) { |
| 196 return internal::Search(this, name); | 195 return internal::Search(this, name); |
| 197 } | 196 } |
| 198 | 197 |
| 199 | 198 |
| 200 void TransitionArray::Set(int transition_number, | 199 void TransitionArray::Set(int transition_number, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 211 | 210 |
| 212 | 211 |
| 213 #undef FIELD_ADDR | 212 #undef FIELD_ADDR |
| 214 #undef WRITE_FIELD | 213 #undef WRITE_FIELD |
| 215 #undef CONDITIONAL_WRITE_BARRIER | 214 #undef CONDITIONAL_WRITE_BARRIER |
| 216 | 215 |
| 217 | 216 |
| 218 } } // namespace v8::internal | 217 } } // namespace v8::internal |
| 219 | 218 |
| 220 #endif // V8_TRANSITIONS_INL_H_ | 219 #endif // V8_TRANSITIONS_INL_H_ |
| OLD | NEW |