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

Unified Diff: src/scopeinfo.h

Issue 435003: Patch for allowing several V8 instances in process:... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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
« no previous file with comments | « src/scanner.cc ('k') | src/scopeinfo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scopeinfo.h
===================================================================
--- src/scopeinfo.h (revision 3427)
+++ src/scopeinfo.h (working copy)
@@ -163,6 +163,23 @@
};
+class ContextSlotCacheData {
+ static const int kLength = 256;
+ struct Key {
+ Code* code;
+ String* name;
+ };
+
+ Key keys_[kLength];
+ uint32_t values_[kLength];
+
+ friend class V8Context;
+ friend class ContextSlotCache;
+
+ ContextSlotCacheData();
+ DISALLOW_COPY_AND_ASSIGN(ContextSlotCacheData);
+};
+
// Cache for mapping (code, property name) into context slot index.
// The cache contains both positive and negative results.
// Slot index equals -1 means the property is absent.
@@ -195,12 +212,6 @@
int slot_index);
#endif
- static const int kLength = 256;
- struct Key {
- Code* code;
- String* name;
- };
-
struct Value {
Value(Variable::Mode mode, int index) {
ASSERT(ModeField::is_valid(mode));
@@ -225,9 +236,6 @@
private:
uint32_t value_;
};
-
- static Key keys_[kLength];
- static uint32_t values_[kLength];
};
« no previous file with comments | « src/scanner.cc ('k') | src/scopeinfo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698