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

Side by Side Diff: src/bootstrapper.cc

Issue 698073005: Classes: Fix issue with default constructor crash (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | « no previous file | src/contexts.h » ('j') | src/runtime/runtime-classes.cc » ('J')
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 "src/bootstrapper.h" 5 #include "src/bootstrapper.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/extensions/externalize-string-extension.h" 9 #include "src/extensions/externalize-string-extension.h"
10 #include "src/extensions/free-buffer-extension.h" 10 #include "src/extensions/free-buffer-extension.h"
(...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after
1565 INSTALL_NATIVE(JSFunction, "ArrayValues", array_values_iterator); 1565 INSTALL_NATIVE(JSFunction, "ArrayValues", array_values_iterator);
1566 1566
1567 #define INSTALL_NATIVE_FUNCTIONS_FOR(id, descr) InstallNativeFunctions_##id(); 1567 #define INSTALL_NATIVE_FUNCTIONS_FOR(id, descr) InstallNativeFunctions_##id();
1568 1568
1569 SHIPPING_FEATURES(INSTALL_NATIVE_FUNCTIONS_FOR) 1569 SHIPPING_FEATURES(INSTALL_NATIVE_FUNCTIONS_FOR)
1570 #undef INSTALL_NATIVE_FUNCTIONS_FOR 1570 #undef INSTALL_NATIVE_FUNCTIONS_FOR
1571 } 1571 }
1572 1572
1573 1573
1574 void Genesis::InstallExperimentalNativeFunctions() { 1574 void Genesis::InstallExperimentalNativeFunctions() {
1575 if (FLAG_harmony_proxies) {
arv (Not doing code reviews) 2014/11/04 20:30:52 This is already added below.
1576 INSTALL_NATIVE(JSFunction, "DerivedHasTrap", derived_has_trap);
1577 INSTALL_NATIVE(JSFunction, "DerivedGetTrap", derived_get_trap);
1578 INSTALL_NATIVE(JSFunction, "DerivedSetTrap", derived_set_trap);
1579 INSTALL_NATIVE(JSFunction, "ProxyEnumerate", proxy_enumerate);
1580 }
1581
1582 #define INSTALL_NATIVE_FUNCTIONS_FOR(id, descr) InstallNativeFunctions_##id(); 1575 #define INSTALL_NATIVE_FUNCTIONS_FOR(id, descr) InstallNativeFunctions_##id();
1583 1576
1584 HARMONY_FEATURES(INSTALL_NATIVE_FUNCTIONS_FOR) 1577 HARMONY_FEATURES(INSTALL_NATIVE_FUNCTIONS_FOR)
1585 STAGED_FEATURES(INSTALL_NATIVE_FUNCTIONS_FOR) 1578 STAGED_FEATURES(INSTALL_NATIVE_FUNCTIONS_FOR)
1586 INSTALL_NATIVE_FUNCTIONS_FOR(harmony_proxies, "") 1579 INSTALL_NATIVE_FUNCTIONS_FOR(harmony_proxies, "")
1587 #undef INSTALL_NATIVE_FUNCTIONS_FOR 1580 #undef INSTALL_NATIVE_FUNCTIONS_FOR
1588 } 1581 }
1589 1582
1590 1583
1591 #define EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(id) \ 1584 #define EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(id) \
1592 void Genesis::InstallNativeFunctions_##id() {} 1585 void Genesis::InstallNativeFunctions_##id() {}
1593 1586
1594 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_scoping) 1587 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_scoping)
1595 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_modules) 1588 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_modules)
1596 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_strings) 1589 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_strings)
1597 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrays) 1590 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrays)
1598 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_classes)
1599 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_object_literals) 1591 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_object_literals)
1600 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_regexps) 1592 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_regexps)
1601 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrow_functions) 1593 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrow_functions)
1602 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_numeric_literals) 1594 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_numeric_literals)
1603 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_tostring) 1595 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_tostring)
1604 1596
1605 1597
1598 void Genesis::InstallNativeFunctions_harmony_classes() {
1599 if (FLAG_harmony_classes) {
1600 INSTALL_NATIVE(JSFunction, "DefaultConstructor", default_constructor);
1601 INSTALL_NATIVE(JSFunction, "DefaultConstructorNoSuper",
1602 default_constructor_no_super);
1603 }
1604 }
1605
1606
1606 void Genesis::InstallNativeFunctions_harmony_proxies() { 1607 void Genesis::InstallNativeFunctions_harmony_proxies() {
1607 if (FLAG_harmony_proxies) { 1608 if (FLAG_harmony_proxies) {
1608 INSTALL_NATIVE(JSFunction, "DerivedHasTrap", derived_has_trap); 1609 INSTALL_NATIVE(JSFunction, "DerivedHasTrap", derived_has_trap);
1609 INSTALL_NATIVE(JSFunction, "DerivedGetTrap", derived_get_trap); 1610 INSTALL_NATIVE(JSFunction, "DerivedGetTrap", derived_get_trap);
1610 INSTALL_NATIVE(JSFunction, "DerivedSetTrap", derived_set_trap); 1611 INSTALL_NATIVE(JSFunction, "DerivedSetTrap", derived_set_trap);
1611 INSTALL_NATIVE(JSFunction, "ProxyEnumerate", proxy_enumerate); 1612 INSTALL_NATIVE(JSFunction, "ProxyEnumerate", proxy_enumerate);
1612 } 1613 }
1613 } 1614 }
1614 1615
1615 #undef INSTALL_NATIVE 1616 #undef INSTALL_NATIVE
(...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after
2816 return from + sizeof(NestingCounterType); 2817 return from + sizeof(NestingCounterType);
2817 } 2818 }
2818 2819
2819 2820
2820 // Called when the top-level V8 mutex is destroyed. 2821 // Called when the top-level V8 mutex is destroyed.
2821 void Bootstrapper::FreeThreadResources() { 2822 void Bootstrapper::FreeThreadResources() {
2822 DCHECK(!IsActive()); 2823 DCHECK(!IsActive());
2823 } 2824 }
2824 2825
2825 } } // namespace v8::internal 2826 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/contexts.h » ('j') | src/runtime/runtime-classes.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698