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

Side by Side Diff: src/factory.h

Issue 223593004: Revert "Return MaybeHandle from NewConsString." (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 | « src/api.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 "isolate.h" 8 #include "isolate.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 Handle<SeqOneByteString> NewRawOneByteString(
136 int length, 136 int length,
137 PretenureFlag pretenure = NOT_TENURED); 137 PretenureFlag pretenure = NOT_TENURED);
138 Handle<SeqTwoByteString> NewRawTwoByteString( 138 Handle<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 MUST_USE_RESULT MaybeHandle<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.
149 Handle<String> NewFlatConcatString(Handle<String> first, 149 Handle<String> NewFlatConcatString(Handle<String> first,
150 Handle<String> second); 150 Handle<String> second);
151 151
152 // Create a new string object which holds a proper substring of a string. 152 // Create a new string object which holds a proper substring of a string.
153 Handle<String> NewProperSubString(Handle<String> str, 153 Handle<String> NewProperSubString(Handle<String> str,
154 int begin, 154 int begin,
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 Handle<String> message); 429 Handle<String> message);
430 430
431 Handle<Object> NewTypeError(const char* message, 431 Handle<Object> NewTypeError(const char* message,
432 Vector< Handle<Object> > args); 432 Vector< Handle<Object> > args);
433 Handle<Object> NewTypeError(Handle<String> message); 433 Handle<Object> NewTypeError(Handle<String> message);
434 434
435 Handle<Object> NewRangeError(const char* message, 435 Handle<Object> NewRangeError(const char* message,
436 Vector< Handle<Object> > args); 436 Vector< Handle<Object> > args);
437 Handle<Object> NewRangeError(Handle<String> message); 437 Handle<Object> NewRangeError(Handle<String> message);
438 438
439 Handle<Object> NewInvalidStringLengthError() {
440 return NewRangeError("invalid_string_length",
441 HandleVector<Object>(NULL, 0));
442 }
443
444 Handle<Object> NewSyntaxError(const char* message, Handle<JSArray> args); 439 Handle<Object> NewSyntaxError(const char* message, Handle<JSArray> args);
445 Handle<Object> NewSyntaxError(Handle<String> message); 440 Handle<Object> NewSyntaxError(Handle<String> message);
446 441
447 Handle<Object> NewReferenceError(const char* message, 442 Handle<Object> NewReferenceError(const char* message,
448 Vector< Handle<Object> > args); 443 Vector< Handle<Object> > args);
449 Handle<Object> NewReferenceError(const char* message, Handle<JSArray> args); 444 Handle<Object> NewReferenceError(const char* message, Handle<JSArray> args);
450 Handle<Object> NewReferenceError(Handle<String> message); 445 Handle<Object> NewReferenceError(Handle<String> message);
451 446
452 Handle<Object> NewEvalError(const char* message, 447 Handle<Object> NewEvalError(const char* message,
453 Vector< Handle<Object> > args); 448 Vector< Handle<Object> > args);
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 592
598 // Update the map cache in the native context with (keys, map) 593 // Update the map cache in the native context with (keys, map)
599 Handle<MapCache> AddToMapCache(Handle<Context> context, 594 Handle<MapCache> AddToMapCache(Handle<Context> context,
600 Handle<FixedArray> keys, 595 Handle<FixedArray> keys,
601 Handle<Map> map); 596 Handle<Map> map);
602 }; 597 };
603 598
604 } } // namespace v8::internal 599 } } // namespace v8::internal
605 600
606 #endif // V8_FACTORY_H_ 601 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698