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 2302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2313 Isolate* isolate = global->GetIsolate(); | 2313 Isolate* isolate = global->GetIsolate(); |
2314 Factory* factory = isolate->factory(); | 2314 Factory* factory = isolate->factory(); |
2315 | 2315 |
2316 InstallJSProxyMaps(); | 2316 InstallJSProxyMaps(); |
2317 | 2317 |
2318 // Create the Proxy object. | 2318 // Create the Proxy object. |
2319 Handle<String> name = factory->Proxy_string(); | 2319 Handle<String> name = factory->Proxy_string(); |
2320 Handle<Code> code(isolate->builtins()->ProxyConstructor()); | 2320 Handle<Code> code(isolate->builtins()->ProxyConstructor()); |
2321 | 2321 |
2322 Handle<JSFunction> proxy_function = factory->NewFunction( | 2322 Handle<JSFunction> proxy_function = factory->NewFunction( |
2323 isolate->proxy_function_map(), factory->Object_string(), code); | 2323 isolate->proxy_function_map(), factory->Proxy_string(), code); |
2324 | 2324 |
2325 JSFunction::SetInitialMap(proxy_function, | 2325 JSFunction::SetInitialMap(proxy_function, |
2326 Handle<Map>(native_context()->proxy_map(), isolate), | 2326 Handle<Map>(native_context()->proxy_map(), isolate), |
2327 factory->null_value()); | 2327 factory->null_value()); |
2328 | 2328 |
2329 proxy_function->shared()->set_construct_stub( | 2329 proxy_function->shared()->set_construct_stub( |
2330 *isolate->builtins()->ProxyConstructor_ConstructStub()); | 2330 *isolate->builtins()->ProxyConstructor_ConstructStub()); |
2331 proxy_function->shared()->set_internal_formal_parameter_count(2); | 2331 proxy_function->shared()->set_internal_formal_parameter_count(2); |
2332 proxy_function->shared()->set_length(2); | 2332 proxy_function->shared()->set_length(2); |
2333 | 2333 |
(...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3363 } | 3363 } |
3364 | 3364 |
3365 | 3365 |
3366 // Called when the top-level V8 mutex is destroyed. | 3366 // Called when the top-level V8 mutex is destroyed. |
3367 void Bootstrapper::FreeThreadResources() { | 3367 void Bootstrapper::FreeThreadResources() { |
3368 DCHECK(!IsActive()); | 3368 DCHECK(!IsActive()); |
3369 } | 3369 } |
3370 | 3370 |
3371 } // namespace internal | 3371 } // namespace internal |
3372 } // namespace v8 | 3372 } // namespace v8 |
OLD | NEW |