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

Unified Diff: src/handles.h

Issue 7977001: Added ability to lock strings to prevent their representation or encoding from changing. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: More tweaks. Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/api.cc ('k') | src/handles.cc » ('j') | src/heap.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/handles.h
diff --git a/src/handles.h b/src/handles.h
index 7eaf4de92736d3304cd80ef72fcb11fa9335a8da..f2952dfd430b3d6b73f2490bc5ffff05a26516db 100644
--- a/src/handles.h
+++ b/src/handles.h
@@ -380,6 +380,18 @@ class NoHandleAllocation BASE_EMBEDDED {
#endif
};
+
+void LockString(Handle<String> string);
+
+// Scoped lock on a string.
+class StringLock {
+ public:
+ explicit StringLock(Handle<String> string);
+ ~StringLock();
+ private:
+ Handle<String> string_;
+};
+
} } // namespace v8::internal
#endif // V8_HANDLES_H_
« no previous file with comments | « src/api.cc ('k') | src/handles.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698