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

Unified Diff: src/isolate.h

Issue 6975020: Per-isolate embedder-specific data (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added missing file Created 9 years, 7 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/isolate.cc » ('j') | src/isolate.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index 088c2478e6d3229033fd3e34984f9e77c8d055de..d43d3362b324598469f98ed3ee4b6758ce4df1d0 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -994,6 +994,13 @@ class Isolate {
void ResetEagerOptimizingData();
+ void SetData(void* data) {
Mads Ager (chromium) 2011/05/18 05:28:28 I would make these one-liners: void SetData(void*
+ embedder_data_ = data;
+ }
+ void* GetData() {
+ return embedder_data_;
+ }
+
private:
Isolate();
@@ -1156,6 +1163,7 @@ class Isolate {
unibrow::Mapping<unibrow::Ecma262Canonicalize> interp_canonicalize_mapping_;
ZoneObjectList frame_element_constant_list_;
ZoneObjectList result_constant_list_;
+ void* embedder_data_;
#if defined(V8_TARGET_ARCH_ARM) && !defined(__arm__) || \
defined(V8_TARGET_ARCH_MIPS) && !defined(__mips__)
« no previous file with comments | « src/api.cc ('k') | src/isolate.cc » ('j') | src/isolate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698