OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 class ExternalReference BASE_EMBEDDED { | 496 class ExternalReference BASE_EMBEDDED { |
497 public: | 497 public: |
498 // Used in the simulator to support different native api calls. | 498 // Used in the simulator to support different native api calls. |
499 enum Type { | 499 enum Type { |
500 // Builtin call. | 500 // Builtin call. |
501 // MaybeObject* f(v8::internal::Arguments). | 501 // MaybeObject* f(v8::internal::Arguments). |
502 BUILTIN_CALL, // default | 502 BUILTIN_CALL, // default |
503 | 503 |
504 // Builtin call that returns floating point. | 504 // Builtin call that returns floating point. |
505 // double f(double, double). | 505 // double f(double, double). |
506 FP_RETURN_CALL, | 506 BUILTIN_FP_FP_CALL, |
| 507 |
| 508 // Builtin call that returns floating point. |
| 509 // double f(double). |
| 510 BUILTIN_FP_CALL, |
| 511 |
| 512 // Builtin call that returns floating point. |
| 513 // double f(double, int). |
| 514 BUILTIN_FP_INT_CALL, |
507 | 515 |
508 // Direct call to API function callback. | 516 // Direct call to API function callback. |
509 // Handle<Value> f(v8::Arguments&) | 517 // Handle<Value> f(v8::Arguments&) |
510 DIRECT_API_CALL, | 518 DIRECT_API_CALL, |
511 | 519 |
512 // Direct call to accessor getter callback. | 520 // Direct call to accessor getter callback. |
513 // Handle<value> f(Local<String> property, AccessorInfo& info) | 521 // Handle<value> f(Local<String> property, AccessorInfo& info) |
514 DIRECT_GETTER_CALL | 522 DIRECT_GETTER_CALL |
515 }; | 523 }; |
516 | 524 |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 return num_bits_set; | 821 return num_bits_set; |
814 } | 822 } |
815 | 823 |
816 // Computes pow(x, y) with the special cases in the spec for Math.pow. | 824 // Computes pow(x, y) with the special cases in the spec for Math.pow. |
817 double power_double_int(double x, int y); | 825 double power_double_int(double x, int y); |
818 double power_double_double(double x, double y); | 826 double power_double_double(double x, double y); |
819 | 827 |
820 } } // namespace v8::internal | 828 } } // namespace v8::internal |
821 | 829 |
822 #endif // V8_ASSEMBLER_H_ | 830 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |