| OLD | NEW |
| 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 PropertyAttributes attributes) { | 245 PropertyAttributes attributes) { |
| 246 Isolate* isolate = object->GetIsolate(); | 246 Isolate* isolate = object->GetIsolate(); |
| 247 CALL_HEAP_FUNCTION( | 247 CALL_HEAP_FUNCTION( |
| 248 isolate, | 248 isolate, |
| 249 Runtime::ForceSetObjectProperty( | 249 Runtime::ForceSetObjectProperty( |
| 250 isolate, object, key, value, attributes), | 250 isolate, object, key, value, attributes), |
| 251 Object); | 251 Object); |
| 252 } | 252 } |
| 253 | 253 |
| 254 | 254 |
| 255 Handle<Object> DeleteProperty(Handle<JSObject> object, Handle<Object> key) { |
| 256 Isolate* isolate = object->GetIsolate(); |
| 257 CALL_HEAP_FUNCTION(isolate, |
| 258 Runtime::DeleteObjectProperty( |
| 259 isolate, object, key, JSReceiver::NORMAL_DELETION), |
| 260 Object); |
| 261 } |
| 262 |
| 263 |
| 255 Handle<Object> ForceDeleteProperty(Handle<JSObject> object, | 264 Handle<Object> ForceDeleteProperty(Handle<JSObject> object, |
| 256 Handle<Object> key) { | 265 Handle<Object> key) { |
| 257 Isolate* isolate = object->GetIsolate(); | 266 Isolate* isolate = object->GetIsolate(); |
| 258 CALL_HEAP_FUNCTION(isolate, | 267 CALL_HEAP_FUNCTION(isolate, |
| 259 Runtime::ForceDeleteObjectProperty(isolate, object, key), | 268 Runtime::DeleteObjectProperty( |
| 269 isolate, object, key, JSReceiver::FORCE_DELETION), |
| 260 Object); | 270 Object); |
| 261 } | 271 } |
| 262 | 272 |
| 263 | 273 |
| 274 Handle<Object> HasProperty(Handle<JSReceiver> obj, Handle<Object> key) { |
| 275 Isolate* isolate = obj->GetIsolate(); |
| 276 CALL_HEAP_FUNCTION(isolate, |
| 277 Runtime::HasObjectProperty(isolate, obj, key), Object); |
| 278 } |
| 279 |
| 280 |
| 264 Handle<Object> GetProperty(Handle<JSReceiver> obj, | 281 Handle<Object> GetProperty(Handle<JSReceiver> obj, |
| 265 const char* name) { | 282 const char* name) { |
| 266 Isolate* isolate = obj->GetIsolate(); | 283 Isolate* isolate = obj->GetIsolate(); |
| 267 Handle<String> str = isolate->factory()->InternalizeUtf8String(name); | 284 Handle<String> str = isolate->factory()->InternalizeUtf8String(name); |
| 268 CALL_HEAP_FUNCTION(isolate, obj->GetProperty(*str), Object); | 285 CALL_HEAP_FUNCTION(isolate, obj->GetProperty(*str), Object); |
| 269 } | 286 } |
| 270 | 287 |
| 271 | 288 |
| 272 Handle<Object> GetProperty(Isolate* isolate, | 289 Handle<Object> GetProperty(Isolate* isolate, |
| 273 Handle<Object> obj, | 290 Handle<Object> obj, |
| (...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 903 data->next = prev_next_; | 920 data->next = prev_next_; |
| 904 data->limit = prev_limit_; | 921 data->limit = prev_limit_; |
| 905 #ifdef DEBUG | 922 #ifdef DEBUG |
| 906 handles_detached_ = true; | 923 handles_detached_ = true; |
| 907 #endif | 924 #endif |
| 908 return deferred; | 925 return deferred; |
| 909 } | 926 } |
| 910 | 927 |
| 911 | 928 |
| 912 } } // namespace v8::internal | 929 } } // namespace v8::internal |
| OLD | NEW |