Handle<FixedArrayBase> Factory::NewFixedDoubleArray(int size,
- PretenureFlag pretenure) {
+ PretenureFlag pretenure) {
ASSERT(0 <= size);
CALL_HEAP_FUNCTION(
isolate(),
}
-template<typename T>
Handle<String> Factory::NewInternalizedStringImpl(
- T t, int chars, uint32_t hash_field) {
+ Handle<String> string, int chars, uint32_t hash_field) {
CALL_HEAP_FUNCTION(
isolate(),
- isolate()->heap()->AllocateInternalizedStringImpl(t, chars, hash_field),
+ isolate()->heap()->AllocateInternalizedStringImpl(
+ *string, chars, hash_field),
String);
}
-template
-Handle<String> Factory::NewInternalizedStringImpl(String*, int, uint32_t);
-
MaybeHandle<Map> Factory::InternalizedStringMapForString(
Handle<String> string) {
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);
+ Handle<String> string, 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.
}
// Otherwise allocate a new internalized string.
return isolate->factory()->NewInternalizedStringImpl(
- *string_, string_->length(), string_->hash_field());
+ string_, string_->length(), string_->hash_field());
}
static uint32_t StringHash(Object* obj) {