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

Side by Side Diff: src/heap.h

Issue 7324051: Remove heap protection support. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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/handles.cc ('k') | src/heap.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 Address* NewSpaceAllocationTopAddress() { 402 Address* NewSpaceAllocationTopAddress() {
403 return new_space_.allocation_top_address(); 403 return new_space_.allocation_top_address();
404 } 404 }
405 Address* NewSpaceAllocationLimitAddress() { 405 Address* NewSpaceAllocationLimitAddress() {
406 return new_space_.allocation_limit_address(); 406 return new_space_.allocation_limit_address();
407 } 407 }
408 408
409 // Uncommit unused semi space. 409 // Uncommit unused semi space.
410 bool UncommitFromSpace() { return new_space_.UncommitFromSpace(); } 410 bool UncommitFromSpace() { return new_space_.UncommitFromSpace(); }
411 411
412 #ifdef ENABLE_HEAP_PROTECTION
413 // Protect/unprotect the heap by marking all spaces read-only/writable.
414 void Protect();
415 void Unprotect();
416 #endif
417
418 // Allocates and initializes a new JavaScript object based on a 412 // Allocates and initializes a new JavaScript object based on a
419 // constructor. 413 // constructor.
420 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 414 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
421 // failed. 415 // failed.
422 // Please note this does not perform a garbage collection. 416 // Please note this does not perform a garbage collection.
423 MUST_USE_RESULT MaybeObject* AllocateJSObject( 417 MUST_USE_RESULT MaybeObject* AllocateJSObject(
424 JSFunction* constructor, PretenureFlag pretenure = NOT_TENURED); 418 JSFunction* constructor, PretenureFlag pretenure = NOT_TENURED);
425 419
426 // Allocates and initializes a new global object based on a constructor. 420 // Allocates and initializes a new global object based on a constructor.
427 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 421 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
(...skipping 1872 matching lines...) Expand 10 before | Expand all | Expand 10 after
2300 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2294 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2301 }; 2295 };
2302 #endif // DEBUG || LIVE_OBJECT_LIST 2296 #endif // DEBUG || LIVE_OBJECT_LIST
2303 2297
2304 2298
2305 } } // namespace v8::internal 2299 } } // namespace v8::internal
2306 2300
2307 #undef HEAP 2301 #undef HEAP
2308 2302
2309 #endif // V8_HEAP_H_ 2303 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/handles.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698