| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 Object); | 254 Object); |
| 255 } | 255 } |
| 256 | 256 |
| 257 | 257 |
| 258 Handle<Object> GetPrototype(Handle<Object> obj) { | 258 Handle<Object> GetPrototype(Handle<Object> obj) { |
| 259 Handle<Object> result(obj->GetPrototype()); | 259 Handle<Object> result(obj->GetPrototype()); |
| 260 return result; | 260 return result; |
| 261 } | 261 } |
| 262 | 262 |
| 263 | 263 |
| 264 Handle<Object> GetHiddenProperties(Handle<JSObject> obj, |
| 265 bool create_if_needed) { |
| 266 CALL_HEAP_FUNCTION(obj->GetHiddenProperties(create_if_needed), Object); |
| 267 } |
| 268 |
| 269 |
| 264 Handle<Object> DeleteElement(Handle<JSObject> obj, | 270 Handle<Object> DeleteElement(Handle<JSObject> obj, |
| 265 uint32_t index) { | 271 uint32_t index) { |
| 266 CALL_HEAP_FUNCTION(obj->DeleteElement(index), Object); | 272 CALL_HEAP_FUNCTION(obj->DeleteElement(index), Object); |
| 267 } | 273 } |
| 268 | 274 |
| 269 | 275 |
| 270 Handle<Object> DeleteProperty(Handle<JSObject> obj, | 276 Handle<Object> DeleteProperty(Handle<JSObject> obj, |
| 271 Handle<String> prop) { | 277 Handle<String> prop) { |
| 272 CALL_HEAP_FUNCTION(obj->DeleteProperty(*prop), Object); | 278 CALL_HEAP_FUNCTION(obj->DeleteProperty(*prop), Object); |
| 273 } | 279 } |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 Handle<Context> compile_context, | 674 Handle<Context> compile_context, |
| 669 Handle<Context> function_context) { | 675 Handle<Context> function_context) { |
| 670 Handle<FixedArray> arr = Factory::NewFixedArray(3); | 676 Handle<FixedArray> arr = Factory::NewFixedArray(3); |
| 671 arr->set(0, Smi::FromInt(index)); | 677 arr->set(0, Smi::FromInt(index)); |
| 672 arr->set(1, *compile_context); // Compile in this context | 678 arr->set(1, *compile_context); // Compile in this context |
| 673 arr->set(2, *function_context); // Set function context to this | 679 arr->set(2, *function_context); // Set function context to this |
| 674 fun->shared()->set_lazy_load_data(*arr); | 680 fun->shared()->set_lazy_load_data(*arr); |
| 675 } | 681 } |
| 676 | 682 |
| 677 } } // namespace v8::internal | 683 } } // namespace v8::internal |
| OLD | NEW |