| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 205 |
| 206 Handle<Object> SetProperty(Handle<Object> object, | 206 Handle<Object> SetProperty(Handle<Object> object, |
| 207 Handle<Object> key, | 207 Handle<Object> key, |
| 208 Handle<Object> value, | 208 Handle<Object> value, |
| 209 PropertyAttributes attributes) { | 209 PropertyAttributes attributes) { |
| 210 CALL_HEAP_FUNCTION( | 210 CALL_HEAP_FUNCTION( |
| 211 Runtime::SetObjectProperty(object, key, value, attributes), Object); | 211 Runtime::SetObjectProperty(object, key, value, attributes), Object); |
| 212 } | 212 } |
| 213 | 213 |
| 214 | 214 |
| 215 Handle<Object> IgnoreAttributesAndSetLocalProperty(Handle<JSObject> object, | 215 Handle<Object> IgnoreAttributesAndSetLocalProperty( |
| 216 Handle<String> key, | 216 Handle<JSObject> object, |
| 217 Handle<Object> value, | 217 Handle<String> key, |
| 218 PropertyAttributes attributes
) { | 218 Handle<Object> value, |
| 219 PropertyAttributes attributes) { |
| 219 CALL_HEAP_FUNCTION(object-> | 220 CALL_HEAP_FUNCTION(object-> |
| 220 IgnoreAttributesAndSetLocalProperty(*key, *value, attributes), Object); | 221 IgnoreAttributesAndSetLocalProperty(*key, *value, attributes), Object); |
| 221 } | 222 } |
| 222 | 223 |
| 223 Handle<Object> SetPropertyWithInterceptor(Handle<JSObject> object, | 224 Handle<Object> SetPropertyWithInterceptor(Handle<JSObject> object, |
| 224 Handle<String> key, | 225 Handle<String> key, |
| 225 Handle<Object> value, | 226 Handle<Object> value, |
| 226 PropertyAttributes attributes) { | 227 PropertyAttributes attributes) { |
| 227 CALL_HEAP_FUNCTION(object->SetPropertyWithInterceptor(*key, | 228 CALL_HEAP_FUNCTION(object->SetPropertyWithInterceptor(*key, |
| 228 *value, | 229 *value, |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 Handle<Context> compile_context, | 680 Handle<Context> compile_context, |
| 680 Handle<Context> function_context) { | 681 Handle<Context> function_context) { |
| 681 Handle<FixedArray> arr = Factory::NewFixedArray(3); | 682 Handle<FixedArray> arr = Factory::NewFixedArray(3); |
| 682 arr->set(0, Smi::FromInt(index)); | 683 arr->set(0, Smi::FromInt(index)); |
| 683 arr->set(1, *compile_context); // Compile in this context | 684 arr->set(1, *compile_context); // Compile in this context |
| 684 arr->set(2, *function_context); // Set function context to this | 685 arr->set(2, *function_context); // Set function context to this |
| 685 fun->shared()->set_lazy_load_data(*arr); | 686 fun->shared()->set_lazy_load_data(*arr); |
| 686 } | 687 } |
| 687 | 688 |
| 688 } } // namespace v8::internal | 689 } } // namespace v8::internal |
| OLD | NEW |