| 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 "isolate.h" | 8 #include "isolate.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 Handle<Object> NewSyntaxError(Handle<String> message); | 497 Handle<Object> NewSyntaxError(Handle<String> message); |
| 498 | 498 |
| 499 Handle<Object> NewReferenceError(const char* message, | 499 Handle<Object> NewReferenceError(const char* message, |
| 500 Vector< Handle<Object> > args); | 500 Vector< Handle<Object> > args); |
| 501 Handle<Object> NewReferenceError(const char* message, Handle<JSArray> args); | 501 Handle<Object> NewReferenceError(const char* message, Handle<JSArray> args); |
| 502 Handle<Object> NewReferenceError(Handle<String> message); | 502 Handle<Object> NewReferenceError(Handle<String> message); |
| 503 | 503 |
| 504 Handle<Object> NewEvalError(const char* message, | 504 Handle<Object> NewEvalError(const char* message, |
| 505 Vector< Handle<Object> > args); | 505 Vector< Handle<Object> > args); |
| 506 | 506 |
| 507 Handle<JSObject> NewIteratorResultObject(Handle<Object> value, bool done); |
| 508 |
| 507 Handle<String> NumberToString(Handle<Object> number, | 509 Handle<String> NumberToString(Handle<Object> number, |
| 508 bool check_number_string_cache = true); | 510 bool check_number_string_cache = true); |
| 509 | 511 |
| 510 Handle<String> Uint32ToString(uint32_t value) { | 512 Handle<String> Uint32ToString(uint32_t value) { |
| 511 return NumberToString(NewNumberFromUint(value)); | 513 return NumberToString(NewNumberFromUint(value)); |
| 512 } | 514 } |
| 513 | 515 |
| 514 enum ApiInstanceType { | 516 enum ApiInstanceType { |
| 515 JavaScriptObject, | 517 JavaScriptObject, |
| 516 InnerGlobalObject, | 518 InnerGlobalObject, |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 // the string representation of the number. Otherwise return undefined. | 661 // the string representation of the number. Otherwise return undefined. |
| 660 Handle<Object> GetNumberStringCache(Handle<Object> number); | 662 Handle<Object> GetNumberStringCache(Handle<Object> number); |
| 661 | 663 |
| 662 // Update the cache with a new number-string pair. | 664 // Update the cache with a new number-string pair. |
| 663 void SetNumberStringCache(Handle<Object> number, Handle<String> string); | 665 void SetNumberStringCache(Handle<Object> number, Handle<String> string); |
| 664 }; | 666 }; |
| 665 | 667 |
| 666 } } // namespace v8::internal | 668 } } // namespace v8::internal |
| 667 | 669 |
| 668 #endif // V8_FACTORY_H_ | 670 #endif // V8_FACTORY_H_ |
| OLD | NEW |