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

Side by Side Diff: src/platform.h

Issue 7639020: Perform TODO(gc) cleanup for TODO-lockdown. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 years, 4 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
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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 354
355 // Returns the size of the reserved memory. 355 // Returns the size of the reserved memory.
356 size_t size() { return size_; } 356 size_t size() { return size_; }
357 357
358 // Commits real memory. Returns whether the operation succeeded. 358 // Commits real memory. Returns whether the operation succeeded.
359 bool Commit(void* address, size_t size, bool is_executable); 359 bool Commit(void* address, size_t size, bool is_executable);
360 360
361 // Uncommit real memory. Returns whether the operation succeeded. 361 // Uncommit real memory. Returns whether the operation succeeded.
362 bool Uncommit(void* address, size_t size); 362 bool Uncommit(void* address, size_t size);
363 363
364 // TODO(gc) this interface should be implemented for Windows platform as well.
365 static void* ReserveRegion(size_t size); 364 static void* ReserveRegion(size_t size);
366 365
367 static bool CommitRegion(void* base, size_t size, bool is_executable); 366 static bool CommitRegion(void* base, size_t size, bool is_executable);
368 367
369 static bool UncommitRegion(void* base, size_t size); 368 static bool UncommitRegion(void* base, size_t size);
370 369
371 static bool ReleaseRegion(void* base, size_t size); 370 static bool ReleaseRegion(void* base, size_t size);
372 371
373 private: 372 private:
374 void* address_; // Start address of the virtual memory. 373 void* address_; // Start address of the virtual memory.
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 Atomic32 active_; 669 Atomic32 active_;
671 PlatformData* data_; // Platform specific data. 670 PlatformData* data_; // Platform specific data.
672 int samples_taken_; // Counts stack samples taken. 671 int samples_taken_; // Counts stack samples taken.
673 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); 672 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler);
674 }; 673 };
675 674
676 675
677 } } // namespace v8::internal 676 } } // namespace v8::internal
678 677
679 #endif // V8_PLATFORM_H_ 678 #endif // V8_PLATFORM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698