| OLD | NEW |
| 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 Loading... |
| 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::fill_heap_number_with_random_function( | |
| 301 isolate).address(), | |
| 302 RUNTIME_ENTRY, | |
| 303 2, | |
| 304 "V8::FillHeapNumberWithRandom"); | |
| 305 Add(ExternalReference::random_uint32_function(isolate).address(), | 300 Add(ExternalReference::random_uint32_function(isolate).address(), |
| 306 RUNTIME_ENTRY, | 301 RUNTIME_ENTRY, |
| 307 3, | 302 3, |
| 308 "V8::Random"); | 303 "V8::Random"); |
| 309 Add(ExternalReference::delete_handle_scope_extensions(isolate).address(), | 304 Add(ExternalReference::delete_handle_scope_extensions(isolate).address(), |
| 310 RUNTIME_ENTRY, | 305 RUNTIME_ENTRY, |
| 311 4, | 306 4, |
| 312 "HandleScope::DeleteExtensions"); | 307 "HandleScope::DeleteExtensions"); |
| 313 Add(ExternalReference:: | 308 Add(ExternalReference:: |
| 314 incremental_marking_record_write_function(isolate).address(), | 309 incremental_marking_record_write_function(isolate).address(), |
| (...skipping 1565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1880 | 1875 |
| 1881 bool SnapshotByteSource::AtEOF() { | 1876 bool SnapshotByteSource::AtEOF() { |
| 1882 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; | 1877 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; |
| 1883 for (int x = position_; x < length_; x++) { | 1878 for (int x = position_; x < length_; x++) { |
| 1884 if (data_[x] != SerializerDeserializer::nop()) return false; | 1879 if (data_[x] != SerializerDeserializer::nop()) return false; |
| 1885 } | 1880 } |
| 1886 return true; | 1881 return true; |
| 1887 } | 1882 } |
| 1888 | 1883 |
| 1889 } } // namespace v8::internal | 1884 } } // namespace v8::internal |
| OLD | NEW |