OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 27 matching lines...) Expand all Loading... |
38 class TokenEnumerator { | 38 class TokenEnumerator { |
39 public: | 39 public: |
40 TokenEnumerator(); | 40 TokenEnumerator(); |
41 ~TokenEnumerator(); | 41 ~TokenEnumerator(); |
42 int GetTokenId(Object* token); | 42 int GetTokenId(Object* token); |
43 | 43 |
44 static const int kNoSecurityToken = -1; | 44 static const int kNoSecurityToken = -1; |
45 static const int kInheritsSecurityToken = -2; | 45 static const int kInheritsSecurityToken = -2; |
46 | 46 |
47 private: | 47 private: |
48 static void TokenRemovedCallback(v8::Persistent<v8::Value> handle, | 48 static void TokenRemovedCallback(v8::Isolate* isolate, |
| 49 v8::Persistent<v8::Value> handle, |
49 void* parameter); | 50 void* parameter); |
50 void TokenRemoved(Object** token_location); | 51 void TokenRemoved(Object** token_location); |
51 | 52 |
52 List<Object**> token_locations_; | 53 List<Object**> token_locations_; |
53 List<bool> token_removed_; | 54 List<bool> token_removed_; |
54 | 55 |
55 friend class TokenEnumeratorTester; | 56 friend class TokenEnumeratorTester; |
56 | 57 |
57 DISALLOW_COPY_AND_ASSIGN(TokenEnumerator); | 58 DISALLOW_COPY_AND_ASSIGN(TokenEnumerator); |
58 }; | 59 }; |
(...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1094 | 1095 |
1095 friend class HeapSnapshotJSONSerializerEnumerator; | 1096 friend class HeapSnapshotJSONSerializerEnumerator; |
1096 friend class HeapSnapshotJSONSerializerIterator; | 1097 friend class HeapSnapshotJSONSerializerIterator; |
1097 | 1098 |
1098 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); | 1099 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); |
1099 }; | 1100 }; |
1100 | 1101 |
1101 } } // namespace v8::internal | 1102 } } // namespace v8::internal |
1102 | 1103 |
1103 #endif // V8_PROFILE_GENERATOR_H_ | 1104 #endif // V8_PROFILE_GENERATOR_H_ |
OLD | NEW |