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 2084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2095 apply->shared()->set_feedback_vector(*feedback_vector); | 2095 apply->shared()->set_feedback_vector(*feedback_vector); |
2096 } | 2096 } |
2097 | 2097 |
2098 // Make sure that Function.prototype.call appears to be compiled. | 2098 // Make sure that Function.prototype.call appears to be compiled. |
2099 // The code will never be called, but inline caching for call will | 2099 // The code will never be called, but inline caching for call will |
2100 // only work if it appears to be compiled. | 2100 // only work if it appears to be compiled. |
2101 call->shared()->DontAdaptArguments(); | 2101 call->shared()->DontAdaptArguments(); |
2102 DCHECK(call->is_compiled()); | 2102 DCHECK(call->is_compiled()); |
2103 | 2103 |
2104 // Set the expected parameters for apply to 2; required by builtin. | 2104 // Set the expected parameters for apply to 2; required by builtin. |
2105 apply->shared()->set_formal_parameter_count(2); | 2105 apply->shared()->set_internal_formal_parameter_count(2); |
2106 | 2106 |
2107 // Set the lengths for the functions to satisfy ECMA-262. | 2107 // Set the lengths for the functions to satisfy ECMA-262. |
2108 call->shared()->set_length(1); | 2108 call->shared()->set_length(1); |
2109 apply->shared()->set_length(2); | 2109 apply->shared()->set_length(2); |
2110 } | 2110 } |
2111 | 2111 |
2112 InstallBuiltinFunctionIds(); | 2112 InstallBuiltinFunctionIds(); |
2113 | 2113 |
2114 // Create a constructor for RegExp results (a variant of Array that | 2114 // Create a constructor for RegExp results (a variant of Array that |
2115 // predefines the two properties index and match). | 2115 // predefines the two properties index and match). |
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2859 return from + sizeof(NestingCounterType); | 2859 return from + sizeof(NestingCounterType); |
2860 } | 2860 } |
2861 | 2861 |
2862 | 2862 |
2863 // Called when the top-level V8 mutex is destroyed. | 2863 // Called when the top-level V8 mutex is destroyed. |
2864 void Bootstrapper::FreeThreadResources() { | 2864 void Bootstrapper::FreeThreadResources() { |
2865 DCHECK(!IsActive()); | 2865 DCHECK(!IsActive()); |
2866 } | 2866 } |
2867 | 2867 |
2868 } } // namespace v8::internal | 2868 } } // namespace v8::internal |
OLD | NEW |