OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 // Runtime entries | 327 // Runtime entries |
328 Add(ExternalReference::perform_gc_function().address(), | 328 Add(ExternalReference::perform_gc_function().address(), |
329 RUNTIME_ENTRY, | 329 RUNTIME_ENTRY, |
330 1, | 330 1, |
331 "Runtime::PerformGC"); | 331 "Runtime::PerformGC"); |
332 Add(ExternalReference::fill_heap_number_with_random_function().address(), | 332 Add(ExternalReference::fill_heap_number_with_random_function().address(), |
333 RUNTIME_ENTRY, | 333 RUNTIME_ENTRY, |
334 2, | 334 2, |
335 "V8::FillHeapNumberWithRandom"); | 335 "V8::FillHeapNumberWithRandom"); |
336 | 336 |
| 337 Add(ExternalReference::random_uint32_function().address(), |
| 338 RUNTIME_ENTRY, |
| 339 3, |
| 340 "V8::Random"); |
| 341 |
337 // Miscellaneous | 342 // Miscellaneous |
338 Add(ExternalReference::the_hole_value_location().address(), | 343 Add(ExternalReference::the_hole_value_location().address(), |
339 UNCLASSIFIED, | 344 UNCLASSIFIED, |
340 2, | 345 2, |
341 "Factory::the_hole_value().location()"); | 346 "Factory::the_hole_value().location()"); |
342 Add(ExternalReference::roots_address().address(), | 347 Add(ExternalReference::roots_address().address(), |
343 UNCLASSIFIED, | 348 UNCLASSIFIED, |
344 3, | 349 3, |
345 "Heap::roots_address()"); | 350 "Heap::roots_address()"); |
346 Add(ExternalReference::address_of_stack_limit().address(), | 351 Add(ExternalReference::address_of_stack_limit().address(), |
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1366 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); | 1371 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); |
1367 } | 1372 } |
1368 } | 1373 } |
1369 int allocation_address = fullness_[space]; | 1374 int allocation_address = fullness_[space]; |
1370 fullness_[space] = allocation_address + size; | 1375 fullness_[space] = allocation_address + size; |
1371 return allocation_address; | 1376 return allocation_address; |
1372 } | 1377 } |
1373 | 1378 |
1374 | 1379 |
1375 } } // namespace v8::internal | 1380 } } // namespace v8::internal |
OLD | NEW |