| 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 Map* GetTransitionMap() { | 323 Map* GetTransitionMap() { |
| 324 ASSERT(IsTransition()); | 324 ASSERT(IsTransition()); |
| 325 return Map::cast(GetValue()); | 325 return Map::cast(GetValue()); |
| 326 } | 326 } |
| 327 | 327 |
| 328 Map* GetTransitionMapFromMap(Map* map) { | 328 Map* GetTransitionMapFromMap(Map* map) { |
| 329 ASSERT(IsTransition()); | 329 ASSERT(IsTransition()); |
| 330 return Map::cast(map->transitions()->GetValue(number_)); | 330 return Map::cast(map->transitions()->GetValue(number_)); |
| 331 } | 331 } |
| 332 | 332 |
| 333 int GetTransitionIndex() { |
| 334 ASSERT(IsTransition()); |
| 335 return number_; |
| 336 } |
| 337 |
| 333 int GetFieldIndex() { | 338 int GetFieldIndex() { |
| 334 ASSERT(lookup_type_ == DESCRIPTOR_TYPE); | 339 ASSERT(lookup_type_ == DESCRIPTOR_TYPE); |
| 335 ASSERT(IsField()); | 340 ASSERT(IsField()); |
| 336 return Descriptor::IndexFromValue(GetValue()); | 341 return Descriptor::IndexFromValue(GetValue()); |
| 337 } | 342 } |
| 338 | 343 |
| 339 int GetLocalFieldIndexFromMap(Map* map) { | 344 int GetLocalFieldIndexFromMap(Map* map) { |
| 340 ASSERT(IsField()); | 345 ASSERT(IsField()); |
| 341 return Descriptor::IndexFromValue(GetValueFromMap(map)) - | 346 return Descriptor::IndexFromValue(GetValueFromMap(map)) - |
| 342 map->inobject_properties(); | 347 map->inobject_properties(); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 JSReceiver* holder_; | 411 JSReceiver* holder_; |
| 407 int number_; | 412 int number_; |
| 408 bool cacheable_; | 413 bool cacheable_; |
| 409 PropertyDetails details_; | 414 PropertyDetails details_; |
| 410 }; | 415 }; |
| 411 | 416 |
| 412 | 417 |
| 413 } } // namespace v8::internal | 418 } } // namespace v8::internal |
| 414 | 419 |
| 415 #endif // V8_PROPERTY_H_ | 420 #endif // V8_PROPERTY_H_ |
| OLD | NEW |