OLD | NEW |
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/isolate.h" | 8 #include "src/isolate.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 Handle<Object> NewSyntaxError(Handle<String> message); | 544 Handle<Object> NewSyntaxError(Handle<String> message); |
545 | 545 |
546 Handle<Object> NewReferenceError(const char* message, | 546 Handle<Object> NewReferenceError(const char* message, |
547 Vector< Handle<Object> > args); | 547 Vector< Handle<Object> > args); |
548 Handle<Object> NewReferenceError(const char* message, Handle<JSArray> args); | 548 Handle<Object> NewReferenceError(const char* message, Handle<JSArray> args); |
549 Handle<Object> NewReferenceError(Handle<String> message); | 549 Handle<Object> NewReferenceError(Handle<String> message); |
550 | 550 |
551 Handle<Object> NewEvalError(const char* message, | 551 Handle<Object> NewEvalError(const char* message, |
552 Vector< Handle<Object> > args); | 552 Vector< Handle<Object> > args); |
553 | 553 |
554 Handle<JSObject> NewIteratorResultObject(Handle<Object> value, bool done); | |
555 | |
556 Handle<String> NumberToString(Handle<Object> number, | 554 Handle<String> NumberToString(Handle<Object> number, |
557 bool check_number_string_cache = true); | 555 bool check_number_string_cache = true); |
558 | 556 |
559 Handle<String> Uint32ToString(uint32_t value) { | 557 Handle<String> Uint32ToString(uint32_t value) { |
560 return NumberToString(NewNumberFromUint(value)); | 558 return NumberToString(NewNumberFromUint(value)); |
561 } | 559 } |
562 | 560 |
563 enum ApiInstanceType { | 561 enum ApiInstanceType { |
564 JavaScriptObject, | 562 JavaScriptObject, |
565 InnerGlobalObject, | 563 InnerGlobalObject, |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
712 PretenureFlag pretenure = TENURED); | 710 PretenureFlag pretenure = TENURED); |
713 | 711 |
714 Handle<JSFunction> NewFunction(Handle<Map> map, | 712 Handle<JSFunction> NewFunction(Handle<Map> map, |
715 Handle<String> name, | 713 Handle<String> name, |
716 MaybeHandle<Code> maybe_code); | 714 MaybeHandle<Code> maybe_code); |
717 }; | 715 }; |
718 | 716 |
719 } } // namespace v8::internal | 717 } } // namespace v8::internal |
720 | 718 |
721 #endif // V8_FACTORY_H_ | 719 #endif // V8_FACTORY_H_ |
OLD | NEW |