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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 Add(stub_cache->map_reference(StubCache::kSecondary).address(), | 306 Add(stub_cache->map_reference(StubCache::kSecondary).address(), |
307 STUB_CACHE_TABLE, | 307 STUB_CACHE_TABLE, |
308 6, | 308 6, |
309 "StubCache::secondary_->map"); | 309 "StubCache::secondary_->map"); |
310 | 310 |
311 // Runtime entries | 311 // Runtime entries |
312 Add(ExternalReference::perform_gc_function(isolate).address(), | 312 Add(ExternalReference::perform_gc_function(isolate).address(), |
313 RUNTIME_ENTRY, | 313 RUNTIME_ENTRY, |
314 1, | 314 1, |
315 "Runtime::PerformGC"); | 315 "Runtime::PerformGC"); |
| 316 // Runtime entries |
| 317 Add(ExternalReference::out_of_memory_function(isolate).address(), |
| 318 RUNTIME_ENTRY, |
| 319 2, |
| 320 "Runtime::OutOfMemory"); |
316 Add(ExternalReference::delete_handle_scope_extensions(isolate).address(), | 321 Add(ExternalReference::delete_handle_scope_extensions(isolate).address(), |
317 RUNTIME_ENTRY, | 322 RUNTIME_ENTRY, |
318 4, | 323 4, |
319 "HandleScope::DeleteExtensions"); | 324 "HandleScope::DeleteExtensions"); |
320 Add(ExternalReference:: | 325 Add(ExternalReference:: |
321 incremental_marking_record_write_function(isolate).address(), | 326 incremental_marking_record_write_function(isolate).address(), |
322 RUNTIME_ENTRY, | 327 RUNTIME_ENTRY, |
323 5, | 328 5, |
324 "IncrementalMarking::RecordWrite"); | 329 "IncrementalMarking::RecordWrite"); |
325 Add(ExternalReference::store_buffer_overflow_function(isolate).address(), | 330 Add(ExternalReference::store_buffer_overflow_function(isolate).address(), |
(...skipping 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1871 | 1876 |
1872 bool SnapshotByteSource::AtEOF() { | 1877 bool SnapshotByteSource::AtEOF() { |
1873 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; | 1878 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; |
1874 for (int x = position_; x < length_; x++) { | 1879 for (int x = position_; x < length_; x++) { |
1875 if (data_[x] != SerializerDeserializer::nop()) return false; | 1880 if (data_[x] != SerializerDeserializer::nop()) return false; |
1876 } | 1881 } |
1877 return true; | 1882 return true; |
1878 } | 1883 } |
1879 | 1884 |
1880 } } // namespace v8::internal | 1885 } } // namespace v8::internal |
OLD | NEW |