| 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 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 // An ExternalReference represents a C++ address used in the generated | 807 // An ExternalReference represents a C++ address used in the generated |
| 808 // code. All references to C++ functions and variables must be encapsulated in | 808 // code. All references to C++ functions and variables must be encapsulated in |
| 809 // an ExternalReference instance. This is done in order to track the origin of | 809 // an ExternalReference instance. This is done in order to track the origin of |
| 810 // all external references in the code so that they can be bound to the correct | 810 // all external references in the code so that they can be bound to the correct |
| 811 // addresses when deserializing a heap. | 811 // addresses when deserializing a heap. |
| 812 class ExternalReference BASE_EMBEDDED { | 812 class ExternalReference BASE_EMBEDDED { |
| 813 public: | 813 public: |
| 814 // Used in the simulator to support different native api calls. | 814 // Used in the simulator to support different native api calls. |
| 815 enum Type { | 815 enum Type { |
| 816 // Builtin call. | 816 // Builtin call. |
| 817 // Object* f(v8::internal::Arguments). | 817 // Object* f(v8::internal::Arguments) or |
| 818 // ObjectPair f(v8::internal::Arguments). |
| 818 BUILTIN_CALL, // default | 819 BUILTIN_CALL, // default |
| 819 | 820 |
| 821 // Builtin call that returns . |
| 822 // ObjectTriple f(v8::internal::Arguments). |
| 823 BUILTIN_CALL_TRIPLE, |
| 824 |
| 820 // Builtin that takes float arguments and returns an int. | 825 // Builtin that takes float arguments and returns an int. |
| 821 // int f(double, double). | 826 // int f(double, double). |
| 822 BUILTIN_COMPARE_CALL, | 827 BUILTIN_COMPARE_CALL, |
| 823 | 828 |
| 824 // Builtin call that returns floating point. | 829 // Builtin call that returns floating point. |
| 825 // double f(double, double). | 830 // double f(double, double). |
| 826 BUILTIN_FP_FP_CALL, | 831 BUILTIN_FP_FP_CALL, |
| 827 | 832 |
| 828 // Builtin call that returns floating point. | 833 // Builtin call that returns floating point. |
| 829 // double f(double). | 834 // double f(double). |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1274 std::vector<ConstantPoolEntry> shared_entries; | 1279 std::vector<ConstantPoolEntry> shared_entries; |
| 1275 }; | 1280 }; |
| 1276 | 1281 |
| 1277 Label emitted_label_; // Records pc_offset of emitted pool | 1282 Label emitted_label_; // Records pc_offset of emitted pool |
| 1278 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; | 1283 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; |
| 1279 }; | 1284 }; |
| 1280 | 1285 |
| 1281 } // namespace internal | 1286 } // namespace internal |
| 1282 } // namespace v8 | 1287 } // namespace v8 |
| 1283 #endif // V8_ASSEMBLER_H_ | 1288 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |