| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 Runtime::SetObjectProperty( | 171 Runtime::SetObjectProperty( |
| 172 isolate, object, key, value, attributes, strict_mode), | 172 isolate, object, key, value, attributes, strict_mode), |
| 173 Object); | 173 Object); |
| 174 } | 174 } |
| 175 | 175 |
| 176 | 176 |
| 177 Handle<Object> ForceSetProperty(Handle<JSObject> object, | 177 Handle<Object> ForceSetProperty(Handle<JSObject> object, |
| 178 Handle<Object> key, | 178 Handle<Object> key, |
| 179 Handle<Object> value, | 179 Handle<Object> value, |
| 180 PropertyAttributes attributes) { | 180 PropertyAttributes attributes) { |
| 181 Isolate* isolate = object->GetIsolate(); | 181 return Runtime::ForceSetObjectProperty(object->GetIsolate(), object, key, |
| 182 CALL_HEAP_FUNCTION( | 182 value, attributes); |
| 183 isolate, | |
| 184 Runtime::ForceSetObjectProperty( | |
| 185 isolate, object, key, value, attributes), | |
| 186 Object); | |
| 187 } | 183 } |
| 188 | 184 |
| 189 | 185 |
| 190 Handle<Object> DeleteProperty(Handle<JSObject> object, Handle<Object> key) { | 186 Handle<Object> DeleteProperty(Handle<JSObject> object, Handle<Object> key) { |
| 191 Isolate* isolate = object->GetIsolate(); | 187 Isolate* isolate = object->GetIsolate(); |
| 192 CALL_HEAP_FUNCTION(isolate, | 188 CALL_HEAP_FUNCTION(isolate, |
| 193 Runtime::DeleteObjectProperty( | 189 Runtime::DeleteObjectProperty( |
| 194 isolate, object, key, JSReceiver::NORMAL_DELETION), | 190 isolate, object, key, JSReceiver::NORMAL_DELETION), |
| 195 Object); | 191 Object); |
| 196 } | 192 } |
| (...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 813 Handle<Code> code) { | 809 Handle<Code> code) { |
| 814 heap->EnsureWeakObjectToCodeTable(); | 810 heap->EnsureWeakObjectToCodeTable(); |
| 815 Handle<DependentCode> dep(heap->LookupWeakObjectToCodeDependency(*object)); | 811 Handle<DependentCode> dep(heap->LookupWeakObjectToCodeDependency(*object)); |
| 816 dep = DependentCode::Insert(dep, DependentCode::kWeaklyEmbeddedGroup, code); | 812 dep = DependentCode::Insert(dep, DependentCode::kWeaklyEmbeddedGroup, code); |
| 817 CALL_HEAP_FUNCTION_VOID(heap->isolate(), | 813 CALL_HEAP_FUNCTION_VOID(heap->isolate(), |
| 818 heap->AddWeakObjectToCodeDependency(*object, *dep)); | 814 heap->AddWeakObjectToCodeDependency(*object, *dep)); |
| 819 } | 815 } |
| 820 | 816 |
| 821 | 817 |
| 822 } } // namespace v8::internal | 818 } } // namespace v8::internal |
| OLD | NEW |