| 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 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1065 | 1065 |
| 1066 ExternalReference ExternalReference::isolate_address(Isolate* isolate) { | 1066 ExternalReference ExternalReference::isolate_address(Isolate* isolate) { |
| 1067 return ExternalReference(isolate); | 1067 return ExternalReference(isolate); |
| 1068 } | 1068 } |
| 1069 | 1069 |
| 1070 ExternalReference ExternalReference::interpreter_dispatch_table_address( | 1070 ExternalReference ExternalReference::interpreter_dispatch_table_address( |
| 1071 Isolate* isolate) { | 1071 Isolate* isolate) { |
| 1072 return ExternalReference(isolate->interpreter()->dispatch_table_address()); | 1072 return ExternalReference(isolate->interpreter()->dispatch_table_address()); |
| 1073 } | 1073 } |
| 1074 | 1074 |
| 1075 ExternalReference |
| 1076 ExternalReference::interpreter_handler_to_handler_dispatch_counters( |
| 1077 Isolate* isolate) { |
| 1078 return ExternalReference( |
| 1079 isolate->interpreter()->handler_to_handler_dispatch_counters()); |
| 1080 } |
| 1081 |
| 1075 ExternalReference::ExternalReference(StatsCounter* counter) | 1082 ExternalReference::ExternalReference(StatsCounter* counter) |
| 1076 : address_(reinterpret_cast<Address>(counter->GetInternalPointer())) {} | 1083 : address_(reinterpret_cast<Address>(counter->GetInternalPointer())) {} |
| 1077 | 1084 |
| 1078 | 1085 |
| 1079 ExternalReference::ExternalReference(Isolate::AddressId id, Isolate* isolate) | 1086 ExternalReference::ExternalReference(Isolate::AddressId id, Isolate* isolate) |
| 1080 : address_(isolate->get_address_from_id(id)) {} | 1087 : address_(isolate->get_address_from_id(id)) {} |
| 1081 | 1088 |
| 1082 | 1089 |
| 1083 ExternalReference::ExternalReference(const SCTableReference& table_ref) | 1090 ExternalReference::ExternalReference(const SCTableReference& table_ref) |
| 1084 : address_(table_ref.address()) {} | 1091 : address_(table_ref.address()) {} |
| (...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2077 | 2084 |
| 2078 | 2085 |
| 2079 void Assembler::DataAlign(int m) { | 2086 void Assembler::DataAlign(int m) { |
| 2080 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); | 2087 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); |
| 2081 while ((pc_offset() & (m - 1)) != 0) { | 2088 while ((pc_offset() & (m - 1)) != 0) { |
| 2082 db(0); | 2089 db(0); |
| 2083 } | 2090 } |
| 2084 } | 2091 } |
| 2085 } // namespace internal | 2092 } // namespace internal |
| 2086 } // namespace v8 | 2093 } // namespace v8 |
| OLD | NEW |