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

Side by Side Diff: src/bootstrapper.cc

Issue 11347037: Object.observe: generate change records for named properties. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing comments. Created 8 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') | 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 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after
1408 to_complete_property_descriptor); 1408 to_complete_property_descriptor);
1409 } 1409 }
1410 1410
1411 void Genesis::InstallExperimentalNativeFunctions() { 1411 void Genesis::InstallExperimentalNativeFunctions() {
1412 if (FLAG_harmony_proxies) { 1412 if (FLAG_harmony_proxies) {
1413 INSTALL_NATIVE(JSFunction, "DerivedHasTrap", derived_has_trap); 1413 INSTALL_NATIVE(JSFunction, "DerivedHasTrap", derived_has_trap);
1414 INSTALL_NATIVE(JSFunction, "DerivedGetTrap", derived_get_trap); 1414 INSTALL_NATIVE(JSFunction, "DerivedGetTrap", derived_get_trap);
1415 INSTALL_NATIVE(JSFunction, "DerivedSetTrap", derived_set_trap); 1415 INSTALL_NATIVE(JSFunction, "DerivedSetTrap", derived_set_trap);
1416 INSTALL_NATIVE(JSFunction, "ProxyEnumerate", proxy_enumerate); 1416 INSTALL_NATIVE(JSFunction, "ProxyEnumerate", proxy_enumerate);
1417 } 1417 }
1418 if (FLAG_harmony_observation) {
1419 INSTALL_NATIVE(JSFunction, "NotifyChange", observers_notify_change);
1420 }
1418 } 1421 }
1419 1422
1420 #undef INSTALL_NATIVE 1423 #undef INSTALL_NATIVE
1421 1424
1422 1425
1423 bool Genesis::InstallNatives() { 1426 bool Genesis::InstallNatives() {
1424 HandleScope scope; 1427 HandleScope scope;
1425 1428
1426 // Create a function for the builtins object. Allocate space for the 1429 // Create a function for the builtins object. Allocate space for the
1427 // JavaScript builtins, a reference to the builtins object 1430 // JavaScript builtins, a reference to the builtins object
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
1821 if (FLAG_harmony_proxies && 1824 if (FLAG_harmony_proxies &&
1822 strcmp(ExperimentalNatives::GetScriptName(i).start(), 1825 strcmp(ExperimentalNatives::GetScriptName(i).start(),
1823 "native proxy.js") == 0) { 1826 "native proxy.js") == 0) {
1824 if (!CompileExperimentalBuiltin(isolate(), i)) return false; 1827 if (!CompileExperimentalBuiltin(isolate(), i)) return false;
1825 } 1828 }
1826 if (FLAG_harmony_collections && 1829 if (FLAG_harmony_collections &&
1827 strcmp(ExperimentalNatives::GetScriptName(i).start(), 1830 strcmp(ExperimentalNatives::GetScriptName(i).start(),
1828 "native collection.js") == 0) { 1831 "native collection.js") == 0) {
1829 if (!CompileExperimentalBuiltin(isolate(), i)) return false; 1832 if (!CompileExperimentalBuiltin(isolate(), i)) return false;
1830 } 1833 }
1831 if (FLAG_harmony_object_observe && 1834 if (FLAG_harmony_observation &&
1832 strcmp(ExperimentalNatives::GetScriptName(i).start(), 1835 strcmp(ExperimentalNatives::GetScriptName(i).start(),
1833 "native object-observe.js") == 0) { 1836 "native object-observe.js") == 0) {
1834 if (!CompileExperimentalBuiltin(isolate(), i)) return false; 1837 if (!CompileExperimentalBuiltin(isolate(), i)) return false;
1835 } 1838 }
1836 } 1839 }
1837 1840
1838 InstallExperimentalNativeFunctions(); 1841 InstallExperimentalNativeFunctions();
1839 1842
1840 return true; 1843 return true;
1841 } 1844 }
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
2404 return from + sizeof(NestingCounterType); 2407 return from + sizeof(NestingCounterType);
2405 } 2408 }
2406 2409
2407 2410
2408 // Called when the top-level V8 mutex is destroyed. 2411 // Called when the top-level V8 mutex is destroyed.
2409 void Bootstrapper::FreeThreadResources() { 2412 void Bootstrapper::FreeThreadResources() {
2410 ASSERT(!IsActive()); 2413 ASSERT(!IsActive());
2411 } 2414 }
2412 2415
2413 } } // namespace v8::internal 2416 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698