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

Side by Side Diff: src/serialize.cc

Issue 82763005: Reland "Implement Math.random() purely in JavaScript" plus fixes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added assertion Created 7 years 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/runtime.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 Add(stub_cache->map_reference(StubCache::kSecondary).address(), 290 Add(stub_cache->map_reference(StubCache::kSecondary).address(),
291 STUB_CACHE_TABLE, 291 STUB_CACHE_TABLE,
292 6, 292 6,
293 "StubCache::secondary_->map"); 293 "StubCache::secondary_->map");
294 294
295 // Runtime entries 295 // Runtime entries
296 Add(ExternalReference::perform_gc_function(isolate).address(), 296 Add(ExternalReference::perform_gc_function(isolate).address(),
297 RUNTIME_ENTRY, 297 RUNTIME_ENTRY,
298 1, 298 1,
299 "Runtime::PerformGC"); 299 "Runtime::PerformGC");
300 Add(ExternalReference::random_uint32_function(isolate).address(),
301 RUNTIME_ENTRY,
302 3,
303 "V8::Random");
304 Add(ExternalReference::delete_handle_scope_extensions(isolate).address(), 300 Add(ExternalReference::delete_handle_scope_extensions(isolate).address(),
305 RUNTIME_ENTRY, 301 RUNTIME_ENTRY,
306 4, 302 4,
307 "HandleScope::DeleteExtensions"); 303 "HandleScope::DeleteExtensions");
308 Add(ExternalReference:: 304 Add(ExternalReference::
309 incremental_marking_record_write_function(isolate).address(), 305 incremental_marking_record_write_function(isolate).address(),
310 RUNTIME_ENTRY, 306 RUNTIME_ENTRY,
311 5, 307 5,
312 "IncrementalMarking::RecordWrite"); 308 "IncrementalMarking::RecordWrite");
313 Add(ExternalReference::store_buffer_overflow_function(isolate).address(), 309 Add(ExternalReference::store_buffer_overflow_function(isolate).address(),
(...skipping 1551 matching lines...) Expand 10 before | Expand all | Expand 10 after
1865 1861
1866 bool SnapshotByteSource::AtEOF() { 1862 bool SnapshotByteSource::AtEOF() {
1867 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; 1863 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false;
1868 for (int x = position_; x < length_; x++) { 1864 for (int x = position_; x < length_; x++) {
1869 if (data_[x] != SerializerDeserializer::nop()) return false; 1865 if (data_[x] != SerializerDeserializer::nop()) return false;
1870 } 1866 }
1871 return true; 1867 return true;
1872 } 1868 }
1873 1869
1874 } } // namespace v8::internal 1870 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | src/v8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698