| 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 5307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5318 bool JSArrayBuffer::is_external() { | 5318 bool JSArrayBuffer::is_external() { |
| 5319 return BooleanBit::get(flag(), kIsExternalBit); | 5319 return BooleanBit::get(flag(), kIsExternalBit); |
| 5320 } | 5320 } |
| 5321 | 5321 |
| 5322 | 5322 |
| 5323 void JSArrayBuffer::set_is_external(bool value) { | 5323 void JSArrayBuffer::set_is_external(bool value) { |
| 5324 set_flag(BooleanBit::set(flag(), kIsExternalBit, value)); | 5324 set_flag(BooleanBit::set(flag(), kIsExternalBit, value)); |
| 5325 } | 5325 } |
| 5326 | 5326 |
| 5327 | 5327 |
| 5328 ACCESSORS(JSArrayBuffer, weak_next, Object, kWeakNextOffset) |
| 5329 ACCESSORS(JSArrayBuffer, weak_first_array, Object, kWeakFirstArrayOffset) |
| 5330 |
| 5331 |
| 5328 ACCESSORS(JSTypedArray, buffer, Object, kBufferOffset) | 5332 ACCESSORS(JSTypedArray, buffer, Object, kBufferOffset) |
| 5329 ACCESSORS(JSTypedArray, byte_offset, Object, kByteOffsetOffset) | 5333 ACCESSORS(JSTypedArray, byte_offset, Object, kByteOffsetOffset) |
| 5330 ACCESSORS(JSTypedArray, byte_length, Object, kByteLengthOffset) | 5334 ACCESSORS(JSTypedArray, byte_length, Object, kByteLengthOffset) |
| 5331 ACCESSORS(JSTypedArray, length, Object, kLengthOffset) | 5335 ACCESSORS(JSTypedArray, length, Object, kLengthOffset) |
| 5336 ACCESSORS(JSTypedArray, weak_next, Object, kWeakNextOffset) |
| 5332 | 5337 |
| 5333 ACCESSORS(JSRegExp, data, Object, kDataOffset) | 5338 ACCESSORS(JSRegExp, data, Object, kDataOffset) |
| 5334 | 5339 |
| 5335 | 5340 |
| 5336 JSRegExp::Type JSRegExp::TypeTag() { | 5341 JSRegExp::Type JSRegExp::TypeTag() { |
| 5337 Object* data = this->data(); | 5342 Object* data = this->data(); |
| 5338 if (data->IsUndefined()) return JSRegExp::NOT_COMPILED; | 5343 if (data->IsUndefined()) return JSRegExp::NOT_COMPILED; |
| 5339 Smi* smi = Smi::cast(FixedArray::cast(data)->get(kTagIndex)); | 5344 Smi* smi = Smi::cast(FixedArray::cast(data)->get(kTagIndex)); |
| 5340 return static_cast<JSRegExp::Type>(smi->value()); | 5345 return static_cast<JSRegExp::Type>(smi->value()); |
| 5341 } | 5346 } |
| (...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6221 #undef WRITE_UINT32_FIELD | 6226 #undef WRITE_UINT32_FIELD |
| 6222 #undef READ_SHORT_FIELD | 6227 #undef READ_SHORT_FIELD |
| 6223 #undef WRITE_SHORT_FIELD | 6228 #undef WRITE_SHORT_FIELD |
| 6224 #undef READ_BYTE_FIELD | 6229 #undef READ_BYTE_FIELD |
| 6225 #undef WRITE_BYTE_FIELD | 6230 #undef WRITE_BYTE_FIELD |
| 6226 | 6231 |
| 6227 | 6232 |
| 6228 } } // namespace v8::internal | 6233 } } // namespace v8::internal |
| 6229 | 6234 |
| 6230 #endif // V8_OBJECTS_INL_H_ | 6235 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |