Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: src/objects-inl.h

Issue 8597006: Fixing compiler warning on gcc 4.6.1. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: . Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698