| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999-2000 Harri Porten (porten@kde.org) | 2 * Copyright (C) 1999-2000 Harri Porten (porten@kde.org) |
| 3 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2007 Cameron Zwarich (cwzwarich@uwaterloo.ca) | 4 * Copyright (C) 2007 Cameron Zwarich (cwzwarich@uwaterloo.ca) |
| 5 * Copyright (C) 2007 Maks Orlovich | 5 * Copyright (C) 2007 Maks Orlovich |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "JSObject.h" | 31 #include "JSObject.h" |
| 32 | 32 |
| 33 namespace JSC { | 33 namespace JSC { |
| 34 | 34 |
| 35 class FunctionBodyNode; | 35 class FunctionBodyNode; |
| 36 class FunctionPrototype; | 36 class FunctionPrototype; |
| 37 class JSActivation; | 37 class JSActivation; |
| 38 class JSGlobalObject; | 38 class JSGlobalObject; |
| 39 | 39 |
| 40 class JSFunction : public InternalFunction { | 40 class JSFunction : public InternalFunction { |
| 41 friend class Interpreter; | |
| 42 friend class JIT; | 41 friend class JIT; |
| 43 friend class JITStubs; | 42 friend class JITStubs; |
| 43 friend class VPtrSet; |
| 44 | 44 |
| 45 typedef InternalFunction Base; | 45 typedef InternalFunction Base; |
| 46 | 46 |
| 47 JSFunction(PassRefPtr<Structure> structure) | 47 JSFunction(PassRefPtr<Structure> structure) |
| 48 : InternalFunction(structure) | 48 : InternalFunction(structure) |
| 49 , m_scopeChain(NoScopeChain()) | 49 , m_scopeChain(NoScopeChain()) |
| 50 { | 50 { |
| 51 } | 51 } |
| 52 | 52 |
| 53 public: | 53 public: |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 { | 97 { |
| 98 ASSERT(asObject(value)->inherits(&JSFunction::info)); | 98 ASSERT(asObject(value)->inherits(&JSFunction::info)); |
| 99 return static_cast<JSFunction*>(asObject(value)); | 99 return static_cast<JSFunction*>(asObject(value)); |
| 100 } | 100 } |
| 101 | 101 |
| 102 } // namespace JSC | 102 } // namespace JSC |
| 103 | 103 |
| 104 #endif // JSFunction_h | 104 #endif // JSFunction_h |
| 105 | 105 |
| 106 | 106 |
| OLD | NEW |