| OLD | NEW |
| 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/api-natives.h" | 8 #include "src/api-natives.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/extensions/externalize-string-extension.h" | 10 #include "src/extensions/externalize-string-extension.h" |
| (...skipping 2836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2847 Builtins::kGlobalDecodeURIComponent, 1, false); | 2847 Builtins::kGlobalDecodeURIComponent, 1, false); |
| 2848 | 2848 |
| 2849 // Install Global.encodeURI. | 2849 // Install Global.encodeURI. |
| 2850 SimpleInstallFunction(global_object, "encodeURI", Builtins::kGlobalEncodeURI, | 2850 SimpleInstallFunction(global_object, "encodeURI", Builtins::kGlobalEncodeURI, |
| 2851 1, false); | 2851 1, false); |
| 2852 | 2852 |
| 2853 // Install Global.encodeURIComponent. | 2853 // Install Global.encodeURIComponent. |
| 2854 SimpleInstallFunction(global_object, "encodeURIComponent", | 2854 SimpleInstallFunction(global_object, "encodeURIComponent", |
| 2855 Builtins::kGlobalEncodeURIComponent, 1, false); | 2855 Builtins::kGlobalEncodeURIComponent, 1, false); |
| 2856 | 2856 |
| 2857 // Install Global.escape. |
| 2858 SimpleInstallFunction(global_object, "escape", Builtins::kGlobalEscape, 1, |
| 2859 false); |
| 2860 |
| 2861 // Install Global.unescape. |
| 2862 SimpleInstallFunction(global_object, "unescape", Builtins::kGlobalUnescape, 1, |
| 2863 false); |
| 2864 |
| 2857 // Install Global.eval. | 2865 // Install Global.eval. |
| 2858 { | 2866 { |
| 2859 Handle<JSFunction> eval = | 2867 Handle<JSFunction> eval = |
| 2860 SimpleInstallFunction(global_object, factory()->eval_string(), | 2868 SimpleInstallFunction(global_object, factory()->eval_string(), |
| 2861 Builtins::kGlobalEval, 1, false); | 2869 Builtins::kGlobalEval, 1, false); |
| 2862 native_context()->set_global_eval_fun(*eval); | 2870 native_context()->set_global_eval_fun(*eval); |
| 2863 } | 2871 } |
| 2864 | 2872 |
| 2865 // Install Array.prototype.concat | 2873 // Install Array.prototype.concat |
| 2866 { | 2874 { |
| (...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3802 } | 3810 } |
| 3803 | 3811 |
| 3804 | 3812 |
| 3805 // Called when the top-level V8 mutex is destroyed. | 3813 // Called when the top-level V8 mutex is destroyed. |
| 3806 void Bootstrapper::FreeThreadResources() { | 3814 void Bootstrapper::FreeThreadResources() { |
| 3807 DCHECK(!IsActive()); | 3815 DCHECK(!IsActive()); |
| 3808 } | 3816 } |
| 3809 | 3817 |
| 3810 } // namespace internal | 3818 } // namespace internal |
| 3811 } // namespace v8 | 3819 } // namespace v8 |
| OLD | NEW |