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

Side by Side Diff: src/bootstrapper.cc

Issue 6992072: Implement set trap for proxies, and revamp class hierarchy in preparation (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Renamed range constants for InstanceType enum. Created 9 years, 6 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after
1285 INSTALL_NATIVE(JSFunction, "Instantiate", instantiate_fun); 1285 INSTALL_NATIVE(JSFunction, "Instantiate", instantiate_fun);
1286 INSTALL_NATIVE(JSFunction, "ConfigureTemplateInstance", 1286 INSTALL_NATIVE(JSFunction, "ConfigureTemplateInstance",
1287 configure_instance_fun); 1287 configure_instance_fun);
1288 INSTALL_NATIVE(JSFunction, "GetStackTraceLine", get_stack_trace_line_fun); 1288 INSTALL_NATIVE(JSFunction, "GetStackTraceLine", get_stack_trace_line_fun);
1289 INSTALL_NATIVE(JSObject, "functionCache", function_cache); 1289 INSTALL_NATIVE(JSObject, "functionCache", function_cache);
1290 } 1290 }
1291 1291
1292 void Genesis::InstallExperimentalNativeFunctions() { 1292 void Genesis::InstallExperimentalNativeFunctions() {
1293 if (FLAG_harmony_proxies) { 1293 if (FLAG_harmony_proxies) {
1294 INSTALL_NATIVE(JSFunction, "DerivedGetTrap", derived_get_trap); 1294 INSTALL_NATIVE(JSFunction, "DerivedGetTrap", derived_get_trap);
1295 INSTALL_NATIVE(JSFunction, "DerivedSetTrap", derived_set_trap);
1295 } 1296 }
1296 } 1297 }
1297 1298
1298 #undef INSTALL_NATIVE 1299 #undef INSTALL_NATIVE
1299 1300
1300 1301
1301 bool Genesis::InstallNatives() { 1302 bool Genesis::InstallNatives() {
1302 HandleScope scope; 1303 HandleScope scope;
1303 1304
1304 // Create a function for the builtins object. Allocate space for the 1305 // Create a function for the builtins object. Allocate space for the
(...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after
2178 return from + sizeof(NestingCounterType); 2179 return from + sizeof(NestingCounterType);
2179 } 2180 }
2180 2181
2181 2182
2182 // Called when the top-level V8 mutex is destroyed. 2183 // Called when the top-level V8 mutex is destroyed.
2183 void Bootstrapper::FreeThreadResources() { 2184 void Bootstrapper::FreeThreadResources() {
2184 ASSERT(!IsActive()); 2185 ASSERT(!IsActive());
2185 } 2186 }
2186 2187
2187 } } // namespace v8::internal 2188 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698