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

Unified Diff: src/factory.h

Issue 250773004: HashTableKey::AsObject() handlified. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « 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 c155c313051b50746635973e6d3973dcc9146905..26ca4415b172f43d8e198f39ffb5ea49bcb26654 100644
--- a/src/factory.h
+++ b/src/factory.h
@@ -145,6 +145,30 @@ class Factory V8_FINAL {
Vector<const uc16> str,
PretenureFlag pretenure = NOT_TENURED);
+ // Allocates an internalized string in old space based on the character
+ // stream.
+ MUST_USE_RESULT Handle<String> NewInternalizedStringFromUtf8(
+ Vector<const char> str,
+ int chars,
+ uint32_t hash_field);
+
+ MUST_USE_RESULT Handle<String> NewOneByteInternalizedString(
+ Vector<const uint8_t> str,
+ uint32_t hash_field);
+
+ MUST_USE_RESULT Handle<String> NewTwoByteInternalizedString(
+ Vector<const uc16> str,
+ uint32_t hash_field);
+
+ template<typename T>
+ MUST_USE_RESULT Handle<String> NewInternalizedStringImpl(
+ T t, int chars, uint32_t hash_field);
+
+ // Compute the matching internalized string map for a string if possible.
+ // Empty handle is returned if string is in new space or not flattened.
+ MUST_USE_RESULT MaybeHandle<Map> InternalizedStringMapForString(
+ Handle<String> string);
+
// Allocates and partially initializes an ASCII or TwoByte String. The
// characters of the string are uninitialized. Currently used in regexp code
// only, where they are pretenured.
« 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