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

Unified Diff: src/factory.h

Issue 2065053002: ZoneVector overload of Factory::NewStringFromTwoByte (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: static_cast Created 4 years, 6 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 | « no previous file | src/factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.h
diff --git a/src/factory.h b/src/factory.h
index 68938bb5e774ef88aad1bb430ac767712df9ad90..d40c160ad1b1daacddb73c2c88e0f4799911f5af 100644
--- a/src/factory.h
+++ b/src/factory.h
@@ -163,6 +163,9 @@ class Factory final {
Vector<const uc16> str,
PretenureFlag pretenure = NOT_TENURED);
+ MUST_USE_RESULT MaybeHandle<String> NewStringFromTwoByte(
+ const ZoneVector<uc16>* str, PretenureFlag pretenure = NOT_TENURED);
+
// Allocates an internalized string in old space based on the character
// stream.
Handle<String> NewInternalizedStringFromUtf8(Vector<const char> str,
@@ -700,6 +703,9 @@ class Factory final {
AllocationSpace space,
Handle<AllocationSite> allocation_site);
+ MaybeHandle<String> NewStringFromTwoByte(const uc16* string, int length,
+ PretenureFlag pretenure);
+
// Creates a code object that is not yet fully initialized yet.
inline Handle<Code> NewCodeRaw(int object_size, bool immovable);
« no previous file with comments | « no previous file | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698