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 2797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2808 return Handle<Object>(); | 2808 return Handle<Object>(); |
2809 } | 2809 } |
2810 trap = Handle<Object>(derived); | 2810 trap = Handle<Object>(derived); |
2811 } | 2811 } |
2812 | 2812 |
2813 bool threw; | 2813 bool threw; |
2814 return Execution::Call(trap, handler, argc, argv, &threw); | 2814 return Execution::Call(trap, handler, argc, argv, &threw); |
2815 } | 2815 } |
2816 | 2816 |
2817 | 2817 |
| 2818 void JSObject::AddFastPropertyUsingMap(Handle<JSObject> object, |
| 2819 Handle<Map> map) { |
| 2820 CALL_HEAP_FUNCTION_VOID( |
| 2821 object->GetIsolate(), |
| 2822 object->AddFastPropertyUsingMap(*map)); |
| 2823 } |
| 2824 |
| 2825 |
2818 MaybeObject* JSObject::SetPropertyForResult(LookupResult* result, | 2826 MaybeObject* JSObject::SetPropertyForResult(LookupResult* result, |
2819 String* name_raw, | 2827 String* name_raw, |
2820 Object* value_raw, | 2828 Object* value_raw, |
2821 PropertyAttributes attributes, | 2829 PropertyAttributes attributes, |
2822 StrictModeFlag strict_mode, | 2830 StrictModeFlag strict_mode, |
2823 StoreFromKeyed store_mode) { | 2831 StoreFromKeyed store_mode) { |
2824 Heap* heap = GetHeap(); | 2832 Heap* heap = GetHeap(); |
2825 // Make sure that the top context does not change when doing callbacks or | 2833 // Make sure that the top context does not change when doing callbacks or |
2826 // interceptor calls. | 2834 // interceptor calls. |
2827 AssertNoContextChange ncc; | 2835 AssertNoContextChange ncc; |
(...skipping 10701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13529 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 13537 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
13530 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 13538 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
13531 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 13539 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
13532 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 13540 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
13533 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 13541 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
13534 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 13542 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
13535 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 13543 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
13536 } | 13544 } |
13537 | 13545 |
13538 } } // namespace v8::internal | 13546 } } // namespace v8::internal |
OLD | NEW |