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

Side by Side Diff: src/objects.h

Issue 114943004: Reland "Handlify concat string and substring." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix test case. Created 7 years 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 | « src/heap.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 8629 matching lines...) Expand 10 before | Expand all | Expand 10 after
8640 FlatContent GetFlatContent(); 8640 FlatContent GetFlatContent();
8641 8641
8642 // Returns the parent of a sliced string or first part of a flat cons string. 8642 // Returns the parent of a sliced string or first part of a flat cons string.
8643 // Requires: StringShape(this).IsIndirect() && this->IsFlat() 8643 // Requires: StringShape(this).IsIndirect() && this->IsFlat()
8644 inline String* GetUnderlying(); 8644 inline String* GetUnderlying();
8645 8645
8646 // Mark the string as an undetectable object. It only applies to 8646 // Mark the string as an undetectable object. It only applies to
8647 // ASCII and two byte string types. 8647 // ASCII and two byte string types.
8648 bool MarkAsUndetectable(); 8648 bool MarkAsUndetectable();
8649 8649
8650 // Return a substring.
8651 MUST_USE_RESULT MaybeObject* SubString(int from,
8652 int to,
8653 PretenureFlag pretenure = NOT_TENURED);
8654
8655 // String equality operations. 8650 // String equality operations.
8656 inline bool Equals(String* other); 8651 inline bool Equals(String* other);
8657 bool IsUtf8EqualTo(Vector<const char> str, bool allow_prefix_match = false); 8652 bool IsUtf8EqualTo(Vector<const char> str, bool allow_prefix_match = false);
8658 bool IsOneByteEqualTo(Vector<const uint8_t> str); 8653 bool IsOneByteEqualTo(Vector<const uint8_t> str);
8659 bool IsTwoByteEqualTo(Vector<const uc16> str); 8654 bool IsTwoByteEqualTo(Vector<const uc16> str);
8660 8655
8661 // Return a UTF8 representation of the string. The string is null 8656 // Return a UTF8 representation of the string. The string is null
8662 // terminated but may optionally contain nulls. Length is returned 8657 // terminated but may optionally contain nulls. Length is returned
8663 // in length_output if length_output is not a null pointer The string 8658 // in length_output if length_output is not a null pointer The string
8664 // should be nearly flat, otherwise the performance of this method may 8659 // should be nearly flat, otherwise the performance of this method may
(...skipping 1952 matching lines...) Expand 10 before | Expand all | Expand 10 after
10617 } else { 10612 } else {
10618 value &= ~(1 << bit_position); 10613 value &= ~(1 << bit_position);
10619 } 10614 }
10620 return value; 10615 return value;
10621 } 10616 }
10622 }; 10617 };
10623 10618
10624 } } // namespace v8::internal 10619 } } // namespace v8::internal
10625 10620
10626 #endif // V8_OBJECTS_H_ 10621 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698