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 5304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5315 } | 5315 } |
5316 | 5316 |
5317 | 5317 |
5318 void JSArrayBuffer::set_backing_store(void* value, WriteBarrierMode mode) { | 5318 void JSArrayBuffer::set_backing_store(void* value, WriteBarrierMode mode) { |
5319 intptr_t ptr = reinterpret_cast<intptr_t>(value); | 5319 intptr_t ptr = reinterpret_cast<intptr_t>(value); |
5320 WRITE_INTPTR_FIELD(this, kBackingStoreOffset, ptr); | 5320 WRITE_INTPTR_FIELD(this, kBackingStoreOffset, ptr); |
5321 } | 5321 } |
5322 | 5322 |
5323 | 5323 |
5324 ACCESSORS(JSArrayBuffer, byte_length, Object, kByteLengthOffset) | 5324 ACCESSORS(JSArrayBuffer, byte_length, Object, kByteLengthOffset) |
| 5325 ACCESSORS(JSArrayBuffer, next, Object, kNextOffset) |
| 5326 ACCESSORS(JSArrayBuffer, first_array, Object, kFirstArrayOffset) |
5325 | 5327 |
5326 | 5328 |
5327 ACCESSORS(JSTypedArray, buffer, Object, kBufferOffset) | 5329 ACCESSORS(JSTypedArray, buffer, Object, kBufferOffset) |
5328 ACCESSORS(JSTypedArray, byte_offset, Object, kByteOffsetOffset) | 5330 ACCESSORS(JSTypedArray, byte_offset, Object, kByteOffsetOffset) |
5329 ACCESSORS(JSTypedArray, byte_length, Object, kByteLengthOffset) | 5331 ACCESSORS(JSTypedArray, byte_length, Object, kByteLengthOffset) |
5330 ACCESSORS(JSTypedArray, length, Object, kLengthOffset) | 5332 ACCESSORS(JSTypedArray, length, Object, kLengthOffset) |
| 5333 ACCESSORS(JSTypedArray, next, Object, kNextOffset) |
5331 | 5334 |
5332 | 5335 |
5333 ACCESSORS(JSRegExp, data, Object, kDataOffset) | 5336 ACCESSORS(JSRegExp, data, Object, kDataOffset) |
5334 | 5337 |
5335 | 5338 |
5336 JSRegExp::Type JSRegExp::TypeTag() { | 5339 JSRegExp::Type JSRegExp::TypeTag() { |
5337 Object* data = this->data(); | 5340 Object* data = this->data(); |
5338 if (data->IsUndefined()) return JSRegExp::NOT_COMPILED; | 5341 if (data->IsUndefined()) return JSRegExp::NOT_COMPILED; |
5339 Smi* smi = Smi::cast(FixedArray::cast(data)->get(kTagIndex)); | 5342 Smi* smi = Smi::cast(FixedArray::cast(data)->get(kTagIndex)); |
5340 return static_cast<JSRegExp::Type>(smi->value()); | 5343 return static_cast<JSRegExp::Type>(smi->value()); |
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6221 #undef WRITE_UINT32_FIELD | 6224 #undef WRITE_UINT32_FIELD |
6222 #undef READ_SHORT_FIELD | 6225 #undef READ_SHORT_FIELD |
6223 #undef WRITE_SHORT_FIELD | 6226 #undef WRITE_SHORT_FIELD |
6224 #undef READ_BYTE_FIELD | 6227 #undef READ_BYTE_FIELD |
6225 #undef WRITE_BYTE_FIELD | 6228 #undef WRITE_BYTE_FIELD |
6226 | 6229 |
6227 | 6230 |
6228 } } // namespace v8::internal | 6231 } } // namespace v8::internal |
6229 | 6232 |
6230 #endif // V8_OBJECTS_INL_H_ | 6233 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |