Author: [EMAIL PROTECTED] Date: Sun Sep 7 23:58:13 2008 New Revision: 188
Added: changes/[EMAIL PROTECTED]/fix-issues-28-30/bleeding_edge/ - copied from r184, /branches/bleeding_edge/ Modified: changes/[EMAIL PROTECTED]/fix-issues-28-30/bleeding_edge/include/v8-debug.h changes/[EMAIL PROTECTED]/fix-issues-28-30/bleeding_edge/include/v8.h changes/[EMAIL PROTECTED]/fix-issues-28-30/bleeding_edge/src/api.cc Log: Fix issues 28 and 30 by changed the header guard to V8_H_ and including HandleScope::ZapRange in release mode. Modified: changes/[EMAIL PROTECTED]/fix-issues-28-30/bleeding_edge/include/v8-debug.h ============================================================================== --- /branches/bleeding_edge/include/v8-debug.h (original) +++ changes/[EMAIL PROTECTED]/fix-issues-28-30/bleeding_edge/include/v8-debug.h Sun Sep 7 23:58:13 2008 @@ -25,8 +25,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -#ifndef _V8_DEBUG -#define _V8_DEBUG +#ifndef V8_DEBUG_H_ +#define V8_DEBUG_H_ #include "v8.h" @@ -140,4 +140,4 @@ #undef EXPORT -#endif // _V8_DEBUG +#endif // ifndef V8_DEBUG_H_ Modified: changes/[EMAIL PROTECTED]/fix-issues-28-30/bleeding_edge/include/v8.h ============================================================================== --- /branches/bleeding_edge/include/v8.h (original) +++ changes/[EMAIL PROTECTED]/fix-issues-28-30/bleeding_edge/include/v8.h Sun Sep 7 23:58:13 2008 @@ -35,8 +35,8 @@ * For other documentation see http://code.google.com/apis/v8/ */ -#ifndef _V8 -#define _V8 +#ifndef V8_H_ +#define V8_H_ #include <stdio.h> @@ -461,10 +461,8 @@ /** Deallocates any extensions used by the current scope.*/ static void DeleteExtensions(); -#ifdef DEBUG // Zaps the handles in the half-open interval [start, end). static void ZapRange(void** start, void** end); -#endif friend class ImplementationUtilities; }; @@ -2311,4 +2309,4 @@ #undef TYPE_CHECK -#endif // _V8 +#endif // ifndef V8_H_ Modified: changes/[EMAIL PROTECTED]/fix-issues-28-30/bleeding_edge/src/api.cc ============================================================================== --- /branches/bleeding_edge/src/api.cc (original) +++ changes/[EMAIL PROTECTED]/fix-issues-28-30/bleeding_edge/src/api.cc Sun Sep 7 23:58:13 2008 @@ -446,14 +446,12 @@ } -#ifdef DEBUG void HandleScope::ZapRange(void** start, void** end) { if (start == NULL) return; for (void** p = start; p < end; p++) { *p = reinterpret_cast<void*>(v8::internal::kHandleZapValue); } } -#endif void** v8::HandleScope::RawClose(void** value) { --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---