Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(480)

Side by Side Diff: src/bootstrapper.cc

Issue 290633010: Move microtask queueing logic from JavaScript to C++ (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Handle comments Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/api.cc ('k') | src/contexts.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1532 matching lines...) Expand 10 before | Expand all | Expand 10 after
1543 INSTALL_NATIVE(JSFunction, "NativeObjectObserve", 1543 INSTALL_NATIVE(JSFunction, "NativeObjectObserve",
1544 native_object_observe); 1544 native_object_observe);
1545 INSTALL_NATIVE(JSFunction, "NativeObjectGetNotifier", 1545 INSTALL_NATIVE(JSFunction, "NativeObjectGetNotifier",
1546 native_object_get_notifier); 1546 native_object_get_notifier);
1547 INSTALL_NATIVE(JSFunction, "NativeObjectNotifierPerformChange", 1547 INSTALL_NATIVE(JSFunction, "NativeObjectNotifierPerformChange",
1548 native_object_notifier_perform_change); 1548 native_object_notifier_perform_change);
1549 } 1549 }
1550 1550
1551 1551
1552 void Genesis::InstallExperimentalNativeFunctions() { 1552 void Genesis::InstallExperimentalNativeFunctions() {
1553 INSTALL_NATIVE(JSFunction, "RunMicrotasksJS", run_microtasks);
1554 INSTALL_NATIVE(JSFunction, "EnqueueMicrotask", enqueue_microtask);
1555
1556 if (FLAG_harmony_proxies) { 1553 if (FLAG_harmony_proxies) {
1557 INSTALL_NATIVE(JSFunction, "DerivedHasTrap", derived_has_trap); 1554 INSTALL_NATIVE(JSFunction, "DerivedHasTrap", derived_has_trap);
1558 INSTALL_NATIVE(JSFunction, "DerivedGetTrap", derived_get_trap); 1555 INSTALL_NATIVE(JSFunction, "DerivedGetTrap", derived_get_trap);
1559 INSTALL_NATIVE(JSFunction, "DerivedSetTrap", derived_set_trap); 1556 INSTALL_NATIVE(JSFunction, "DerivedSetTrap", derived_set_trap);
1560 INSTALL_NATIVE(JSFunction, "ProxyEnumerate", proxy_enumerate); 1557 INSTALL_NATIVE(JSFunction, "ProxyEnumerate", proxy_enumerate);
1561 } 1558 }
1562 } 1559 }
1563 1560
1564 #undef INSTALL_NATIVE 1561 #undef INSTALL_NATIVE
1565 1562
(...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after
2655 return from + sizeof(NestingCounterType); 2652 return from + sizeof(NestingCounterType);
2656 } 2653 }
2657 2654
2658 2655
2659 // Called when the top-level V8 mutex is destroyed. 2656 // Called when the top-level V8 mutex is destroyed.
2660 void Bootstrapper::FreeThreadResources() { 2657 void Bootstrapper::FreeThreadResources() {
2661 ASSERT(!IsActive()); 2658 ASSERT(!IsActive());
2662 } 2659 }
2663 2660
2664 } } // namespace v8::internal 2661 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698