| 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/base/ieee754.h" | 9 #include "src/base/ieee754.h" | 
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" | 
| (...skipping 3814 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3825       Map::CopyInitialMap(handle(object_function->initial_map(), isolate())); | 3825       Map::CopyInitialMap(handle(object_function->initial_map(), isolate())); | 
| 3826   slow_object_with_null_prototype_map->set_dictionary_map(true); | 3826   slow_object_with_null_prototype_map->set_dictionary_map(true); | 
| 3827   Map::SetPrototype(slow_object_with_null_prototype_map, | 3827   Map::SetPrototype(slow_object_with_null_prototype_map, | 
| 3828                     isolate()->factory()->null_value()); | 3828                     isolate()->factory()->null_value()); | 
| 3829   native_context()->set_slow_object_with_null_prototype_map( | 3829   native_context()->set_slow_object_with_null_prototype_map( | 
| 3830       *slow_object_with_null_prototype_map); | 3830       *slow_object_with_null_prototype_map); | 
| 3831 | 3831 | 
| 3832   // Store the map for the %StringPrototype% after the natives has been compiled | 3832   // Store the map for the %StringPrototype% after the natives has been compiled | 
| 3833   // and the String function has been set up. | 3833   // and the String function has been set up. | 
| 3834   Handle<JSFunction> string_function(native_context()->string_function()); | 3834   Handle<JSFunction> string_function(native_context()->string_function()); | 
| 3835   DCHECK(JSObject::cast( | 3835   JSObject* string_function_prototype = | 
| 3836       string_function->initial_map()->prototype())->HasFastProperties()); | 3836       JSObject::cast(string_function->initial_map()->prototype()); | 
|  | 3837   DCHECK(string_function_prototype->HasFastProperties()); | 
| 3837   native_context()->set_string_function_prototype_map( | 3838   native_context()->set_string_function_prototype_map( | 
| 3838       HeapObject::cast(string_function->map()->prototype())->map()); | 3839       string_function_prototype->map()); | 
| 3839 | 3840 | 
| 3840   Handle<JSGlobalObject> global_object = | 3841   Handle<JSGlobalObject> global_object = | 
| 3841       handle(native_context()->global_object()); | 3842       handle(native_context()->global_object()); | 
| 3842 | 3843 | 
| 3843   // Install Global.decodeURI. | 3844   // Install Global.decodeURI. | 
| 3844   SimpleInstallFunction(global_object, "decodeURI", Builtins::kGlobalDecodeURI, | 3845   SimpleInstallFunction(global_object, "decodeURI", Builtins::kGlobalDecodeURI, | 
| 3845                         1, false, kGlobalDecodeURI); | 3846                         1, false, kGlobalDecodeURI); | 
| 3846 | 3847 | 
| 3847   // Install Global.decodeURIComponent. | 3848   // Install Global.decodeURIComponent. | 
| 3848   SimpleInstallFunction(global_object, "decodeURIComponent", | 3849   SimpleInstallFunction(global_object, "decodeURIComponent", | 
| (...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 4875 } | 4876 } | 
| 4876 | 4877 | 
| 4877 | 4878 | 
| 4878 // Called when the top-level V8 mutex is destroyed. | 4879 // Called when the top-level V8 mutex is destroyed. | 
| 4879 void Bootstrapper::FreeThreadResources() { | 4880 void Bootstrapper::FreeThreadResources() { | 
| 4880   DCHECK(!IsActive()); | 4881   DCHECK(!IsActive()); | 
| 4881 } | 4882 } | 
| 4882 | 4883 | 
| 4883 }  // namespace internal | 4884 }  // namespace internal | 
| 4884 }  // namespace v8 | 4885 }  // namespace v8 | 
| OLD | NEW | 
|---|