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::Set(int transition_number, String* key, Map* target) { |
Michael Starzinger
2012/09/14 11:18:08
Now that this method no longer takes a WhitenessWi
Toon Verwaest
2012/09/14 12:28:04
Done.
| |
204 String* key, | 204 NoIncrementalWriteBarrierSet(this, ToKeyIndex(transition_number), key); |
205 Map* target, | 205 NoIncrementalWriteBarrierSet(this, ToTargetIndex(transition_number), target); |
206 const WhitenessWitness&) { | |
207 NoIncrementalWriteBarrierSet(this, | |
208 ToKeyIndex(transition_number), | |
209 key); | |
210 NoIncrementalWriteBarrierSet(this, | |
211 ToTargetIndex(transition_number), | |
212 target); | |
213 } | 206 } |
214 | 207 |
215 | 208 |
216 #undef FIELD_ADDR | 209 #undef FIELD_ADDR |
217 #undef WRITE_FIELD | 210 #undef WRITE_FIELD |
218 #undef CONDITIONAL_WRITE_BARRIER | 211 #undef CONDITIONAL_WRITE_BARRIER |
219 | 212 |
220 | 213 |
221 } } // namespace v8::internal | 214 } } // namespace v8::internal |
222 | 215 |
223 #endif // V8_TRANSITIONS_INL_H_ | 216 #endif // V8_TRANSITIONS_INL_H_ |
OLD | NEW |