| 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 Handle<Code> CopyCode(Handle<Code> code); | 362 Handle<Code> CopyCode(Handle<Code> code); |
| 363 | 363 |
| 364 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); | 364 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); |
| 365 | 365 |
| 366 Handle<Object> ToObject(Handle<Object> object); | 366 Handle<Object> ToObject(Handle<Object> object); |
| 367 Handle<Object> ToObject(Handle<Object> object, | 367 Handle<Object> ToObject(Handle<Object> object, |
| 368 Handle<Context> native_context); | 368 Handle<Context> native_context); |
| 369 | 369 |
| 370 // Interface for creating error objects. | 370 // Interface for creating error objects. |
| 371 | 371 |
| 372 Handle<Object> NewError(const char* maker, const char* type, | 372 Handle<Object> NewError(const char* maker, const char* message, |
| 373 Handle<JSArray> args); | 373 Handle<JSArray> args); |
| 374 Handle<String> EmergencyNewError(const char* type, Handle<JSArray> args); | 374 Handle<String> EmergencyNewError(const char* message, Handle<JSArray> args); |
| 375 Handle<Object> NewError(const char* maker, const char* type, | 375 Handle<Object> NewError(const char* maker, const char* message, |
| 376 Vector< Handle<Object> > args); | 376 Vector< Handle<Object> > args); |
| 377 Handle<Object> NewError(const char* type, | 377 Handle<Object> NewError(const char* message, |
| 378 Vector< Handle<Object> > args); | 378 Vector< Handle<Object> > args); |
| 379 Handle<Object> NewError(Handle<String> message); | 379 Handle<Object> NewError(Handle<String> message); |
| 380 Handle<Object> NewError(const char* constructor, | 380 Handle<Object> NewError(const char* constructor, |
| 381 Handle<String> message); | 381 Handle<String> message); |
| 382 | 382 |
| 383 Handle<Object> NewTypeError(const char* type, | 383 Handle<Object> NewTypeError(const char* message, |
| 384 Vector< Handle<Object> > args); | 384 Vector< Handle<Object> > args); |
| 385 Handle<Object> NewTypeError(Handle<String> message); | 385 Handle<Object> NewTypeError(Handle<String> message); |
| 386 | 386 |
| 387 Handle<Object> NewRangeError(const char* type, | 387 Handle<Object> NewRangeError(const char* message, |
| 388 Vector< Handle<Object> > args); | 388 Vector< Handle<Object> > args); |
| 389 Handle<Object> NewRangeError(Handle<String> message); | 389 Handle<Object> NewRangeError(Handle<String> message); |
| 390 | 390 |
| 391 Handle<Object> NewSyntaxError(const char* type, Handle<JSArray> args); | 391 Handle<Object> NewSyntaxError(const char* message, Handle<JSArray> args); |
| 392 Handle<Object> NewSyntaxError(Handle<String> message); | 392 Handle<Object> NewSyntaxError(Handle<String> message); |
| 393 | 393 |
| 394 Handle<Object> NewReferenceError(const char* type, | 394 Handle<Object> NewReferenceError(const char* message, |
| 395 Vector< Handle<Object> > args); | 395 Vector< Handle<Object> > args); |
| 396 Handle<Object> NewReferenceError(Handle<String> message); | 396 Handle<Object> NewReferenceError(Handle<String> message); |
| 397 | 397 |
| 398 Handle<Object> NewEvalError(const char* type, | 398 Handle<Object> NewEvalError(const char* message, |
| 399 Vector< Handle<Object> > args); | 399 Vector< Handle<Object> > args); |
| 400 | 400 |
| 401 | 401 |
| 402 Handle<JSFunction> NewFunction(Handle<String> name, | 402 Handle<JSFunction> NewFunction(Handle<String> name, |
| 403 InstanceType type, | 403 InstanceType type, |
| 404 int instance_size, | 404 int instance_size, |
| 405 Handle<Code> code, | 405 Handle<Code> code, |
| 406 bool force_initial_map); | 406 bool force_initial_map); |
| 407 | 407 |
| 408 Handle<JSFunction> NewFunction(Handle<Map> function_map, | 408 Handle<JSFunction> NewFunction(Handle<Map> function_map, |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 } else { | 549 } else { |
| 550 return NewNumber(static_cast<double>(value), pretenure); | 550 return NewNumber(static_cast<double>(value), pretenure); |
| 551 } | 551 } |
| 552 } | 552 } |
| 553 | 553 |
| 554 | 554 |
| 555 | 555 |
| 556 } } // namespace v8::internal | 556 } } // namespace v8::internal |
| 557 | 557 |
| 558 #endif // V8_FACTORY_H_ | 558 #endif // V8_FACTORY_H_ |
| OLD | NEW |