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

Unified Diff: src/api.cc

Issue 1512028: Landing http://codereview.chromium.org/1594017 for Ryan. (Closed)
Patch Set: Created 10 years, 8 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
« no previous file with comments | « include/v8.h ('k') | test/cctest/test-strings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 0145db67b5e0852132bf3bc5dfcefed3476bbf40..2c7975bab0b90617b140cb1f00c53f14436c984f 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -2733,6 +2733,13 @@ int String::Write(uint16_t* buffer, int start, int length) const {
}
+void v8::String::Flatten() {
+ if (IsDeadCheck("v8::String::Flatten()")) return;
+ i::Handle<i::String> str = Utils::OpenHandle(this);
+ i::FlattenString(str);
+}
+
+
bool v8::String::IsExternal() const {
EnsureInitialized("v8::String::IsExternal()");
i::Handle<i::String> str = Utils::OpenHandle(this);
« no previous file with comments | « include/v8.h ('k') | test/cctest/test-strings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698