OLD | NEW |
---|---|
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "bootstrapper.h" | 5 #include "bootstrapper.h" |
6 | 6 |
7 #include "accessors.h" | 7 #include "accessors.h" |
8 #include "isolate-inl.h" | 8 #include "isolate-inl.h" |
9 #include "natives.h" | 9 #include "natives.h" |
10 #include "snapshot.h" | 10 #include "snapshot.h" |
(...skipping 1534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1545 INSTALL_NATIVE(JSFunction, "EnqueueSpliceRecord", observers_enqueue_splice); | 1545 INSTALL_NATIVE(JSFunction, "EnqueueSpliceRecord", observers_enqueue_splice); |
1546 INSTALL_NATIVE(JSFunction, "BeginPerformSplice", | 1546 INSTALL_NATIVE(JSFunction, "BeginPerformSplice", |
1547 observers_begin_perform_splice); | 1547 observers_begin_perform_splice); |
1548 INSTALL_NATIVE(JSFunction, "EndPerformSplice", | 1548 INSTALL_NATIVE(JSFunction, "EndPerformSplice", |
1549 observers_end_perform_splice); | 1549 observers_end_perform_splice); |
1550 } | 1550 } |
1551 | 1551 |
1552 | 1552 |
1553 void Genesis::InstallExperimentalNativeFunctions() { | 1553 void Genesis::InstallExperimentalNativeFunctions() { |
1554 INSTALL_NATIVE(JSFunction, "RunMicrotasks", run_microtasks); | 1554 INSTALL_NATIVE(JSFunction, "RunMicrotasks", run_microtasks); |
1555 INSTALL_NATIVE(JSFunction, "EnqueueExternalMicrotask", | 1555 INSTALL_NATIVE(JSFunction, "EnqueueMicrotask", |
1556 enqueue_external_microtask); | 1556 enqueue_external_microtask); |
rafaelw
2014/04/28 05:09:34
Can you please update
enqueue_external_microtask
kouhei (in TOK)
2014/04/28 05:22:29
Done.
| |
1557 | 1557 |
1558 if (FLAG_harmony_promises) { | 1558 if (FLAG_harmony_promises) { |
1559 INSTALL_NATIVE(JSFunction, "IsPromise", is_promise); | 1559 INSTALL_NATIVE(JSFunction, "IsPromise", is_promise); |
1560 INSTALL_NATIVE(JSFunction, "PromiseCreate", promise_create); | 1560 INSTALL_NATIVE(JSFunction, "PromiseCreate", promise_create); |
1561 INSTALL_NATIVE(JSFunction, "PromiseResolve", promise_resolve); | 1561 INSTALL_NATIVE(JSFunction, "PromiseResolve", promise_resolve); |
1562 INSTALL_NATIVE(JSFunction, "PromiseReject", promise_reject); | 1562 INSTALL_NATIVE(JSFunction, "PromiseReject", promise_reject); |
1563 INSTALL_NATIVE(JSFunction, "PromiseChain", promise_chain); | 1563 INSTALL_NATIVE(JSFunction, "PromiseChain", promise_chain); |
1564 INSTALL_NATIVE(JSFunction, "PromiseCatch", promise_catch); | 1564 INSTALL_NATIVE(JSFunction, "PromiseCatch", promise_catch); |
1565 } | 1565 } |
1566 | 1566 |
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2683 return from + sizeof(NestingCounterType); | 2683 return from + sizeof(NestingCounterType); |
2684 } | 2684 } |
2685 | 2685 |
2686 | 2686 |
2687 // Called when the top-level V8 mutex is destroyed. | 2687 // Called when the top-level V8 mutex is destroyed. |
2688 void Bootstrapper::FreeThreadResources() { | 2688 void Bootstrapper::FreeThreadResources() { |
2689 ASSERT(!IsActive()); | 2689 ASSERT(!IsActive()); |
2690 } | 2690 } |
2691 | 2691 |
2692 } } // namespace v8::internal | 2692 } } // namespace v8::internal |
OLD | NEW |