Changeset 192935 in webkit for trunk/Source/JavaScriptCore/runtime/Executable.h
- Timestamp:
- Dec 1, 2015, 5:37:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/Executable.h
r192914 r192935 449 449 DECLARE_INFO; 450 450 451 ExecutableInfo executableInfo() const { return ExecutableInfo(needsActivation(), usesEval(), isStrictMode(), false, false, ConstructorKind::None, GeneratorThisMode::NonEmpty, SuperBinding::NotNeeded, SourceParseMode::ProgramMode); }451 ExecutableInfo executableInfo() const { return ExecutableInfo(needsActivation(), usesEval(), isStrictMode(), false, false, ConstructorKind::None, false); } 452 452 453 453 unsigned numVariables() { return m_unlinkedEvalCodeBlock->numVariables(); } … … 502 502 DECLARE_INFO; 503 503 504 ExecutableInfo executableInfo() const { return ExecutableInfo(needsActivation(), usesEval(), isStrictMode(), false, false, ConstructorKind::None, GeneratorThisMode::NonEmpty, SuperBinding::NotNeeded, SourceParseMode::ProgramMode); }504 ExecutableInfo executableInfo() const { return ExecutableInfo(needsActivation(), usesEval(), isStrictMode(), false, false, ConstructorKind::None, false); } 505 505 506 506 private: … … 543 543 DECLARE_INFO; 544 544 545 ExecutableInfo executableInfo() const { return ExecutableInfo(needsActivation(), usesEval(), isStrictMode(), false, false, ConstructorKind::None, GeneratorThisMode::NonEmpty, SuperBinding::NotNeeded, SourceParseMode::ModuleEvaluateMode); }545 ExecutableInfo executableInfo() const { return ExecutableInfo(needsActivation(), usesEval(), isStrictMode(), false, false, ConstructorKind::None, false); } 546 546 UnlinkedModuleProgramCodeBlock* unlinkedModuleProgramCodeBlock() { return m_unlinkedModuleProgramCodeBlock.get(); } 547 547 … … 651 651 bool isBuiltinFunction() const { return m_unlinkedExecutable->isBuiltinFunction(); } 652 652 ConstructAbility constructAbility() const { return m_unlinkedExecutable->constructAbility(); } 653 bool isArrowFunction() const { return m_unlinkedExecutable->isArrowFunction(); } 653 654 bool isClassConstructorFunction() const { return m_unlinkedExecutable->isClassConstructorFunction(); } 654 655 const Identifier& name() { return m_unlinkedExecutable->name(); } … … 656 657 JSString* nameValue() const { return m_unlinkedExecutable->nameValue(); } 657 658 size_t parameterCount() const { return m_unlinkedExecutable->parameterCount(); } // Excluding 'this'! 658 SourceParseMode parseMode() const { return m_unlinkedExecutable->parseMode(); }659 bool isArrowFunction() const { return parseMode() == SourceParseMode::ArrowFunctionMode; }660 659 661 660 static void visitChildren(JSCell*, SlotVisitor&);
Note:
See TracChangeset
for help on using the changeset viewer.