OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 | 429 |
430 Handle<Object> NewRangeError(const char* message, | 430 Handle<Object> NewRangeError(const char* message, |
431 Vector< Handle<Object> > args); | 431 Vector< Handle<Object> > args); |
432 Handle<Object> NewRangeError(Handle<String> message); | 432 Handle<Object> NewRangeError(Handle<String> message); |
433 | 433 |
434 Handle<Object> NewSyntaxError(const char* message, Handle<JSArray> args); | 434 Handle<Object> NewSyntaxError(const char* message, Handle<JSArray> args); |
435 Handle<Object> NewSyntaxError(Handle<String> message); | 435 Handle<Object> NewSyntaxError(Handle<String> message); |
436 | 436 |
437 Handle<Object> NewReferenceError(const char* message, | 437 Handle<Object> NewReferenceError(const char* message, |
438 Vector< Handle<Object> > args); | 438 Vector< Handle<Object> > args); |
| 439 Handle<Object> NewReferenceError(const char* message, Handle<JSArray> args); |
439 Handle<Object> NewReferenceError(Handle<String> message); | 440 Handle<Object> NewReferenceError(Handle<String> message); |
440 | 441 |
441 Handle<Object> NewEvalError(const char* message, | 442 Handle<Object> NewEvalError(const char* message, |
442 Vector< Handle<Object> > args); | 443 Vector< Handle<Object> > args); |
443 | 444 |
444 | 445 |
445 Handle<JSFunction> NewFunction(Handle<String> name, | 446 Handle<JSFunction> NewFunction(Handle<String> name, |
446 InstanceType type, | 447 InstanceType type, |
447 int instance_size, | 448 int instance_size, |
448 Handle<Code> code, | 449 Handle<Code> code, |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 isolate()); | 600 isolate()); |
600 } else { | 601 } else { |
601 return NewNumber(static_cast<double>(value), pretenure); | 602 return NewNumber(static_cast<double>(value), pretenure); |
602 } | 603 } |
603 } | 604 } |
604 | 605 |
605 | 606 |
606 } } // namespace v8::internal | 607 } } // namespace v8::internal |
607 | 608 |
608 #endif // V8_FACTORY_H_ | 609 #endif // V8_FACTORY_H_ |
OLD | NEW |