Author: [EMAIL PROTECTED]
Date: Mon Sep 8 00:01:12 2008
New Revision: 189
Removed:
changes/[EMAIL PROTECTED]/fix-issues-28-30/
Modified:
branches/bleeding_edge/include/v8-debug.h
branches/bleeding_edge/include/v8.h
branches/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: branches/bleeding_edge/include/v8-debug.h
==============================================================================
--- branches/bleeding_edge/include/v8-debug.h (original)
+++ branches/bleeding_edge/include/v8-debug.h Mon Sep 8 00:01:12 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 // V8_DEBUG_H_
Modified: branches/bleeding_edge/include/v8.h
==============================================================================
--- branches/bleeding_edge/include/v8.h (original)
+++ branches/bleeding_edge/include/v8.h Mon Sep 8 00:01:12 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 // V8_H_
Modified: branches/bleeding_edge/src/api.cc
==============================================================================
--- branches/bleeding_edge/src/api.cc (original)
+++ branches/bleeding_edge/src/api.cc Mon Sep 8 00:01:12 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
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---