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) or | 817 // Object* f(v8::internal::Arguments). |
| 818 BUILTIN_CALL, // default |
| 819 |
| 820 // Builtin call returning object pair. |
818 // ObjectPair f(v8::internal::Arguments). | 821 // ObjectPair f(v8::internal::Arguments). |
819 BUILTIN_CALL, // default | 822 BUILTIN_CALL_PAIR, |
820 | 823 |
821 // Builtin call that returns . | 824 // Builtin call that returns . |
822 // ObjectTriple f(v8::internal::Arguments). | 825 // ObjectTriple f(v8::internal::Arguments). |
823 BUILTIN_CALL_TRIPLE, | 826 BUILTIN_CALL_TRIPLE, |
824 | 827 |
825 // Builtin that takes float arguments and returns an int. | 828 // Builtin that takes float arguments and returns an int. |
826 // int f(double, double). | 829 // int f(double, double). |
827 BUILTIN_COMPARE_CALL, | 830 BUILTIN_COMPARE_CALL, |
828 | 831 |
829 // Builtin call that returns floating point. | 832 // Builtin call that returns floating point. |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1279 std::vector<ConstantPoolEntry> shared_entries; | 1282 std::vector<ConstantPoolEntry> shared_entries; |
1280 }; | 1283 }; |
1281 | 1284 |
1282 Label emitted_label_; // Records pc_offset of emitted pool | 1285 Label emitted_label_; // Records pc_offset of emitted pool |
1283 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; | 1286 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; |
1284 }; | 1287 }; |
1285 | 1288 |
1286 } // namespace internal | 1289 } // namespace internal |
1287 } // namespace v8 | 1290 } // namespace v8 |
1288 #endif // V8_ASSEMBLER_H_ | 1291 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |