| 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 // an object of expected type, or the handle is an error if running out | 221 // an object of expected type, or the handle is an error if running out |
| 222 // of space or encountering an internal error. | 222 // of space or encountering an internal error. |
| 223 | 223 |
| 224 // Flattens a string. | 224 // Flattens a string. |
| 225 void FlattenString(Handle<String> str); | 225 void FlattenString(Handle<String> str); |
| 226 | 226 |
| 227 // Flattens a string and returns the underlying external or sequential | 227 // Flattens a string and returns the underlying external or sequential |
| 228 // string. | 228 // string. |
| 229 Handle<String> FlattenGetString(Handle<String> str); | 229 Handle<String> FlattenGetString(Handle<String> str); |
| 230 | 230 |
| 231 Handle<Object> SetProperty(Isolate* isolate, | |
| 232 Handle<Object> object, | |
| 233 Handle<Object> key, | |
| 234 Handle<Object> value, | |
| 235 PropertyAttributes attributes, | |
| 236 StrictModeFlag strict_mode); | |
| 237 | |
| 238 Handle<Object> ForceSetProperty(Handle<JSObject> object, | 231 Handle<Object> ForceSetProperty(Handle<JSObject> object, |
| 239 Handle<Object> key, | 232 Handle<Object> key, |
| 240 Handle<Object> value, | 233 Handle<Object> value, |
| 241 PropertyAttributes attributes); | 234 PropertyAttributes attributes); |
| 242 | 235 |
| 243 Handle<Object> DeleteProperty(Handle<JSObject> object, Handle<Object> key); | 236 Handle<Object> DeleteProperty(Handle<JSObject> object, Handle<Object> key); |
| 244 | 237 |
| 245 Handle<Object> ForceDeleteProperty(Handle<JSObject> object, Handle<Object> key); | 238 Handle<Object> ForceDeleteProperty(Handle<JSObject> object, Handle<Object> key); |
| 246 | 239 |
| 247 Handle<Object> HasProperty(Handle<JSReceiver> obj, Handle<Object> key); | 240 Handle<Object> HasProperty(Handle<JSReceiver> obj, Handle<Object> key); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 | 289 |
| 297 // Computes the union of keys and return the result. | 290 // Computes the union of keys and return the result. |
| 298 // Used for implementing "for (n in object) { }" | 291 // Used for implementing "for (n in object) { }" |
| 299 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first, | 292 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first, |
| 300 Handle<FixedArray> second); | 293 Handle<FixedArray> second); |
| 301 | 294 |
| 302 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( | 295 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( |
| 303 Handle<JSFunction> constructor, | 296 Handle<JSFunction> constructor, |
| 304 Handle<JSGlobalProxy> global); | 297 Handle<JSGlobalProxy> global); |
| 305 | 298 |
| 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, | 299 void AddWeakObjectToCodeDependency(Heap* heap, |
| 317 Handle<Object> object, | 300 Handle<Object> object, |
| 318 Handle<Code> code); | 301 Handle<Code> code); |
| 319 | 302 |
| 320 // Seal off the current HandleScope so that new handles can only be created | 303 // Seal off the current HandleScope so that new handles can only be created |
| 321 // if a new HandleScope is entered. | 304 // if a new HandleScope is entered. |
| 322 class SealHandleScope BASE_EMBEDDED { | 305 class SealHandleScope BASE_EMBEDDED { |
| 323 public: | 306 public: |
| 324 #ifndef DEBUG | 307 #ifndef DEBUG |
| 325 explicit SealHandleScope(Isolate* isolate) {} | 308 explicit SealHandleScope(Isolate* isolate) {} |
| 326 ~SealHandleScope() {} | 309 ~SealHandleScope() {} |
| 327 #else | 310 #else |
| 328 explicit inline SealHandleScope(Isolate* isolate); | 311 explicit inline SealHandleScope(Isolate* isolate); |
| 329 inline ~SealHandleScope(); | 312 inline ~SealHandleScope(); |
| 330 private: | 313 private: |
| 331 Isolate* isolate_; | 314 Isolate* isolate_; |
| 332 Object** limit_; | 315 Object** limit_; |
| 333 int level_; | 316 int level_; |
| 334 #endif | 317 #endif |
| 335 }; | 318 }; |
| 336 | 319 |
| 337 } } // namespace v8::internal | 320 } } // namespace v8::internal |
| 338 | 321 |
| 339 #endif // V8_HANDLES_H_ | 322 #endif // V8_HANDLES_H_ |
| OLD | NEW |