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

Unified Diff: src/platform.h

Issue 11566011: Use MemoryChunk-based allocation for deoptimization entry code (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: src/platform.h
===================================================================
--- src/platform.h (revision 13274)
+++ src/platform.h (working copy)
@@ -384,6 +384,11 @@
// Initialize or resets an embedded VirtualMemory object.
void Reset();
+ void Set(void* address, size_t size) {
danno 2012/12/28 11:58:37 I don't think you need this, see the comment in sp
haitao.feng 2012/12/28 15:04:54 I am using this to get a virtual memory from code
danno 2012/12/28 15:38:10 You don't need a struct, just store the base and s
+ address_ = address;
+ size_ = size;
+ }
+
// Returns the start address of the reserved memory.
// If the memory was reserved with an alignment, this address is not
// necessarily aligned. The user might need to round it up to a multiple of

Powered by Google App Engine
This is Rietveld 408576698