| 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 1709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1720 Runtime::SetObjectProperty(isolate(), builtins, | 1720 Runtime::SetObjectProperty(isolate(), builtins, |
| 1721 factory()->harmony_unicode_regexps_string(), flag, | 1721 factory()->harmony_unicode_regexps_string(), flag, |
| 1722 STRICT).Assert(); | 1722 STRICT).Assert(); |
| 1723 } | 1723 } |
| 1724 | 1724 |
| 1725 | 1725 |
| 1726 void Genesis::InitializeGlobal_harmony_reflect() { | 1726 void Genesis::InitializeGlobal_harmony_reflect() { |
| 1727 Handle<JSObject> builtins(native_context()->builtins()); | 1727 Handle<JSObject> builtins(native_context()->builtins()); |
| 1728 // Install references to functions of the Reflect object | 1728 // Install references to functions of the Reflect object |
| 1729 if (FLAG_harmony_reflect || FLAG_harmony_spreadcalls) { | 1729 if (FLAG_harmony_reflect || FLAG_harmony_spreadcalls) { |
| 1730 Handle<JSFunction> apply = | 1730 Handle<JSFunction> apply = InstallFunction( |
| 1731 InstallFunction(builtins, "ReflectApply", JS_OBJECT_TYPE, | 1731 builtins, "$reflectApply", JS_OBJECT_TYPE, JSObject::kHeaderSize, |
| 1732 JSObject::kHeaderSize, MaybeHandle<JSObject>(), | 1732 MaybeHandle<JSObject>(), Builtins::kReflectApply); |
| 1733 Builtins::kReflectApply); | 1733 Handle<JSFunction> construct = InstallFunction( |
| 1734 Handle<JSFunction> construct = | 1734 builtins, "$reflectConstruct", JS_OBJECT_TYPE, JSObject::kHeaderSize, |
| 1735 InstallFunction(builtins, "ReflectConstruct", JS_OBJECT_TYPE, | 1735 MaybeHandle<JSObject>(), Builtins::kReflectConstruct); |
| 1736 JSObject::kHeaderSize, MaybeHandle<JSObject>(), | |
| 1737 Builtins::kReflectConstruct); | |
| 1738 if (FLAG_vector_ics) { | 1736 if (FLAG_vector_ics) { |
| 1739 // Apply embeds an IC, so we need a type vector of size 1 in the shared | 1737 // Apply embeds an IC, so we need a type vector of size 1 in the shared |
| 1740 // function info. | 1738 // function info. |
| 1741 FeedbackVectorSpec spec(0, Code::CALL_IC); | 1739 FeedbackVectorSpec spec(0, Code::CALL_IC); |
| 1742 Handle<TypeFeedbackVector> feedback_vector = | 1740 Handle<TypeFeedbackVector> feedback_vector = |
| 1743 factory()->NewTypeFeedbackVector(&spec); | 1741 factory()->NewTypeFeedbackVector(&spec); |
| 1744 apply->shared()->set_feedback_vector(*feedback_vector); | 1742 apply->shared()->set_feedback_vector(*feedback_vector); |
| 1745 | 1743 |
| 1746 feedback_vector = factory()->NewTypeFeedbackVector(&spec); | 1744 feedback_vector = factory()->NewTypeFeedbackVector(&spec); |
| 1747 construct->shared()->set_feedback_vector(*feedback_vector); | 1745 construct->shared()->set_feedback_vector(*feedback_vector); |
| (...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2962 return from + sizeof(NestingCounterType); | 2960 return from + sizeof(NestingCounterType); |
| 2963 } | 2961 } |
| 2964 | 2962 |
| 2965 | 2963 |
| 2966 // Called when the top-level V8 mutex is destroyed. | 2964 // Called when the top-level V8 mutex is destroyed. |
| 2967 void Bootstrapper::FreeThreadResources() { | 2965 void Bootstrapper::FreeThreadResources() { |
| 2968 DCHECK(!IsActive()); | 2966 DCHECK(!IsActive()); |
| 2969 } | 2967 } |
| 2970 | 2968 |
| 2971 } } // namespace v8::internal | 2969 } } // namespace v8::internal |
| OLD | NEW |