| 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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 // all external references in the code so that they can be bound to the correct | 494 // all external references in the code so that they can be bound to the correct |
| 495 // addresses when deserializing a heap. | 495 // addresses when deserializing a heap. |
| 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 that takes float arguments and returns an int. |
| 505 // int f(double, double). |
| 506 BUILTIN_COMPARE_CALL, |
| 507 |
| 504 // Builtin call that returns floating point. | 508 // Builtin call that returns floating point. |
| 505 // double f(double, double). | 509 // double f(double, double). |
| 506 FP_RETURN_CALL, | 510 BUILTIN_FP_FP_CALL, |
| 511 |
| 512 // Builtin call that returns floating point. |
| 513 // double f(double). |
| 514 BUILTIN_FP_CALL, |
| 515 |
| 516 // Builtin call that returns floating point. |
| 517 // double f(double, int). |
| 518 BUILTIN_FP_INT_CALL, |
| 507 | 519 |
| 508 // Direct call to API function callback. | 520 // Direct call to API function callback. |
| 509 // Handle<Value> f(v8::Arguments&) | 521 // Handle<Value> f(v8::Arguments&) |
| 510 DIRECT_API_CALL, | 522 DIRECT_API_CALL, |
| 511 | 523 |
| 512 // Direct call to accessor getter callback. | 524 // Direct call to accessor getter callback. |
| 513 // Handle<value> f(Local<String> property, AccessorInfo& info) | 525 // Handle<value> f(Local<String> property, AccessorInfo& info) |
| 514 DIRECT_GETTER_CALL | 526 DIRECT_GETTER_CALL |
| 515 }; | 527 }; |
| 516 | 528 |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 813 return num_bits_set; | 825 return num_bits_set; |
| 814 } | 826 } |
| 815 | 827 |
| 816 // Computes pow(x, y) with the special cases in the spec for Math.pow. | 828 // Computes pow(x, y) with the special cases in the spec for Math.pow. |
| 817 double power_double_int(double x, int y); | 829 double power_double_int(double x, int y); |
| 818 double power_double_double(double x, double y); | 830 double power_double_double(double x, double y); |
| 819 | 831 |
| 820 } } // namespace v8::internal | 832 } } // namespace v8::internal |
| 821 | 833 |
| 822 #endif // V8_ASSEMBLER_H_ | 834 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |