| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 | 296 |
| 297 // Computes the union of keys and return the result. | 297 // Computes the union of keys and return the result. |
| 298 // Used for implementing "for (n in object) { }" | 298 // Used for implementing "for (n in object) { }" |
| 299 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first, | 299 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first, |
| 300 Handle<FixedArray> second); | 300 Handle<FixedArray> second); |
| 301 | 301 |
| 302 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( | 302 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( |
| 303 Handle<JSFunction> constructor, | 303 Handle<JSFunction> constructor, |
| 304 Handle<JSGlobalProxy> global); | 304 Handle<JSGlobalProxy> global); |
| 305 | 305 |
| 306 Handle<ObjectHashSet> ObjectHashSetAdd(Handle<ObjectHashSet> table, | |
| 307 Handle<Object> key); | |
| 308 | |
| 309 Handle<ObjectHashSet> ObjectHashSetRemove(Handle<ObjectHashSet> table, | |
| 310 Handle<Object> key); | |
| 311 | |
| 312 Handle<ObjectHashTable> PutIntoObjectHashTable(Handle<ObjectHashTable> table, | |
| 313 Handle<Object> key, | |
| 314 Handle<Object> value); | |
| 315 | |
| 316 void AddWeakObjectToCodeDependency(Heap* heap, | 306 void AddWeakObjectToCodeDependency(Heap* heap, |
| 317 Handle<Object> object, | 307 Handle<Object> object, |
| 318 Handle<Code> code); | 308 Handle<Code> code); |
| 319 | 309 |
| 320 // Seal off the current HandleScope so that new handles can only be created | 310 // Seal off the current HandleScope so that new handles can only be created |
| 321 // if a new HandleScope is entered. | 311 // if a new HandleScope is entered. |
| 322 class SealHandleScope BASE_EMBEDDED { | 312 class SealHandleScope BASE_EMBEDDED { |
| 323 public: | 313 public: |
| 324 #ifndef DEBUG | 314 #ifndef DEBUG |
| 325 explicit SealHandleScope(Isolate* isolate) {} | 315 explicit SealHandleScope(Isolate* isolate) {} |
| 326 ~SealHandleScope() {} | 316 ~SealHandleScope() {} |
| 327 #else | 317 #else |
| 328 explicit inline SealHandleScope(Isolate* isolate); | 318 explicit inline SealHandleScope(Isolate* isolate); |
| 329 inline ~SealHandleScope(); | 319 inline ~SealHandleScope(); |
| 330 private: | 320 private: |
| 331 Isolate* isolate_; | 321 Isolate* isolate_; |
| 332 Object** limit_; | 322 Object** limit_; |
| 333 int level_; | 323 int level_; |
| 334 #endif | 324 #endif |
| 335 }; | 325 }; |
| 336 | 326 |
| 337 } } // namespace v8::internal | 327 } } // namespace v8::internal |
| 338 | 328 |
| 339 #endif // V8_HANDLES_H_ | 329 #endif // V8_HANDLES_H_ |
| OLD | NEW |