| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 2318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2329 return SizeFor(length()); | 2329 return SizeFor(length()); |
| 2330 } | 2330 } |
| 2331 | 2331 |
| 2332 | 2332 |
| 2333 String* SlicedString::parent() { | 2333 String* SlicedString::parent() { |
| 2334 return String::cast(READ_FIELD(this, kParentOffset)); | 2334 return String::cast(READ_FIELD(this, kParentOffset)); |
| 2335 } | 2335 } |
| 2336 | 2336 |
| 2337 | 2337 |
| 2338 void SlicedString::set_parent(String* parent) { | 2338 void SlicedString::set_parent(String* parent) { |
| 2339 ASSERT(parent->IsSeqString()); | 2339 ASSERT(parent->IsSeqString() || parent->IsExternalString()); |
| 2340 WRITE_FIELD(this, kParentOffset, parent); | 2340 WRITE_FIELD(this, kParentOffset, parent); |
| 2341 } | 2341 } |
| 2342 | 2342 |
| 2343 | 2343 |
| 2344 SMI_ACCESSORS(SlicedString, offset, kOffsetOffset) | 2344 SMI_ACCESSORS(SlicedString, offset, kOffsetOffset) |
| 2345 | 2345 |
| 2346 | 2346 |
| 2347 String* ConsString::first() { | 2347 String* ConsString::first() { |
| 2348 return String::cast(READ_FIELD(this, kFirstOffset)); | 2348 return String::cast(READ_FIELD(this, kFirstOffset)); |
| 2349 } | 2349 } |
| (...skipping 2332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4682 #undef WRITE_INT_FIELD | 4682 #undef WRITE_INT_FIELD |
| 4683 #undef READ_SHORT_FIELD | 4683 #undef READ_SHORT_FIELD |
| 4684 #undef WRITE_SHORT_FIELD | 4684 #undef WRITE_SHORT_FIELD |
| 4685 #undef READ_BYTE_FIELD | 4685 #undef READ_BYTE_FIELD |
| 4686 #undef WRITE_BYTE_FIELD | 4686 #undef WRITE_BYTE_FIELD |
| 4687 | 4687 |
| 4688 | 4688 |
| 4689 } } // namespace v8::internal | 4689 } } // namespace v8::internal |
| 4690 | 4690 |
| 4691 #endif // V8_OBJECTS_INL_H_ | 4691 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |