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 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 // An ExternalReference represents a C++ address used in the generated | 676 // An ExternalReference represents a C++ address used in the generated |
677 // code. All references to C++ functions and variables must be encapsulated in | 677 // code. All references to C++ functions and variables must be encapsulated in |
678 // an ExternalReference instance. This is done in order to track the origin of | 678 // an ExternalReference instance. This is done in order to track the origin of |
679 // all external references in the code so that they can be bound to the correct | 679 // all external references in the code so that they can be bound to the correct |
680 // addresses when deserializing a heap. | 680 // addresses when deserializing a heap. |
681 class ExternalReference BASE_EMBEDDED { | 681 class ExternalReference BASE_EMBEDDED { |
682 public: | 682 public: |
683 // Used in the simulator to support different native api calls. | 683 // Used in the simulator to support different native api calls. |
684 enum Type { | 684 enum Type { |
685 // Builtin call. | 685 // Builtin call. |
686 // MaybeObject* f(v8::internal::Arguments). | 686 // Object* f(v8::internal::Arguments). |
687 BUILTIN_CALL, // default | 687 BUILTIN_CALL, // default |
688 | 688 |
689 // Builtin that takes float arguments and returns an int. | 689 // Builtin that takes float arguments and returns an int. |
690 // int f(double, double). | 690 // int f(double, double). |
691 BUILTIN_COMPARE_CALL, | 691 BUILTIN_COMPARE_CALL, |
692 | 692 |
693 // Builtin call that returns floating point. | 693 // Builtin call that returns floating point. |
694 // double f(double, double). | 694 // double f(double, double). |
695 BUILTIN_FP_FP_CALL, | 695 BUILTIN_FP_FP_CALL, |
696 | 696 |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1095 | 1095 |
1096 private: | 1096 private: |
1097 int32_t multiplier_; | 1097 int32_t multiplier_; |
1098 int32_t shift_; | 1098 int32_t shift_; |
1099 }; | 1099 }; |
1100 | 1100 |
1101 | 1101 |
1102 } } // namespace v8::internal | 1102 } } // namespace v8::internal |
1103 | 1103 |
1104 #endif // V8_ASSEMBLER_H_ | 1104 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |