| 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 1573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1584 INSTALL_NATIVE(JSFunction, "EndPerformSplice", | 1584 INSTALL_NATIVE(JSFunction, "EndPerformSplice", |
| 1585 observers_end_perform_splice); | 1585 observers_end_perform_splice); |
| 1586 } | 1586 } |
| 1587 | 1587 |
| 1588 | 1588 |
| 1589 void Genesis::InstallExperimentalNativeFunctions() { | 1589 void Genesis::InstallExperimentalNativeFunctions() { |
| 1590 INSTALL_NATIVE(JSFunction, "RunMicrotasks", run_microtasks); | 1590 INSTALL_NATIVE(JSFunction, "RunMicrotasks", run_microtasks); |
| 1591 INSTALL_NATIVE(JSFunction, "EnqueueExternalMicrotask", | 1591 INSTALL_NATIVE(JSFunction, "EnqueueExternalMicrotask", |
| 1592 enqueue_external_microtask); | 1592 enqueue_external_microtask); |
| 1593 | 1593 |
| 1594 if (FLAG_harmony_promises) { |
| 1595 INSTALL_NATIVE(JSFunction, "IsPromise", is_promise); |
| 1596 INSTALL_NATIVE(JSFunction, "PromiseCreate", promise_create); |
| 1597 INSTALL_NATIVE(JSFunction, "PromiseResolve", promise_resolve); |
| 1598 INSTALL_NATIVE(JSFunction, "PromiseReject", promise_reject); |
| 1599 INSTALL_NATIVE(JSFunction, "PromiseChain", promise_chain); |
| 1600 INSTALL_NATIVE(JSFunction, "PromiseCatch", promise_catch); |
| 1601 } |
| 1602 |
| 1594 if (FLAG_harmony_proxies) { | 1603 if (FLAG_harmony_proxies) { |
| 1595 INSTALL_NATIVE(JSFunction, "DerivedHasTrap", derived_has_trap); | 1604 INSTALL_NATIVE(JSFunction, "DerivedHasTrap", derived_has_trap); |
| 1596 INSTALL_NATIVE(JSFunction, "DerivedGetTrap", derived_get_trap); | 1605 INSTALL_NATIVE(JSFunction, "DerivedGetTrap", derived_get_trap); |
| 1597 INSTALL_NATIVE(JSFunction, "DerivedSetTrap", derived_set_trap); | 1606 INSTALL_NATIVE(JSFunction, "DerivedSetTrap", derived_set_trap); |
| 1598 INSTALL_NATIVE(JSFunction, "ProxyEnumerate", proxy_enumerate); | 1607 INSTALL_NATIVE(JSFunction, "ProxyEnumerate", proxy_enumerate); |
| 1599 } | 1608 } |
| 1600 } | 1609 } |
| 1601 | 1610 |
| 1602 #undef INSTALL_NATIVE | 1611 #undef INSTALL_NATIVE |
| 1603 | 1612 |
| (...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2734 return from + sizeof(NestingCounterType); | 2743 return from + sizeof(NestingCounterType); |
| 2735 } | 2744 } |
| 2736 | 2745 |
| 2737 | 2746 |
| 2738 // Called when the top-level V8 mutex is destroyed. | 2747 // Called when the top-level V8 mutex is destroyed. |
| 2739 void Bootstrapper::FreeThreadResources() { | 2748 void Bootstrapper::FreeThreadResources() { |
| 2740 ASSERT(!IsActive()); | 2749 ASSERT(!IsActive()); |
| 2741 } | 2750 } |
| 2742 | 2751 |
| 2743 } } // namespace v8::internal | 2752 } } // namespace v8::internal |
| OLD | NEW |