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

Side by Side Diff: src/factory.h

Issue 2627783006: Version 5.7.442.2 (cherry-pick) (Closed)
Patch Set: Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « src/elements.cc ('k') | src/factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_FACTORY_H_ 5 #ifndef V8_FACTORY_H_
6 #define V8_FACTORY_H_ 6 #define V8_FACTORY_H_
7 7
8 #include "src/globals.h" 8 #include "src/globals.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 #include "src/messages.h" 10 #include "src/messages.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 uint32_t hash_field); 220 uint32_t hash_field);
221 221
222 Handle<String> NewInternalizedStringImpl(Handle<String> string, int chars, 222 Handle<String> NewInternalizedStringImpl(Handle<String> string, int chars,
223 uint32_t hash_field); 223 uint32_t hash_field);
224 224
225 // Compute the matching internalized string map for a string if possible. 225 // Compute the matching internalized string map for a string if possible.
226 // Empty handle is returned if string is in new space or not flattened. 226 // Empty handle is returned if string is in new space or not flattened.
227 MUST_USE_RESULT MaybeHandle<Map> InternalizedStringMapForString( 227 MUST_USE_RESULT MaybeHandle<Map> InternalizedStringMapForString(
228 Handle<String> string); 228 Handle<String> string);
229 229
230 // Creates an internalized copy of an external string. |string| must be
231 // of type StringClass.
232 template <class StringClass>
233 Handle<StringClass> InternalizeExternalString(Handle<String> string);
234
235 // Allocates and partially initializes an one-byte or two-byte String. The 230 // Allocates and partially initializes an one-byte or two-byte String. The
236 // characters of the string are uninitialized. Currently used in regexp code 231 // characters of the string are uninitialized. Currently used in regexp code
237 // only, where they are pretenured. 232 // only, where they are pretenured.
238 MUST_USE_RESULT MaybeHandle<SeqOneByteString> NewRawOneByteString( 233 MUST_USE_RESULT MaybeHandle<SeqOneByteString> NewRawOneByteString(
239 int length, 234 int length,
240 PretenureFlag pretenure = NOT_TENURED); 235 PretenureFlag pretenure = NOT_TENURED);
241 MUST_USE_RESULT MaybeHandle<SeqTwoByteString> NewRawTwoByteString( 236 MUST_USE_RESULT MaybeHandle<SeqTwoByteString> NewRawTwoByteString(
242 int length, 237 int length,
243 PretenureFlag pretenure = NOT_TENURED); 238 PretenureFlag pretenure = NOT_TENURED);
244 239
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, 811 void SetStrictFunctionInstanceDescriptor(Handle<Map> map,
817 FunctionMode function_mode); 812 FunctionMode function_mode);
818 813
819 void SetClassFunctionInstanceDescriptor(Handle<Map> map); 814 void SetClassFunctionInstanceDescriptor(Handle<Map> map);
820 }; 815 };
821 816
822 } // namespace internal 817 } // namespace internal
823 } // namespace v8 818 } // namespace v8
824 819
825 #endif // V8_FACTORY_H_ 820 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/elements.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698