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

Side by Side Diff: src/objects.h

Issue 59973004: Revert "Handlify concat string and substring." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « 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 8504 matching lines...) Expand 10 before | Expand all | Expand 10 after
8515 FlatContent GetFlatContent(); 8515 FlatContent GetFlatContent();
8516 8516
8517 // Returns the parent of a sliced string or first part of a flat cons string. 8517 // Returns the parent of a sliced string or first part of a flat cons string.
8518 // Requires: StringShape(this).IsIndirect() && this->IsFlat() 8518 // Requires: StringShape(this).IsIndirect() && this->IsFlat()
8519 inline String* GetUnderlying(); 8519 inline String* GetUnderlying();
8520 8520
8521 // Mark the string as an undetectable object. It only applies to 8521 // Mark the string as an undetectable object. It only applies to
8522 // ASCII and two byte string types. 8522 // ASCII and two byte string types.
8523 bool MarkAsUndetectable(); 8523 bool MarkAsUndetectable();
8524 8524
8525 // Return a substring.
8526 MUST_USE_RESULT MaybeObject* SubString(int from,
8527 int to,
8528 PretenureFlag pretenure = NOT_TENURED);
8529
8525 // String equality operations. 8530 // String equality operations.
8526 inline bool Equals(String* other); 8531 inline bool Equals(String* other);
8527 bool IsUtf8EqualTo(Vector<const char> str, bool allow_prefix_match = false); 8532 bool IsUtf8EqualTo(Vector<const char> str, bool allow_prefix_match = false);
8528 bool IsOneByteEqualTo(Vector<const uint8_t> str); 8533 bool IsOneByteEqualTo(Vector<const uint8_t> str);
8529 bool IsTwoByteEqualTo(Vector<const uc16> str); 8534 bool IsTwoByteEqualTo(Vector<const uc16> str);
8530 8535
8531 // Return a UTF8 representation of the string. The string is null 8536 // Return a UTF8 representation of the string. The string is null
8532 // terminated but may optionally contain nulls. Length is returned 8537 // terminated but may optionally contain nulls. Length is returned
8533 // in length_output if length_output is not a null pointer The string 8538 // in length_output if length_output is not a null pointer The string
8534 // should be nearly flat, otherwise the performance of this method may 8539 // should be nearly flat, otherwise the performance of this method may
(...skipping 1941 matching lines...) Expand 10 before | Expand all | Expand 10 after
10476 } else { 10481 } else {
10477 value &= ~(1 << bit_position); 10482 value &= ~(1 << bit_position);
10478 } 10483 }
10479 return value; 10484 return value;
10480 } 10485 }
10481 }; 10486 };
10482 10487
10483 } } // namespace v8::internal 10488 } } // namespace v8::internal
10484 10489
10485 #endif // V8_OBJECTS_H_ 10490 #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