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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 CALL_HEAP_FUNCTION(obj->DeleteProperty(*prop), Object); | 210 CALL_HEAP_FUNCTION(obj->DeleteProperty(*prop), Object); |
211 } | 211 } |
212 | 212 |
213 | 213 |
214 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index) { | 214 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index) { |
215 CALL_HEAP_FUNCTION(Heap::LookupSingleCharacterStringFromCode(index), Object); | 215 CALL_HEAP_FUNCTION(Heap::LookupSingleCharacterStringFromCode(index), Object); |
216 } | 216 } |
217 | 217 |
218 | 218 |
219 Handle<String> SubString(Handle<String> str, int start, int end) { | 219 Handle<String> SubString(Handle<String> str, int start, int end) { |
220 StringShape shape(*str); | 220 CALL_HEAP_FUNCTION(str->Slice(StringShape(*str), start, end), String); |
221 CALL_HEAP_FUNCTION(str->Slice(shape, start, end), String); | |
222 } | 221 } |
223 | 222 |
224 | 223 |
225 Handle<Object> SetElement(Handle<JSObject> object, | 224 Handle<Object> SetElement(Handle<JSObject> object, |
226 uint32_t index, | 225 uint32_t index, |
227 Handle<Object> value) { | 226 Handle<Object> value) { |
228 CALL_HEAP_FUNCTION(object->SetElement(index, *value), Object); | 227 CALL_HEAP_FUNCTION(object->SetElement(index, *value), Object); |
229 } | 228 } |
230 | 229 |
231 | 230 |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 Handle<Context> compile_context, | 527 Handle<Context> compile_context, |
529 Handle<Context> function_context) { | 528 Handle<Context> function_context) { |
530 Handle<FixedArray> arr = Factory::NewFixedArray(3); | 529 Handle<FixedArray> arr = Factory::NewFixedArray(3); |
531 arr->set(0, Smi::FromInt(index)); | 530 arr->set(0, Smi::FromInt(index)); |
532 arr->set(1, *compile_context); // Compile in this context | 531 arr->set(1, *compile_context); // Compile in this context |
533 arr->set(2, *function_context); // Set function context to this | 532 arr->set(2, *function_context); // Set function context to this |
534 fun->shared()->set_lazy_load_data(*arr); | 533 fun->shared()->set_lazy_load_data(*arr); |
535 } | 534 } |
536 | 535 |
537 } } // namespace v8::internal | 536 } } // namespace v8::internal |
OLD | NEW |