| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 933360c59fa41a462ed9e3997e2346a0f59db395..277b63aca414a985d3f4a0dde31c6c243c0ab3f1 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -5537,6 +5537,10 @@ void Script::set_compilation_type(CompilationType type) {
|
| set_flags(BooleanBit::set(flags(), kCompilationTypeBit,
|
| type == COMPILATION_TYPE_EVAL));
|
| }
|
| +bool Script::hide_source() { return BooleanBit::get(flags(), kHideSourceBit); }
|
| +void Script::set_hide_source(bool value) {
|
| + set_flags(BooleanBit::set(flags(), kHideSourceBit, value));
|
| +}
|
| Script::CompilationState Script::compilation_state() {
|
| return BooleanBit::get(flags(), kCompilationStateBit) ?
|
| COMPILATION_STATE_COMPILED : COMPILATION_STATE_INITIAL;
|
| @@ -6002,18 +6006,19 @@ void SharedFunctionInfo::set_disable_optimization_reason(BailoutReason reason) {
|
| }
|
|
|
|
|
| -bool SharedFunctionInfo::IsSubjectToDebugging() {
|
| +bool SharedFunctionInfo::IsBuiltin() {
|
| Object* script_obj = script();
|
| - if (script_obj->IsUndefined()) return false;
|
| + if (script_obj->IsUndefined()) return true;
|
| Script* script = Script::cast(script_obj);
|
| Script::Type type = static_cast<Script::Type>(script->type()->value());
|
| - return type == Script::TYPE_NORMAL;
|
| + return type != Script::TYPE_NORMAL;
|
| }
|
|
|
|
|
| -bool JSFunction::IsBuiltin() {
|
| - return context()->global_object()->IsJSBuiltinsObject();
|
| -}
|
| +bool SharedFunctionInfo::IsSubjectToDebugging() { return !IsBuiltin(); }
|
| +
|
| +
|
| +bool JSFunction::IsBuiltin() { return shared()->IsBuiltin(); }
|
|
|
|
|
| bool JSFunction::IsSubjectToDebugging() {
|
|
|