| 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 2803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2814 // and the String function has been set up. | 2814 // and the String function has been set up. |
| 2815 Handle<JSFunction> string_function(native_context()->string_function()); | 2815 Handle<JSFunction> string_function(native_context()->string_function()); |
| 2816 DCHECK(JSObject::cast( | 2816 DCHECK(JSObject::cast( |
| 2817 string_function->initial_map()->prototype())->HasFastProperties()); | 2817 string_function->initial_map()->prototype())->HasFastProperties()); |
| 2818 native_context()->set_string_function_prototype_map( | 2818 native_context()->set_string_function_prototype_map( |
| 2819 HeapObject::cast(string_function->initial_map()->prototype())->map()); | 2819 HeapObject::cast(string_function->initial_map()->prototype())->map()); |
| 2820 | 2820 |
| 2821 Handle<JSGlobalObject> global_object = | 2821 Handle<JSGlobalObject> global_object = |
| 2822 handle(native_context()->global_object()); | 2822 handle(native_context()->global_object()); |
| 2823 | 2823 |
| 2824 // Install Global.decodeURI. |
| 2825 SimpleInstallFunction(global_object, "decodeURI", Builtins::kGlobalDecodeURI, |
| 2826 1, false); |
| 2827 |
| 2828 // Install Global.decodeURIComponent. |
| 2829 SimpleInstallFunction(global_object, "decodeURIComponent", |
| 2830 Builtins::kGlobalDecodeURIComponent, 1, false); |
| 2831 |
| 2824 // Install Global.encodeURI. | 2832 // Install Global.encodeURI. |
| 2825 SimpleInstallFunction(global_object, "encodeURI", Builtins::kGlobalEncodeURI, | 2833 SimpleInstallFunction(global_object, "encodeURI", Builtins::kGlobalEncodeURI, |
| 2826 1, false); | 2834 1, false); |
| 2827 | 2835 |
| 2828 // Install Global.encodeURIComponent. | 2836 // Install Global.encodeURIComponent. |
| 2829 SimpleInstallFunction(global_object, "encodeURIComponent", | 2837 SimpleInstallFunction(global_object, "encodeURIComponent", |
| 2830 Builtins::kGlobalEncodeURIComponent, 1, false); | 2838 Builtins::kGlobalEncodeURIComponent, 1, false); |
| 2831 | 2839 |
| 2832 // Install Global.eval. | 2840 // Install Global.eval. |
| 2833 { | 2841 { |
| (...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3776 } | 3784 } |
| 3777 | 3785 |
| 3778 | 3786 |
| 3779 // Called when the top-level V8 mutex is destroyed. | 3787 // Called when the top-level V8 mutex is destroyed. |
| 3780 void Bootstrapper::FreeThreadResources() { | 3788 void Bootstrapper::FreeThreadResources() { |
| 3781 DCHECK(!IsActive()); | 3789 DCHECK(!IsActive()); |
| 3782 } | 3790 } |
| 3783 | 3791 |
| 3784 } // namespace internal | 3792 } // namespace internal |
| 3785 } // namespace v8 | 3793 } // namespace v8 |
| OLD | NEW |