| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 3cbc756af3509bff71cdda1bc4de190ef18535e8..0006d4f647ce7894698dac529d4b13b4d6156807 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -6136,6 +6136,26 @@ bool SharedFunctionInfo::OptimizedCodeMapIsCleared() const {
|
| }
|
|
|
|
|
| +// static
|
| +void SharedFunctionInfo::AddToOptimizedCodeMap(
|
| + Handle<SharedFunctionInfo> shared, Handle<Context> native_context,
|
| + Handle<Code> code, Handle<LiteralsArray> literals, BailoutId osr_ast_id) {
|
| + AddToOptimizedCodeMapInternal(shared, native_context, code, literals,
|
| + osr_ast_id);
|
| +}
|
| +
|
| +
|
| +// static
|
| +void SharedFunctionInfo::AddLiteralsToOptimizedCodeMap(
|
| + Handle<SharedFunctionInfo> shared, Handle<Context> native_context,
|
| + Handle<LiteralsArray> literals) {
|
| + Isolate* isolate = shared->GetIsolate();
|
| + Handle<Oddball> undefined = isolate->factory()->undefined_value();
|
| + AddToOptimizedCodeMapInternal(shared, native_context, undefined, literals,
|
| + BailoutId::None());
|
| +}
|
| +
|
| +
|
| bool JSFunction::IsOptimized() {
|
| return code()->kind() == Code::OPTIMIZED_FUNCTION;
|
| }
|
|
|