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 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1158 isolate->heap()->NewSpaceMask())); | 1158 isolate->heap()->NewSpaceMask())); |
1159 } | 1159 } |
1160 | 1160 |
1161 | 1161 |
1162 ExternalReference ExternalReference::new_space_allocation_top_address( | 1162 ExternalReference ExternalReference::new_space_allocation_top_address( |
1163 Isolate* isolate) { | 1163 Isolate* isolate) { |
1164 return ExternalReference(isolate->heap()->NewSpaceAllocationTopAddress()); | 1164 return ExternalReference(isolate->heap()->NewSpaceAllocationTopAddress()); |
1165 } | 1165 } |
1166 | 1166 |
1167 | 1167 |
1168 ExternalReference ExternalReference::heap_always_allocate_scope_depth( | |
1169 Isolate* isolate) { | |
1170 Heap* heap = isolate->heap(); | |
1171 return ExternalReference(heap->always_allocate_scope_depth_address()); | |
1172 } | |
1173 | |
1174 | |
1175 ExternalReference ExternalReference::new_space_allocation_limit_address( | 1168 ExternalReference ExternalReference::new_space_allocation_limit_address( |
1176 Isolate* isolate) { | 1169 Isolate* isolate) { |
1177 return ExternalReference(isolate->heap()->NewSpaceAllocationLimitAddress()); | 1170 return ExternalReference(isolate->heap()->NewSpaceAllocationLimitAddress()); |
1178 } | 1171 } |
1179 | 1172 |
1180 | 1173 |
1181 ExternalReference ExternalReference::old_pointer_space_allocation_top_address( | 1174 ExternalReference ExternalReference::old_pointer_space_allocation_top_address( |
1182 Isolate* isolate) { | 1175 Isolate* isolate) { |
1183 return ExternalReference( | 1176 return ExternalReference( |
1184 isolate->heap()->OldPointerSpaceAllocationTopAddress()); | 1177 isolate->heap()->OldPointerSpaceAllocationTopAddress()); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1257 return ExternalReference(reinterpret_cast<void*>(&double_constants.one_half)); | 1250 return ExternalReference(reinterpret_cast<void*>(&double_constants.one_half)); |
1258 } | 1251 } |
1259 | 1252 |
1260 | 1253 |
1261 ExternalReference ExternalReference::address_of_minus_one_half() { | 1254 ExternalReference ExternalReference::address_of_minus_one_half() { |
1262 return ExternalReference( | 1255 return ExternalReference( |
1263 reinterpret_cast<void*>(&double_constants.minus_one_half)); | 1256 reinterpret_cast<void*>(&double_constants.minus_one_half)); |
1264 } | 1257 } |
1265 | 1258 |
1266 | 1259 |
1267 ExternalReference ExternalReference::address_of_minus_zero() { | |
1268 return ExternalReference( | |
1269 reinterpret_cast<void*>(&double_constants.minus_zero)); | |
1270 } | |
1271 | |
1272 | |
1273 ExternalReference ExternalReference::address_of_zero() { | |
1274 return ExternalReference(reinterpret_cast<void*>(&double_constants.zero)); | |
1275 } | |
1276 | |
1277 | |
1278 ExternalReference ExternalReference::address_of_uint8_max_value() { | |
1279 return ExternalReference( | |
1280 reinterpret_cast<void*>(&double_constants.uint8_max_value)); | |
1281 } | |
1282 | |
1283 | |
1284 ExternalReference ExternalReference::address_of_negative_infinity() { | 1260 ExternalReference ExternalReference::address_of_negative_infinity() { |
1285 return ExternalReference( | 1261 return ExternalReference( |
1286 reinterpret_cast<void*>(&double_constants.negative_infinity)); | 1262 reinterpret_cast<void*>(&double_constants.negative_infinity)); |
1287 } | 1263 } |
1288 | 1264 |
1289 | 1265 |
1290 ExternalReference ExternalReference::address_of_canonical_non_hole_nan() { | 1266 ExternalReference ExternalReference::address_of_canonical_non_hole_nan() { |
1291 return ExternalReference( | 1267 return ExternalReference( |
1292 reinterpret_cast<void*>(&double_constants.canonical_non_hole_nan)); | 1268 reinterpret_cast<void*>(&double_constants.canonical_non_hole_nan)); |
1293 } | 1269 } |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1646 r2 = r2 - ad; | 1622 r2 = r2 - ad; |
1647 } | 1623 } |
1648 delta = ad - r2; | 1624 delta = ad - r2; |
1649 } while (q1 < delta || (q1 == delta && r1 == 0)); | 1625 } while (q1 < delta || (q1 == delta && r1 == 0)); |
1650 int32_t mul = static_cast<int32_t>(q2 + 1); | 1626 int32_t mul = static_cast<int32_t>(q2 + 1); |
1651 multiplier_ = (d < 0) ? -mul : mul; | 1627 multiplier_ = (d < 0) ? -mul : mul; |
1652 shift_ = p - 32; | 1628 shift_ = p - 32; |
1653 } | 1629 } |
1654 | 1630 |
1655 } } // namespace v8::internal | 1631 } } // namespace v8::internal |
OLD | NEW |