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 2280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2291 } | 2291 } |
2292 | 2292 |
2293 | 2293 |
2294 void ConsString::set_second(String* value, WriteBarrierMode mode) { | 2294 void ConsString::set_second(String* value, WriteBarrierMode mode) { |
2295 WRITE_FIELD(this, kSecondOffset, value); | 2295 WRITE_FIELD(this, kSecondOffset, value); |
2296 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kSecondOffset, value, mode); | 2296 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kSecondOffset, value, mode); |
2297 } | 2297 } |
2298 | 2298 |
2299 | 2299 |
2300 void ExternalString::clear_data_cache() { | 2300 void ExternalString::clear_data_cache() { |
2301 WRITE_INTPTR_FIELD(this, kResourceDataOffset, NULL); | 2301 WRITE_INTPTR_FIELD(this, kResourceDataOffset, 0); |
2302 } | 2302 } |
2303 | 2303 |
2304 | 2304 |
2305 const ExternalAsciiString::Resource* ExternalAsciiString::resource() { | 2305 const ExternalAsciiString::Resource* ExternalAsciiString::resource() { |
2306 return *reinterpret_cast<Resource**>(FIELD_ADDR(this, kResourceOffset)); | 2306 return *reinterpret_cast<Resource**>(FIELD_ADDR(this, kResourceOffset)); |
2307 } | 2307 } |
2308 | 2308 |
2309 | 2309 |
2310 void ExternalAsciiString::set_resource( | 2310 void ExternalAsciiString::set_resource( |
2311 const ExternalAsciiString::Resource* resource) { | 2311 const ExternalAsciiString::Resource* resource) { |
(...skipping 2357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4669 #undef WRITE_INT_FIELD | 4669 #undef WRITE_INT_FIELD |
4670 #undef READ_SHORT_FIELD | 4670 #undef READ_SHORT_FIELD |
4671 #undef WRITE_SHORT_FIELD | 4671 #undef WRITE_SHORT_FIELD |
4672 #undef READ_BYTE_FIELD | 4672 #undef READ_BYTE_FIELD |
4673 #undef WRITE_BYTE_FIELD | 4673 #undef WRITE_BYTE_FIELD |
4674 | 4674 |
4675 | 4675 |
4676 } } // namespace v8::internal | 4676 } } // namespace v8::internal |
4677 | 4677 |
4678 #endif // V8_OBJECTS_INL_H_ | 4678 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |