| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1624 break; | 1624 break; |
| 1625 case JS_OBJECT_TYPE: | 1625 case JS_OBJECT_TYPE: |
| 1626 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: | 1626 case JS_CONTEXT_EXTENSION_OBJECT_TYPE: |
| 1627 case JS_GENERATOR_OBJECT_TYPE: | 1627 case JS_GENERATOR_OBJECT_TYPE: |
| 1628 case JS_MODULE_TYPE: | 1628 case JS_MODULE_TYPE: |
| 1629 case JS_VALUE_TYPE: | 1629 case JS_VALUE_TYPE: |
| 1630 case JS_DATE_TYPE: | 1630 case JS_DATE_TYPE: |
| 1631 case JS_ARRAY_TYPE: | 1631 case JS_ARRAY_TYPE: |
| 1632 case JS_ARRAY_BUFFER_TYPE: | 1632 case JS_ARRAY_BUFFER_TYPE: |
| 1633 case JS_TYPED_ARRAY_TYPE: | 1633 case JS_TYPED_ARRAY_TYPE: |
| 1634 case JS_DATA_VIEW_TYPE: |
| 1634 case JS_SET_TYPE: | 1635 case JS_SET_TYPE: |
| 1635 case JS_MAP_TYPE: | 1636 case JS_MAP_TYPE: |
| 1636 case JS_WEAK_MAP_TYPE: | 1637 case JS_WEAK_MAP_TYPE: |
| 1637 case JS_REGEXP_TYPE: | 1638 case JS_REGEXP_TYPE: |
| 1638 case JS_GLOBAL_PROXY_TYPE: | 1639 case JS_GLOBAL_PROXY_TYPE: |
| 1639 case JS_GLOBAL_OBJECT_TYPE: | 1640 case JS_GLOBAL_OBJECT_TYPE: |
| 1640 case JS_BUILTINS_OBJECT_TYPE: | 1641 case JS_BUILTINS_OBJECT_TYPE: |
| 1641 case JS_MESSAGE_OBJECT_TYPE: | 1642 case JS_MESSAGE_OBJECT_TYPE: |
| 1642 JSObject::BodyDescriptor::IterateBody(this, object_size, v); | 1643 JSObject::BodyDescriptor::IterateBody(this, object_size, v); |
| 1643 break; | 1644 break; |
| (...skipping 14153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15797 } | 15798 } |
| 15798 | 15799 |
| 15799 | 15800 |
| 15800 void JSArrayBuffer::Neuter() { | 15801 void JSArrayBuffer::Neuter() { |
| 15801 ASSERT(is_external()); | 15802 ASSERT(is_external()); |
| 15802 set_backing_store(NULL); | 15803 set_backing_store(NULL); |
| 15803 set_byte_length(Smi::FromInt(0)); | 15804 set_byte_length(Smi::FromInt(0)); |
| 15804 } | 15805 } |
| 15805 | 15806 |
| 15806 | 15807 |
| 15808 void JSArrayBufferView::NeuterView() { |
| 15809 set_byte_offset(Smi::FromInt(0)); |
| 15810 set_byte_length(Smi::FromInt(0)); |
| 15811 } |
| 15812 |
| 15813 |
| 15814 void JSDataView::Neuter() { |
| 15815 NeuterView(); |
| 15816 } |
| 15817 |
| 15818 |
| 15807 void JSTypedArray::Neuter() { | 15819 void JSTypedArray::Neuter() { |
| 15808 set_byte_offset(Smi::FromInt(0)); | 15820 NeuterView(); |
| 15809 set_byte_length(Smi::FromInt(0)); | |
| 15810 set_length(Smi::FromInt(0)); | 15821 set_length(Smi::FromInt(0)); |
| 15811 set_elements(GetHeap()->EmptyExternalArrayForMap(map())); | 15822 set_elements(GetHeap()->EmptyExternalArrayForMap(map())); |
| 15812 } | 15823 } |
| 15813 | 15824 |
| 15814 | 15825 |
| 15815 Type* PropertyCell::type() { | 15826 Type* PropertyCell::type() { |
| 15816 return static_cast<Type*>(type_raw()); | 15827 return static_cast<Type*>(type_raw()); |
| 15817 } | 15828 } |
| 15818 | 15829 |
| 15819 | 15830 |
| 15820 void PropertyCell::set_type(Type* type, WriteBarrierMode ignored) { | 15831 void PropertyCell::set_type(Type* type, WriteBarrierMode ignored) { |
| 15821 set_type_raw(type, ignored); | 15832 set_type_raw(type, ignored); |
| 15822 } | 15833 } |
| 15823 | 15834 |
| 15824 | 15835 |
| 15825 } } // namespace v8::internal | 15836 } } // namespace v8::internal |
| OLD | NEW |