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

Side by Side Diff: src/bootstrapper.cc

Issue 12296026: ES6 symbols: Implement Symbol intrinsic and basic functionality (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed more comments Created 7 years, 9 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/arm/stub-cache-arm.cc ('k') | src/code-stubs.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 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 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after
1411 INSTALL_NATIVE(JSFunction, "Instantiate", instantiate_fun); 1411 INSTALL_NATIVE(JSFunction, "Instantiate", instantiate_fun);
1412 INSTALL_NATIVE(JSFunction, "ConfigureTemplateInstance", 1412 INSTALL_NATIVE(JSFunction, "ConfigureTemplateInstance",
1413 configure_instance_fun); 1413 configure_instance_fun);
1414 INSTALL_NATIVE(JSFunction, "GetStackTraceLine", get_stack_trace_line_fun); 1414 INSTALL_NATIVE(JSFunction, "GetStackTraceLine", get_stack_trace_line_fun);
1415 INSTALL_NATIVE(JSObject, "functionCache", function_cache); 1415 INSTALL_NATIVE(JSObject, "functionCache", function_cache);
1416 INSTALL_NATIVE(JSFunction, "ToCompletePropertyDescriptor", 1416 INSTALL_NATIVE(JSFunction, "ToCompletePropertyDescriptor",
1417 to_complete_property_descriptor); 1417 to_complete_property_descriptor);
1418 } 1418 }
1419 1419
1420 void Genesis::InstallExperimentalNativeFunctions() { 1420 void Genesis::InstallExperimentalNativeFunctions() {
1421 if (FLAG_harmony_symbols) {
1422 INSTALL_NATIVE(JSObject, "SymbolDelegate", symbol_delegate);
1423 }
1421 if (FLAG_harmony_proxies) { 1424 if (FLAG_harmony_proxies) {
1422 INSTALL_NATIVE(JSFunction, "DerivedHasTrap", derived_has_trap); 1425 INSTALL_NATIVE(JSFunction, "DerivedHasTrap", derived_has_trap);
1423 INSTALL_NATIVE(JSFunction, "DerivedGetTrap", derived_get_trap); 1426 INSTALL_NATIVE(JSFunction, "DerivedGetTrap", derived_get_trap);
1424 INSTALL_NATIVE(JSFunction, "DerivedSetTrap", derived_set_trap); 1427 INSTALL_NATIVE(JSFunction, "DerivedSetTrap", derived_set_trap);
1425 INSTALL_NATIVE(JSFunction, "ProxyEnumerate", proxy_enumerate); 1428 INSTALL_NATIVE(JSFunction, "ProxyEnumerate", proxy_enumerate);
1426 } 1429 }
1427 if (FLAG_harmony_observation) { 1430 if (FLAG_harmony_observation) {
1428 INSTALL_NATIVE(JSFunction, "NotifyChange", observers_notify_change); 1431 INSTALL_NATIVE(JSFunction, "NotifyChange", observers_notify_change);
1429 INSTALL_NATIVE(JSFunction, "DeliverChangeRecords", 1432 INSTALL_NATIVE(JSFunction, "DeliverChangeRecords",
1430 observers_deliver_changes); 1433 observers_deliver_changes);
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
1838 #endif 1841 #endif
1839 1842
1840 return true; 1843 return true;
1841 } 1844 }
1842 1845
1843 1846
1844 bool Genesis::InstallExperimentalNatives() { 1847 bool Genesis::InstallExperimentalNatives() {
1845 for (int i = ExperimentalNatives::GetDebuggerCount(); 1848 for (int i = ExperimentalNatives::GetDebuggerCount();
1846 i < ExperimentalNatives::GetBuiltinsCount(); 1849 i < ExperimentalNatives::GetBuiltinsCount();
1847 i++) { 1850 i++) {
1851 if (FLAG_harmony_symbols &&
1852 strcmp(ExperimentalNatives::GetScriptName(i).start(),
1853 "native symbol.js") == 0) {
1854 if (!CompileExperimentalBuiltin(isolate(), i)) return false;
1855 }
1848 if (FLAG_harmony_proxies && 1856 if (FLAG_harmony_proxies &&
1849 strcmp(ExperimentalNatives::GetScriptName(i).start(), 1857 strcmp(ExperimentalNatives::GetScriptName(i).start(),
1850 "native proxy.js") == 0) { 1858 "native proxy.js") == 0) {
1851 if (!CompileExperimentalBuiltin(isolate(), i)) return false; 1859 if (!CompileExperimentalBuiltin(isolate(), i)) return false;
1852 } 1860 }
1853 if (FLAG_harmony_collections && 1861 if (FLAG_harmony_collections &&
1854 strcmp(ExperimentalNatives::GetScriptName(i).start(), 1862 strcmp(ExperimentalNatives::GetScriptName(i).start(),
1855 "native collection.js") == 0) { 1863 "native collection.js") == 0) {
1856 if (!CompileExperimentalBuiltin(isolate(), i)) return false; 1864 if (!CompileExperimentalBuiltin(isolate(), i)) return false;
1857 } 1865 }
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
2433 return from + sizeof(NestingCounterType); 2441 return from + sizeof(NestingCounterType);
2434 } 2442 }
2435 2443
2436 2444
2437 // Called when the top-level V8 mutex is destroyed. 2445 // Called when the top-level V8 mutex is destroyed.
2438 void Bootstrapper::FreeThreadResources() { 2446 void Bootstrapper::FreeThreadResources() {
2439 ASSERT(!IsActive()); 2447 ASSERT(!IsActive());
2440 } 2448 }
2441 2449
2442 } } // namespace v8::internal 2450 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/stub-cache-arm.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698