| 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 2281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2292 return READ_FIELD(this, kSecondOffset); | 2292 return READ_FIELD(this, kSecondOffset); |
| 2293 } | 2293 } |
| 2294 | 2294 |
| 2295 | 2295 |
| 2296 void ConsString::set_second(String* value, WriteBarrierMode mode) { | 2296 void ConsString::set_second(String* value, WriteBarrierMode mode) { |
| 2297 WRITE_FIELD(this, kSecondOffset, value); | 2297 WRITE_FIELD(this, kSecondOffset, value); |
| 2298 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kSecondOffset, value, mode); | 2298 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kSecondOffset, value, mode); |
| 2299 } | 2299 } |
| 2300 | 2300 |
| 2301 | 2301 |
| 2302 ExternalAsciiString::Resource* ExternalAsciiString::resource() { | 2302 const ExternalAsciiString::Resource* ExternalAsciiString::resource() { |
| 2303 return *reinterpret_cast<Resource**>(FIELD_ADDR(this, kResourceOffset)); | 2303 return *reinterpret_cast<Resource**>(FIELD_ADDR(this, kResourceOffset)); |
| 2304 } | 2304 } |
| 2305 | 2305 |
| 2306 | 2306 |
| 2307 void ExternalAsciiString::set_resource( | 2307 void ExternalAsciiString::set_resource( |
| 2308 ExternalAsciiString::Resource* resource) { | 2308 const ExternalAsciiString::Resource* resource) { |
| 2309 *reinterpret_cast<Resource**>(FIELD_ADDR(this, kResourceOffset)) = resource; | 2309 *reinterpret_cast<const Resource**>( |
| 2310 FIELD_ADDR(this, kResourceOffset)) = resource; |
| 2310 } | 2311 } |
| 2311 | 2312 |
| 2312 | 2313 |
| 2313 ExternalTwoByteString::Resource* ExternalTwoByteString::resource() { | 2314 const ExternalTwoByteString::Resource* ExternalTwoByteString::resource() { |
| 2314 return *reinterpret_cast<Resource**>(FIELD_ADDR(this, kResourceOffset)); | 2315 return *reinterpret_cast<Resource**>(FIELD_ADDR(this, kResourceOffset)); |
| 2315 } | 2316 } |
| 2316 | 2317 |
| 2317 | 2318 |
| 2318 void ExternalTwoByteString::set_resource( | 2319 void ExternalTwoByteString::set_resource( |
| 2319 ExternalTwoByteString::Resource* resource) { | 2320 const ExternalTwoByteString::Resource* resource) { |
| 2320 *reinterpret_cast<Resource**>(FIELD_ADDR(this, kResourceOffset)) = resource; | 2321 *reinterpret_cast<const Resource**>( |
| 2322 FIELD_ADDR(this, kResourceOffset)) = resource; |
| 2321 } | 2323 } |
| 2322 | 2324 |
| 2323 | 2325 |
| 2324 void JSFunctionResultCache::MakeZeroSize() { | 2326 void JSFunctionResultCache::MakeZeroSize() { |
| 2325 set_finger_index(kEntriesIndex); | 2327 set_finger_index(kEntriesIndex); |
| 2326 set_size(kEntriesIndex); | 2328 set_size(kEntriesIndex); |
| 2327 } | 2329 } |
| 2328 | 2330 |
| 2329 | 2331 |
| 2330 void JSFunctionResultCache::Clear() { | 2332 void JSFunctionResultCache::Clear() { |
| (...skipping 2205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4536 #undef WRITE_INT_FIELD | 4538 #undef WRITE_INT_FIELD |
| 4537 #undef READ_SHORT_FIELD | 4539 #undef READ_SHORT_FIELD |
| 4538 #undef WRITE_SHORT_FIELD | 4540 #undef WRITE_SHORT_FIELD |
| 4539 #undef READ_BYTE_FIELD | 4541 #undef READ_BYTE_FIELD |
| 4540 #undef WRITE_BYTE_FIELD | 4542 #undef WRITE_BYTE_FIELD |
| 4541 | 4543 |
| 4542 | 4544 |
| 4543 } } // namespace v8::internal | 4545 } } // namespace v8::internal |
| 4544 | 4546 |
| 4545 #endif // V8_OBJECTS_INL_H_ | 4547 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |