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

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

Issue 7909002: Correcting a bogus assert outdated since r9295. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 3 months 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 2318 matching lines...) Expand 10 before | Expand all | Expand 10 after
2329 return SizeFor(length()); 2329 return SizeFor(length());
2330 } 2330 }
2331 2331
2332 2332
2333 String* SlicedString::parent() { 2333 String* SlicedString::parent() {
2334 return String::cast(READ_FIELD(this, kParentOffset)); 2334 return String::cast(READ_FIELD(this, kParentOffset));
2335 } 2335 }
2336 2336
2337 2337
2338 void SlicedString::set_parent(String* parent) { 2338 void SlicedString::set_parent(String* parent) {
2339 ASSERT(parent->IsSeqString()); 2339 ASSERT(parent->IsSeqString() || parent->IsExternalString());
2340 WRITE_FIELD(this, kParentOffset, parent); 2340 WRITE_FIELD(this, kParentOffset, parent);
2341 } 2341 }
2342 2342
2343 2343
2344 SMI_ACCESSORS(SlicedString, offset, kOffsetOffset) 2344 SMI_ACCESSORS(SlicedString, offset, kOffsetOffset)
2345 2345
2346 2346
2347 String* ConsString::first() { 2347 String* ConsString::first() {
2348 return String::cast(READ_FIELD(this, kFirstOffset)); 2348 return String::cast(READ_FIELD(this, kFirstOffset));
2349 } 2349 }
(...skipping 2332 matching lines...) Expand 10 before | Expand all | Expand 10 after
4682 #undef WRITE_INT_FIELD 4682 #undef WRITE_INT_FIELD
4683 #undef READ_SHORT_FIELD 4683 #undef READ_SHORT_FIELD
4684 #undef WRITE_SHORT_FIELD 4684 #undef WRITE_SHORT_FIELD
4685 #undef READ_BYTE_FIELD 4685 #undef READ_BYTE_FIELD
4686 #undef WRITE_BYTE_FIELD 4686 #undef WRITE_BYTE_FIELD
4687 4687
4688 4688
4689 } } // namespace v8::internal 4689 } } // namespace v8::internal
4690 4690
4691 #endif // V8_OBJECTS_INL_H_ 4691 #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