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

Side by Side Diff: src/factory.h

Issue 223573002: Return MaybeHandle from NewRaw???String. (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 "isolate.h" 8 #include "isolate.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 Vector<const char> str, 125 Vector<const char> str,
126 PretenureFlag pretenure = NOT_TENURED); 126 PretenureFlag pretenure = NOT_TENURED);
127 127
128 Handle<String> NewStringFromTwoByte( 128 Handle<String> NewStringFromTwoByte(
129 Vector<const uc16> str, 129 Vector<const uc16> str,
130 PretenureFlag pretenure = NOT_TENURED); 130 PretenureFlag pretenure = NOT_TENURED);
131 131
132 // Allocates and partially initializes an ASCII or TwoByte String. The 132 // Allocates and partially initializes an ASCII or TwoByte String. The
133 // characters of the string are uninitialized. Currently used in regexp code 133 // characters of the string are uninitialized. Currently used in regexp code
134 // only, where they are pretenured. 134 // only, where they are pretenured.
135 Handle<SeqOneByteString> NewRawOneByteString( 135 MaybeHandle<SeqOneByteString> NewRawOneByteString(
136 int length, 136 int length,
137 PretenureFlag pretenure = NOT_TENURED); 137 PretenureFlag pretenure = NOT_TENURED);
138 Handle<SeqTwoByteString> NewRawTwoByteString( 138 MaybeHandle<SeqTwoByteString> NewRawTwoByteString(
139 int length, 139 int length,
140 PretenureFlag pretenure = NOT_TENURED); 140 PretenureFlag pretenure = NOT_TENURED);
141 141
142 // Create a new cons string object which consists of a pair of strings. 142 // Create a new cons string object which consists of a pair of strings.
143 Handle<String> NewConsString(Handle<String> left, 143 Handle<String> NewConsString(Handle<String> left,
144 Handle<String> right); 144 Handle<String> right);
145 145
146 Handle<ConsString> NewRawConsString(String::Encoding encoding); 146 Handle<ConsString> NewRawConsString(String::Encoding encoding);
147 147
148 // Create a new sequential string containing the concatenation of the inputs. 148 // Create a new sequential string containing the concatenation of the inputs.
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 589
590 // Update the map cache in the native context with (keys, map) 590 // Update the map cache in the native context with (keys, map)
591 Handle<MapCache> AddToMapCache(Handle<Context> context, 591 Handle<MapCache> AddToMapCache(Handle<Context> context,
592 Handle<FixedArray> keys, 592 Handle<FixedArray> keys,
593 Handle<Map> map); 593 Handle<Map> map);
594 }; 594 };
595 595
596 } } // namespace v8::internal 596 } } // namespace v8::internal
597 597
598 #endif // V8_FACTORY_H_ 598 #endif // V8_FACTORY_H_
OLDNEW
« 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