Chromium Code Reviews| 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__) |