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

Side by Side Diff: src/serialize.cc

Issue 80513004: Revert 17963, 17962 and 17955: Random number generator in JS changes (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove Yang's changes, too 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/trig-table.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");
300 Add(ExternalReference::delete_handle_scope_extensions(isolate).address(), 304 Add(ExternalReference::delete_handle_scope_extensions(isolate).address(),
301 RUNTIME_ENTRY, 305 RUNTIME_ENTRY,
302 4, 306 4,
303 "HandleScope::DeleteExtensions"); 307 "HandleScope::DeleteExtensions");
304 Add(ExternalReference:: 308 Add(ExternalReference::
305 incremental_marking_record_write_function(isolate).address(), 309 incremental_marking_record_write_function(isolate).address(),
306 RUNTIME_ENTRY, 310 RUNTIME_ENTRY,
307 5, 311 5,
308 "IncrementalMarking::RecordWrite"); 312 "IncrementalMarking::RecordWrite");
309 Add(ExternalReference::store_buffer_overflow_function(isolate).address(), 313 Add(ExternalReference::store_buffer_overflow_function(isolate).address(),
(...skipping 1551 matching lines...) Expand 10 before | Expand all | Expand 10 after
1861 1865
1862 bool SnapshotByteSource::AtEOF() { 1866 bool SnapshotByteSource::AtEOF() {
1863 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; 1867 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false;
1864 for (int x = position_; x < length_; x++) { 1868 for (int x = position_; x < length_; x++) {
1865 if (data_[x] != SerializerDeserializer::nop()) return false; 1869 if (data_[x] != SerializerDeserializer::nop()) return false;
1866 } 1870 }
1867 return true; 1871 return true;
1868 } 1872 }
1869 1873
1870 } } // namespace v8::internal 1874 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | src/trig-table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698