| 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 30 matching lines...) Expand all Loading... |
| 41 public: | 41 public: |
| 42 TokenEnumerator(); | 42 TokenEnumerator(); |
| 43 ~TokenEnumerator(); | 43 ~TokenEnumerator(); |
| 44 int GetTokenId(Object* token); | 44 int GetTokenId(Object* token); |
| 45 | 45 |
| 46 static const int kNoSecurityToken = -1; | 46 static const int kNoSecurityToken = -1; |
| 47 static const int kInheritsSecurityToken = -2; | 47 static const int kInheritsSecurityToken = -2; |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 static void TokenRemovedCallback(v8::Isolate* isolate, | 50 static void TokenRemovedCallback(v8::Isolate* isolate, |
| 51 v8::Persistent<v8::Value> handle, | 51 v8::Persistent<v8::Value>* handle, |
| 52 void* parameter); | 52 void* parameter); |
| 53 void TokenRemoved(Object** token_location); | 53 void TokenRemoved(Object** token_location); |
| 54 | 54 |
| 55 List<Object**> token_locations_; | 55 List<Object**> token_locations_; |
| 56 List<bool> token_removed_; | 56 List<bool> token_removed_; |
| 57 | 57 |
| 58 friend class TokenEnumeratorTester; | 58 friend class TokenEnumeratorTester; |
| 59 | 59 |
| 60 DISALLOW_COPY_AND_ASSIGN(TokenEnumerator); | 60 DISALLOW_COPY_AND_ASSIGN(TokenEnumerator); |
| 61 }; | 61 }; |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 CodeEntry* gc_entry_; | 431 CodeEntry* gc_entry_; |
| 432 SampleRateCalculator sample_rate_calc_; | 432 SampleRateCalculator sample_rate_calc_; |
| 433 | 433 |
| 434 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator); | 434 DISALLOW_COPY_AND_ASSIGN(ProfileGenerator); |
| 435 }; | 435 }; |
| 436 | 436 |
| 437 | 437 |
| 438 } } // namespace v8::internal | 438 } } // namespace v8::internal |
| 439 | 439 |
| 440 #endif // V8_PROFILE_GENERATOR_H_ | 440 #endif // V8_PROFILE_GENERATOR_H_ |
| OLD | NEW |