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

Side by Side Diff: src/isolate.h

Issue 196103004: Add support for per-isolate private symbols (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: More comments; force dictionary mode Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/heap.cc ('k') | src/isolate.cc » ('j') | src/isolate.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 Object* FindCodeObject(Address a); 1119 Object* FindCodeObject(Address a);
1120 1120
1121 int NextOptimizationId() { 1121 int NextOptimizationId() {
1122 int id = next_optimization_id_++; 1122 int id = next_optimization_id_++;
1123 if (!Smi::IsValid(next_optimization_id_)) { 1123 if (!Smi::IsValid(next_optimization_id_)) {
1124 next_optimization_id_ = 0; 1124 next_optimization_id_ = 0;
1125 } 1125 }
1126 return id; 1126 return id;
1127 } 1127 }
1128 1128
1129 // Get (and lazily initialize) the registry for per-isolate symbols.
1130 Handle<JSObject> GetSymbolRegistry();
1131
1129 private: 1132 private:
1130 Isolate(); 1133 Isolate();
1131 1134
1132 friend struct GlobalState; 1135 friend struct GlobalState;
1133 friend struct InitializeGlobalState; 1136 friend struct InitializeGlobalState;
1134 1137
1135 enum State { 1138 enum State {
1136 UNINITIALIZED, // Some components may not have been allocated. 1139 UNINITIALIZED, // Some components may not have been allocated.
1137 INITIALIZED // All components are fully initialized. 1140 INITIALIZED // All components are fully initialized.
1138 }; 1141 };
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
1550 } 1553 }
1551 1554
1552 EmbeddedVector<char, 128> filename_; 1555 EmbeddedVector<char, 128> filename_;
1553 FILE* file_; 1556 FILE* file_;
1554 int scope_depth_; 1557 int scope_depth_;
1555 }; 1558 };
1556 1559
1557 } } // namespace v8::internal 1560 } } // namespace v8::internal
1558 1561
1559 #endif // V8_ISOLATE_H_ 1562 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/isolate.cc » ('j') | src/isolate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698