Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: src/serialize.cc

Issue 1599019: Change Math.random() to return 32 bits of random goodness, instead of 30 rand... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/mips/codegen-mips.cc ('k') | src/v8.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 Add(SCTableReference::valueReference(StubCache::kSecondary).address(), 322 Add(SCTableReference::valueReference(StubCache::kSecondary).address(),
323 STUB_CACHE_TABLE, 323 STUB_CACHE_TABLE,
324 4, 324 4,
325 "StubCache::secondary_->value"); 325 "StubCache::secondary_->value");
326 326
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::random_positive_smi_function().address(), 332 Add(ExternalReference::fill_heap_number_with_random_function().address(),
333 RUNTIME_ENTRY, 333 RUNTIME_ENTRY,
334 2, 334 2,
335 "V8::RandomPositiveSmi"); 335 "V8::FillHeapNumberWithRandom");
336 336
337 // Miscellaneous 337 // Miscellaneous
338 Add(ExternalReference::the_hole_value_location().address(), 338 Add(ExternalReference::the_hole_value_location().address(),
339 UNCLASSIFIED, 339 UNCLASSIFIED,
340 2, 340 2,
341 "Factory::the_hole_value().location()"); 341 "Factory::the_hole_value().location()");
342 Add(ExternalReference::roots_address().address(), 342 Add(ExternalReference::roots_address().address(),
343 UNCLASSIFIED, 343 UNCLASSIFIED,
344 3, 344 3,
345 "Heap::roots_address()"); 345 "Heap::roots_address()");
(...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after
1366 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); 1366 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize);
1367 } 1367 }
1368 } 1368 }
1369 int allocation_address = fullness_[space]; 1369 int allocation_address = fullness_[space];
1370 fullness_[space] = allocation_address + size; 1370 fullness_[space] = allocation_address + size;
1371 return allocation_address; 1371 return allocation_address;
1372 } 1372 }
1373 1373
1374 1374
1375 } } // namespace v8::internal 1375 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/codegen-mips.cc ('k') | src/v8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698