Changeset 21019 in webkit for trunk/JavaScriptCore/kjs/Context.cpp
- Timestamp:
- Apr 22, 2007, 9:16:42 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/Context.cpp
r14834 r21019 1 // -*- c-basic-offset: 2-*-1 // -*- mode: c++; c-basic-offset: 4 -*- 2 2 /* 3 3 * This file is part of the KDE libraries 4 4 * Copyright (C) 1999-2001 Harri Porten ([email protected]) 5 5 * Copyright (C) 2001 Peter Kelly ([email protected]) 6 * Copyright (C) 2003, 2006 Apple Computer, Inc.6 * Copyright (C) 2003, 2006-2007 Apple Computer, Inc. 7 7 * 8 8 * This library is free software; you can redistribute it and/or … … 85 85 { 86 86 m_interpreter->setContext(m_callingContext); 87 88 // The arguments list is only needed to potentially create the arguments object, 89 // which isn't accessible from nested scopes so we can discard the list as soon 90 // as the function is done running. 91 // This prevents lists of Lists from building up, waiting to be garbage collected 92 ActivationImp* activation = static_cast<ActivationImp*>(m_activation); 93 if (activation) 94 activation->releaseArguments(); 87 95 } 88 96
Note:
See TracChangeset
for help on using the changeset viewer.