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

Side by Side Diff: src/factory.h

Issue 243051: the idea is that often times in code, you will see something like this:... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/factory.cc » ('j') | src/parser.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 // Allocates and partially initializes a TwoByte String. The characters of 98 // Allocates and partially initializes a TwoByte String. The characters of
99 // the string are uninitialized. Currently used in regexp code only, where 99 // the string are uninitialized. Currently used in regexp code only, where
100 // they are pretenured. 100 // they are pretenured.
101 static Handle<String> NewRawTwoByteString( 101 static Handle<String> NewRawTwoByteString(
102 int length, 102 int length,
103 PretenureFlag pretenure = NOT_TENURED); 103 PretenureFlag pretenure = NOT_TENURED);
104 104
105 // Create a new cons string object which consists of a pair of strings. 105 // Create a new cons string object which consists of a pair of strings.
106 static Handle<String> NewConsString(Handle<String> first, 106 static Handle<String> NewConsString(Handle<String> first,
107 Handle<String> second); 107 Handle<String> second,
108 PretenureFlag pretenure = NOT_TENURED);
108 109
109 // Create a new sliced string object which represents a substring of a 110 // Create a new sliced string object which represents a substring of a
110 // backing string. 111 // backing string.
111 static Handle<String> NewStringSlice(Handle<String> str, 112 static Handle<String> NewStringSlice(Handle<String> str,
112 int begin, 113 int begin,
113 int end); 114 int end);
114 115
115 // Creates a new external String object. There are two String encodings 116 // Creates a new external String object. There are two String encodings
116 // in the system: ASCII and two byte. Unlike other String types, it does 117 // in the system: ASCII and two byte. Unlike other String types, it does
117 // not make sense to have a UTF-8 factory function for external strings, 118 // not make sense to have a UTF-8 factory function for external strings,
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 // Update the map cache in the global context with (keys, map) 378 // Update the map cache in the global context with (keys, map)
378 static Handle<MapCache> AddToMapCache(Handle<Context> context, 379 static Handle<MapCache> AddToMapCache(Handle<Context> context,
379 Handle<FixedArray> keys, 380 Handle<FixedArray> keys,
380 Handle<Map> map); 381 Handle<Map> map);
381 }; 382 };
382 383
383 384
384 } } // namespace v8::internal 385 } } // namespace v8::internal
385 386
386 #endif // V8_FACTORY_H_ 387 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | src/factory.cc » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698