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

Side by Side Diff: src/bootstrapper.cc

Issue 607009: Remove caching of ToBoolean on the global context. This was used for... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 10 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 | « 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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 void Genesis::InstallNativeFunctions() { 863 void Genesis::InstallNativeFunctions() {
864 HandleScope scope; 864 HandleScope scope;
865 INSTALL_NATIVE(JSFunction, "CreateDate", create_date_fun); 865 INSTALL_NATIVE(JSFunction, "CreateDate", create_date_fun);
866 INSTALL_NATIVE(JSFunction, "ToNumber", to_number_fun); 866 INSTALL_NATIVE(JSFunction, "ToNumber", to_number_fun);
867 INSTALL_NATIVE(JSFunction, "ToString", to_string_fun); 867 INSTALL_NATIVE(JSFunction, "ToString", to_string_fun);
868 INSTALL_NATIVE(JSFunction, "ToDetailString", to_detail_string_fun); 868 INSTALL_NATIVE(JSFunction, "ToDetailString", to_detail_string_fun);
869 INSTALL_NATIVE(JSFunction, "ToObject", to_object_fun); 869 INSTALL_NATIVE(JSFunction, "ToObject", to_object_fun);
870 INSTALL_NATIVE(JSFunction, "ToInteger", to_integer_fun); 870 INSTALL_NATIVE(JSFunction, "ToInteger", to_integer_fun);
871 INSTALL_NATIVE(JSFunction, "ToUint32", to_uint32_fun); 871 INSTALL_NATIVE(JSFunction, "ToUint32", to_uint32_fun);
872 INSTALL_NATIVE(JSFunction, "ToInt32", to_int32_fun); 872 INSTALL_NATIVE(JSFunction, "ToInt32", to_int32_fun);
873 INSTALL_NATIVE(JSFunction, "ToBoolean", to_boolean_fun);
874 INSTALL_NATIVE(JSFunction, "GlobalEval", global_eval_fun); 873 INSTALL_NATIVE(JSFunction, "GlobalEval", global_eval_fun);
875 INSTALL_NATIVE(JSFunction, "Instantiate", instantiate_fun); 874 INSTALL_NATIVE(JSFunction, "Instantiate", instantiate_fun);
876 INSTALL_NATIVE(JSFunction, "ConfigureTemplateInstance", 875 INSTALL_NATIVE(JSFunction, "ConfigureTemplateInstance",
877 configure_instance_fun); 876 configure_instance_fun);
878 INSTALL_NATIVE(JSFunction, "MakeMessage", make_message_fun); 877 INSTALL_NATIVE(JSFunction, "MakeMessage", make_message_fun);
879 INSTALL_NATIVE(JSFunction, "GetStackTraceLine", get_stack_trace_line_fun); 878 INSTALL_NATIVE(JSFunction, "GetStackTraceLine", get_stack_trace_line_fun);
880 INSTALL_NATIVE(JSObject, "functionCache", function_cache); 879 INSTALL_NATIVE(JSObject, "functionCache", function_cache);
881 } 880 }
882 881
883 #undef INSTALL_NATIVE 882 #undef INSTALL_NATIVE
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
1572 } 1571 }
1573 1572
1574 1573
1575 // Restore statics that are thread local. 1574 // Restore statics that are thread local.
1576 char* Genesis::RestoreState(char* from) { 1575 char* Genesis::RestoreState(char* from) {
1577 current_ = *reinterpret_cast<Genesis**>(from); 1576 current_ = *reinterpret_cast<Genesis**>(from);
1578 return from + sizeof(current_); 1577 return from + sizeof(current_);
1579 } 1578 }
1580 1579
1581 } } // namespace v8::internal 1580 } } // 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