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

Side by Side Diff: src/serialize.cc

Issue 214473003: Reland "Correctly OOM in the CEntryStub after retries." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix Created 6 years, 9 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/runtime.cc ('k') | src/x64/code-stubs-x64.cc » ('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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698