| 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 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1017 Type type = ExternalReference::BUILTIN_CALL, | 1017 Type type = ExternalReference::BUILTIN_CALL, |
| 1018 Isolate* isolate = NULL) | 1018 Isolate* isolate = NULL) |
| 1019 : address_(Redirect(isolate, fun->address(), type)) {} | 1019 : address_(Redirect(isolate, fun->address(), type)) {} |
| 1020 | 1020 |
| 1021 | 1021 |
| 1022 ExternalReference::ExternalReference(Builtins::Name name, Isolate* isolate) | 1022 ExternalReference::ExternalReference(Builtins::Name name, Isolate* isolate) |
| 1023 : address_(isolate->builtins()->builtin_address(name)) {} | 1023 : address_(isolate->builtins()->builtin_address(name)) {} |
| 1024 | 1024 |
| 1025 | 1025 |
| 1026 ExternalReference::ExternalReference(Runtime::FunctionId id, Isolate* isolate) | 1026 ExternalReference::ExternalReference(Runtime::FunctionId id, Isolate* isolate) |
| 1027 : address_(Redirect(isolate, Runtime::FunctionForId(id)->entry)) {} | 1027 : ExternalReference(Runtime::FunctionForId(id), isolate) {} |
| 1028 | 1028 |
| 1029 | 1029 |
| 1030 ExternalReference::ExternalReference(const Runtime::Function* f, | 1030 ExternalReference::ExternalReference(const Runtime::Function* f, |
| 1031 Isolate* isolate) | 1031 Isolate* isolate) |
| 1032 : address_(Redirect(isolate, f->entry)) {} | 1032 : address_(Redirect(isolate, f->entry, f->result_size == 3 |
| 1033 ? BUILTIN_CALL_TRIPLE |
| 1034 : BUILTIN_CALL)) {} |
| 1033 | 1035 |
| 1034 | 1036 |
| 1035 ExternalReference ExternalReference::isolate_address(Isolate* isolate) { | 1037 ExternalReference ExternalReference::isolate_address(Isolate* isolate) { |
| 1036 return ExternalReference(isolate); | 1038 return ExternalReference(isolate); |
| 1037 } | 1039 } |
| 1038 | 1040 |
| 1039 | 1041 |
| 1040 ExternalReference::ExternalReference(StatsCounter* counter) | 1042 ExternalReference::ExternalReference(StatsCounter* counter) |
| 1041 : address_(reinterpret_cast<Address>(counter->GetInternalPointer())) {} | 1043 : address_(reinterpret_cast<Address>(counter->GetInternalPointer())) {} |
| 1042 | 1044 |
| (...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1850 | 1852 |
| 1851 | 1853 |
| 1852 void Assembler::DataAlign(int m) { | 1854 void Assembler::DataAlign(int m) { |
| 1853 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); | 1855 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); |
| 1854 while ((pc_offset() & (m - 1)) != 0) { | 1856 while ((pc_offset() & (m - 1)) != 0) { |
| 1855 db(0); | 1857 db(0); |
| 1856 } | 1858 } |
| 1857 } | 1859 } |
| 1858 } // namespace internal | 1860 } // namespace internal |
| 1859 } // namespace v8 | 1861 } // namespace v8 |
| OLD | NEW |