| 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 Object); | 347 Object); |
| 348 } | 348 } |
| 349 | 349 |
| 350 | 350 |
| 351 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index) { | 351 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index) { |
| 352 CALL_HEAP_FUNCTION(Heap::LookupSingleCharacterStringFromCode(index), Object); | 352 CALL_HEAP_FUNCTION(Heap::LookupSingleCharacterStringFromCode(index), Object); |
| 353 } | 353 } |
| 354 | 354 |
| 355 | 355 |
| 356 Handle<String> SubString(Handle<String> str, int start, int end) { | 356 Handle<String> SubString(Handle<String> str, int start, int end) { |
| 357 CALL_HEAP_FUNCTION(str->Slice(start, end), String); | 357 CALL_HEAP_FUNCTION(str->SubString(start, end), String); |
| 358 } | 358 } |
| 359 | 359 |
| 360 | 360 |
| 361 Handle<Object> SetElement(Handle<JSObject> object, | 361 Handle<Object> SetElement(Handle<JSObject> object, |
| 362 uint32_t index, | 362 uint32_t index, |
| 363 Handle<Object> value) { | 363 Handle<Object> value) { |
| 364 if (object->HasPixelElements() || object->HasExternalArrayElements()) { | 364 if (object->HasPixelElements() || object->HasExternalArrayElements()) { |
| 365 if (!value->IsSmi() && !value->IsHeapNumber() && !value->IsUndefined()) { | 365 if (!value->IsSmi() && !value->IsHeapNumber() && !value->IsUndefined()) { |
| 366 bool has_exception; | 366 bool has_exception; |
| 367 Handle<Object> number = Execution::ToNumber(value, &has_exception); | 367 Handle<Object> number = Execution::ToNumber(value, &has_exception); |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 Handle<Map> new_map = Factory::CopyMapDropTransitions(old_map); | 778 Handle<Map> new_map = Factory::CopyMapDropTransitions(old_map); |
| 779 obj->set_map(*new_map); | 779 obj->set_map(*new_map); |
| 780 new_map->set_needs_loading(true); | 780 new_map->set_needs_loading(true); |
| 781 // Store the lazy loading info in the constructor field. We'll | 781 // Store the lazy loading info in the constructor field. We'll |
| 782 // reestablish the constructor from the fixed array after loading. | 782 // reestablish the constructor from the fixed array after loading. |
| 783 new_map->set_constructor(*arr); | 783 new_map->set_constructor(*arr); |
| 784 ASSERT(!obj->IsLoaded()); | 784 ASSERT(!obj->IsLoaded()); |
| 785 } | 785 } |
| 786 | 786 |
| 787 } } // namespace v8::internal | 787 } } // namespace v8::internal |
| OLD | NEW |