| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 int descriptor = map->LastAdded(); | 193 int descriptor = map->LastAdded(); |
| 194 return descriptors->GetDetails(descriptor); | 194 return descriptors->GetDetails(descriptor); |
| 195 } | 195 } |
| 196 | 196 |
| 197 | 197 |
| 198 int TransitionArray::Search(String* name) { | 198 int TransitionArray::Search(String* name) { |
| 199 return internal::Search<ALL_ENTRIES>(this, name); | 199 return internal::Search<ALL_ENTRIES>(this, name); |
| 200 } | 200 } |
| 201 | 201 |
| 202 | 202 |
| 203 void TransitionArray::Set(int transition_number, | 203 void TransitionArray::NoIncrementalWriteBarrierSet(int transition_number, |
| 204 String* key, | 204 String* key, |
| 205 Map* target, | 205 Map* target) { |
| 206 const WhitenessWitness&) { | 206 FixedArray::NoIncrementalWriteBarrierSet( |
| 207 NoIncrementalWriteBarrierSet(this, | 207 this, ToKeyIndex(transition_number), key); |
| 208 ToKeyIndex(transition_number), | 208 FixedArray::NoIncrementalWriteBarrierSet( |
| 209 key); | 209 this, ToTargetIndex(transition_number), target); |
| 210 NoIncrementalWriteBarrierSet(this, | |
| 211 ToTargetIndex(transition_number), | |
| 212 target); | |
| 213 } | 210 } |
| 214 | 211 |
| 215 | 212 |
| 216 #undef FIELD_ADDR | 213 #undef FIELD_ADDR |
| 217 #undef WRITE_FIELD | 214 #undef WRITE_FIELD |
| 218 #undef CONDITIONAL_WRITE_BARRIER | 215 #undef CONDITIONAL_WRITE_BARRIER |
| 219 | 216 |
| 220 | 217 |
| 221 } } // namespace v8::internal | 218 } } // namespace v8::internal |
| 222 | 219 |
| 223 #endif // V8_TRANSITIONS_INL_H_ | 220 #endif // V8_TRANSITIONS_INL_H_ |
| OLD | NEW |