| 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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 } | 392 } |
| 393 | 393 |
| 394 Handle<JSFunction> CreateFunction(Isolate* isolate, Handle<String> name, | 394 Handle<JSFunction> CreateFunction(Isolate* isolate, Handle<String> name, |
| 395 InstanceType type, int instance_size, | 395 InstanceType type, int instance_size, |
| 396 MaybeHandle<JSObject> maybe_prototype, | 396 MaybeHandle<JSObject> maybe_prototype, |
| 397 Builtins::Name call, | 397 Builtins::Name call, |
| 398 bool strict_function_map = false) { | 398 bool strict_function_map = false) { |
| 399 Factory* factory = isolate->factory(); | 399 Factory* factory = isolate->factory(); |
| 400 Handle<Code> call_code(isolate->builtins()->builtin(call)); | 400 Handle<Code> call_code(isolate->builtins()->builtin(call)); |
| 401 Handle<JSObject> prototype; | 401 Handle<JSObject> prototype; |
| 402 static const bool kReadOnlyPrototype = false; | |
| 403 static const bool kInstallConstructor = false; | |
| 404 return maybe_prototype.ToHandle(&prototype) | 402 return maybe_prototype.ToHandle(&prototype) |
| 405 ? factory->NewFunction(name, call_code, prototype, type, | 403 ? factory->NewFunction(name, call_code, prototype, type, |
| 406 instance_size, kReadOnlyPrototype, | 404 instance_size, strict_function_map) |
| 407 kInstallConstructor, strict_function_map) | |
| 408 : factory->NewFunctionWithoutPrototype(name, call_code, | 405 : factory->NewFunctionWithoutPrototype(name, call_code, |
| 409 strict_function_map); | 406 strict_function_map); |
| 410 } | 407 } |
| 411 | 408 |
| 412 Handle<JSFunction> InstallFunction(Handle<JSObject> target, Handle<Name> name, | 409 Handle<JSFunction> InstallFunction(Handle<JSObject> target, Handle<Name> name, |
| 413 InstanceType type, int instance_size, | 410 InstanceType type, int instance_size, |
| 414 MaybeHandle<JSObject> maybe_prototype, | 411 MaybeHandle<JSObject> maybe_prototype, |
| 415 Builtins::Name call, | 412 Builtins::Name call, |
| 416 PropertyAttributes attributes, | 413 PropertyAttributes attributes, |
| 417 bool strict_function_map = false) { | 414 bool strict_function_map = false) { |
| (...skipping 3569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3987 } | 3984 } |
| 3988 | 3985 |
| 3989 | 3986 |
| 3990 // Called when the top-level V8 mutex is destroyed. | 3987 // Called when the top-level V8 mutex is destroyed. |
| 3991 void Bootstrapper::FreeThreadResources() { | 3988 void Bootstrapper::FreeThreadResources() { |
| 3992 DCHECK(!IsActive()); | 3989 DCHECK(!IsActive()); |
| 3993 } | 3990 } |
| 3994 | 3991 |
| 3995 } // namespace internal | 3992 } // namespace internal |
| 3996 } // namespace v8 | 3993 } // namespace v8 |
| OLD | NEW |