| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/code-stubs.h" | 5 #include "src/code-stubs.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/cpu-profiler.h" | 10 #include "src/cpu-profiler.h" |
| (...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 964 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 964 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
| 965 } | 965 } |
| 966 | 966 |
| 967 | 967 |
| 968 InternalArrayConstructorStub::InternalArrayConstructorStub( | 968 InternalArrayConstructorStub::InternalArrayConstructorStub( |
| 969 Isolate* isolate) : PlatformCodeStub(isolate) { | 969 Isolate* isolate) : PlatformCodeStub(isolate) { |
| 970 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 970 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
| 971 } | 971 } |
| 972 | 972 |
| 973 | 973 |
| 974 JSApiFunctionStub::JSApiFunctionStub(Isolate* isolate, |
| 975 Handle<FunctionTemplateInfo> info) |
| 976 : PlatformCodeStub(isolate) { |
| 977 // TODO(dcarney): CHECK if these properties are changes after first |
| 978 // instantiation. |
| 979 bool has_call_code = !info->call_code()->IsUndefined(); |
| 980 bool call_data_undefined = true; |
| 981 bool has_signature = !info->signature()->IsUndefined(); |
| 982 if (has_call_code) { |
| 983 auto handler = handle(CallHandlerInfo::cast(info->call_code())); |
| 984 call_data_undefined = handler->data()->IsUndefined(); |
| 985 } |
| 986 minor_key_ = CallDataUndefinedBits::encode(call_data_undefined) | |
| 987 HasCallCodeBits::encode(has_call_code) | |
| 988 HasSignatureBits::encode(has_signature); |
| 989 } |
| 974 } } // namespace v8::internal | 990 } } // namespace v8::internal |
| OLD | NEW |