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

Side by Side Diff: src/serialize.cc

Issue 240053010: Return Object* instead of MaybeObject* from runtime calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: cmpp Created 6 years, 8 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/stub-cache.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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 Add(stub_cache->value_reference(StubCache::kSecondary).address(), 313 Add(stub_cache->value_reference(StubCache::kSecondary).address(),
314 STUB_CACHE_TABLE, 314 STUB_CACHE_TABLE,
315 5, 315 5,
316 "StubCache::secondary_->value"); 316 "StubCache::secondary_->value");
317 Add(stub_cache->map_reference(StubCache::kSecondary).address(), 317 Add(stub_cache->map_reference(StubCache::kSecondary).address(),
318 STUB_CACHE_TABLE, 318 STUB_CACHE_TABLE,
319 6, 319 6,
320 "StubCache::secondary_->map"); 320 "StubCache::secondary_->map");
321 321
322 // Runtime entries 322 // Runtime entries
323 Add(ExternalReference::perform_gc_function(isolate).address(),
324 RUNTIME_ENTRY,
325 1,
326 "Runtime::PerformGC");
327 // Runtime entries
328 Add(ExternalReference::out_of_memory_function(isolate).address(),
329 RUNTIME_ENTRY,
330 2,
331 "Runtime::OutOfMemory");
332 Add(ExternalReference::delete_handle_scope_extensions(isolate).address(), 323 Add(ExternalReference::delete_handle_scope_extensions(isolate).address(),
333 RUNTIME_ENTRY, 324 RUNTIME_ENTRY,
334 4, 325 4,
335 "HandleScope::DeleteExtensions"); 326 "HandleScope::DeleteExtensions");
336 Add(ExternalReference:: 327 Add(ExternalReference::
337 incremental_marking_record_write_function(isolate).address(), 328 incremental_marking_record_write_function(isolate).address(),
338 RUNTIME_ENTRY, 329 RUNTIME_ENTRY,
339 5, 330 5,
340 "IncrementalMarking::RecordWrite"); 331 "IncrementalMarking::RecordWrite");
341 Add(ExternalReference::store_buffer_overflow_function(isolate).address(), 332 Add(ExternalReference::store_buffer_overflow_function(isolate).address(),
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 "OffsetsVector::static_offsets_vector"); 367 "OffsetsVector::static_offsets_vector");
377 #endif // V8_INTERPRETED_REGEXP 368 #endif // V8_INTERPRETED_REGEXP
378 Add(ExternalReference::new_space_start(isolate).address(), 369 Add(ExternalReference::new_space_start(isolate).address(),
379 UNCLASSIFIED, 370 UNCLASSIFIED,
380 10, 371 10,
381 "Heap::NewSpaceStart()"); 372 "Heap::NewSpaceStart()");
382 Add(ExternalReference::new_space_mask(isolate).address(), 373 Add(ExternalReference::new_space_mask(isolate).address(),
383 UNCLASSIFIED, 374 UNCLASSIFIED,
384 11, 375 11,
385 "Heap::NewSpaceMask()"); 376 "Heap::NewSpaceMask()");
386 Add(ExternalReference::heap_always_allocate_scope_depth(isolate).address(),
387 UNCLASSIFIED,
388 12,
389 "Heap::always_allocate_scope_depth()");
390 Add(ExternalReference::new_space_allocation_limit_address(isolate).address(), 377 Add(ExternalReference::new_space_allocation_limit_address(isolate).address(),
391 UNCLASSIFIED, 378 UNCLASSIFIED,
392 14, 379 14,
393 "Heap::NewSpaceAllocationLimitAddress()"); 380 "Heap::NewSpaceAllocationLimitAddress()");
394 Add(ExternalReference::new_space_allocation_top_address(isolate).address(), 381 Add(ExternalReference::new_space_allocation_top_address(isolate).address(),
395 UNCLASSIFIED, 382 UNCLASSIFIED,
396 15, 383 15,
397 "Heap::NewSpaceAllocationTopAddress()"); 384 "Heap::NewSpaceAllocationTopAddress()");
398 #ifdef ENABLE_DEBUGGER_SUPPORT 385 #ifdef ENABLE_DEBUGGER_SUPPORT
399 Add(ExternalReference::debug_break(isolate).address(), 386 Add(ExternalReference::debug_break(isolate).address(),
(...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after
1901 1888
1902 bool SnapshotByteSource::AtEOF() { 1889 bool SnapshotByteSource::AtEOF() {
1903 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false; 1890 if (0u + length_ - position_ > 2 * sizeof(uint32_t)) return false;
1904 for (int x = position_; x < length_; x++) { 1891 for (int x = position_; x < length_; x++) {
1905 if (data_[x] != SerializerDeserializer::nop()) return false; 1892 if (data_[x] != SerializerDeserializer::nop()) return false;
1906 } 1893 }
1907 return true; 1894 return true;
1908 } 1895 }
1909 1896
1910 } } // namespace v8::internal 1897 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | src/stub-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698