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 1538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1549 INSTALL_NATIVE(JSFunction, "GetStackTraceLine", get_stack_trace_line_fun); | 1549 INSTALL_NATIVE(JSFunction, "GetStackTraceLine", get_stack_trace_line_fun); |
1550 INSTALL_NATIVE(JSObject, "functionCache", function_cache); | 1550 INSTALL_NATIVE(JSObject, "functionCache", function_cache); |
1551 INSTALL_NATIVE(JSFunction, "ToCompletePropertyDescriptor", | 1551 INSTALL_NATIVE(JSFunction, "ToCompletePropertyDescriptor", |
1552 to_complete_property_descriptor); | 1552 to_complete_property_descriptor); |
1553 INSTALL_NATIVE(JSFunction, "NotifyChange", observers_notify_change); | 1553 INSTALL_NATIVE(JSFunction, "NotifyChange", observers_notify_change); |
1554 INSTALL_NATIVE(JSFunction, "EnqueueSpliceRecord", observers_enqueue_splice); | 1554 INSTALL_NATIVE(JSFunction, "EnqueueSpliceRecord", observers_enqueue_splice); |
1555 INSTALL_NATIVE(JSFunction, "BeginPerformSplice", | 1555 INSTALL_NATIVE(JSFunction, "BeginPerformSplice", |
1556 observers_begin_perform_splice); | 1556 observers_begin_perform_splice); |
1557 INSTALL_NATIVE(JSFunction, "EndPerformSplice", | 1557 INSTALL_NATIVE(JSFunction, "EndPerformSplice", |
1558 observers_end_perform_splice); | 1558 observers_end_perform_splice); |
| 1559 INSTALL_NATIVE(JSFunction, "NativeObjectObserve", |
| 1560 native_object_observe); |
| 1561 INSTALL_NATIVE(JSFunction, "NativeObjectGetNotifier", |
| 1562 native_object_get_notifier); |
| 1563 INSTALL_NATIVE(JSFunction, "NativeObjectNotifierPerformChange", |
| 1564 native_object_notifier_perform_change); |
1559 } | 1565 } |
1560 | 1566 |
1561 | 1567 |
1562 void Genesis::InstallExperimentalNativeFunctions() { | 1568 void Genesis::InstallExperimentalNativeFunctions() { |
1563 INSTALL_NATIVE(JSFunction, "RunMicrotasks", run_microtasks); | 1569 INSTALL_NATIVE(JSFunction, "RunMicrotasks", run_microtasks); |
1564 INSTALL_NATIVE(JSFunction, "EnqueueMicrotask", enqueue_microtask); | 1570 INSTALL_NATIVE(JSFunction, "EnqueueMicrotask", enqueue_microtask); |
1565 | 1571 |
1566 if (FLAG_harmony_promises) { | 1572 if (FLAG_harmony_promises) { |
1567 INSTALL_NATIVE(JSFunction, "IsPromise", is_promise); | 1573 INSTALL_NATIVE(JSFunction, "IsPromise", is_promise); |
1568 INSTALL_NATIVE(JSFunction, "PromiseCreate", promise_create); | 1574 INSTALL_NATIVE(JSFunction, "PromiseCreate", promise_create); |
(...skipping 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2691 return from + sizeof(NestingCounterType); | 2697 return from + sizeof(NestingCounterType); |
2692 } | 2698 } |
2693 | 2699 |
2694 | 2700 |
2695 // Called when the top-level V8 mutex is destroyed. | 2701 // Called when the top-level V8 mutex is destroyed. |
2696 void Bootstrapper::FreeThreadResources() { | 2702 void Bootstrapper::FreeThreadResources() { |
2697 ASSERT(!IsActive()); | 2703 ASSERT(!IsActive()); |
2698 } | 2704 } |
2699 | 2705 |
2700 } } // namespace v8::internal | 2706 } } // namespace v8::internal |
OLD | NEW |