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 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 ApiFunction* fun, | 973 ApiFunction* fun, |
974 Type type = ExternalReference::BUILTIN_CALL, | 974 Type type = ExternalReference::BUILTIN_CALL, |
975 Isolate* isolate = NULL) | 975 Isolate* isolate = NULL) |
976 : address_(Redirect(isolate, fun->address(), type)) {} | 976 : address_(Redirect(isolate, fun->address(), type)) {} |
977 | 977 |
978 | 978 |
979 ExternalReference::ExternalReference(Builtins::Name name, Isolate* isolate) | 979 ExternalReference::ExternalReference(Builtins::Name name, Isolate* isolate) |
980 : address_(isolate->builtins()->builtin_address(name)) {} | 980 : address_(isolate->builtins()->builtin_address(name)) {} |
981 | 981 |
982 | 982 |
983 ExternalReference::ExternalReference(Runtime::FunctionId id, | 983 ExternalReference::ExternalReference(Runtime::FunctionId id, Isolate* isolate) |
984 Isolate* isolate) | 984 : address_(Redirect(isolate, Runtime::FunctionForId(id)->entry)) { |
985 : address_(Redirect(isolate, Runtime::FunctionForId(id)->entry)) {} | 985 DCHECK_NE(Runtime::CONTEXT, Runtime::FunctionForId(id)->intrinsic_type); |
| 986 } |
986 | 987 |
987 | 988 |
988 ExternalReference::ExternalReference(const Runtime::Function* f, | 989 ExternalReference::ExternalReference(const Runtime::Function* f, |
989 Isolate* isolate) | 990 Isolate* isolate) |
990 : address_(Redirect(isolate, f->entry)) {} | 991 : address_(Redirect(isolate, f->entry)) { |
| 992 DCHECK_NE(Runtime::CONTEXT, f->intrinsic_type); |
| 993 } |
991 | 994 |
992 | 995 |
993 ExternalReference ExternalReference::isolate_address(Isolate* isolate) { | 996 ExternalReference ExternalReference::isolate_address(Isolate* isolate) { |
994 return ExternalReference(isolate); | 997 return ExternalReference(isolate); |
995 } | 998 } |
996 | 999 |
997 | 1000 |
998 ExternalReference::ExternalReference(StatsCounter* counter) | 1001 ExternalReference::ExternalReference(StatsCounter* counter) |
999 : address_(reinterpret_cast<Address>(counter->GetInternalPointer())) {} | 1002 : address_(reinterpret_cast<Address>(counter->GetInternalPointer())) {} |
1000 | 1003 |
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1821 | 1824 |
1822 | 1825 |
1823 void Assembler::DataAlign(int m) { | 1826 void Assembler::DataAlign(int m) { |
1824 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); | 1827 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); |
1825 while ((pc_offset() & (m - 1)) != 0) { | 1828 while ((pc_offset() & (m - 1)) != 0) { |
1826 db(0); | 1829 db(0); |
1827 } | 1830 } |
1828 } | 1831 } |
1829 } // namespace internal | 1832 } // namespace internal |
1830 } // namespace v8 | 1833 } // namespace v8 |
OLD | NEW |