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

Unified Diff: src/objects.h

Issue 12440061: Improve SeqString::Truncate for latest allocated strings. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 933a07599a455f6a19774a84b198b41e3aefdd13..e5ec80a301cdf30adf54c89048eafb9f82ee1e2b 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7754,7 +7754,7 @@ class SeqString: public String {
// Truncate the string in-place if possible and return the result.
// In case of new_length == 0, the empty string is returned without
// truncating the original string.
Hannes Payer (out of office) 2013/03/21 12:48:30 I would revert this change and truncate all string
- MUST_USE_RESULT String* Truncate(int new_length);
+ void Truncate(int new_length);
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(SeqString);

Powered by Google App Engine
This is Rietveld 408576698