Reviewers: Rico,
Description:
Port revision 7531 to trunk.
Fixes building preparser as shared library.
Please review this at http://codereview.chromium.org/6816011/
SVN Base: https://v8.googlecode.com/svn/trunk
Affected files:
M include/v8-preparser.h
M src/version.cc
Index: include/v8-preparser.h
diff --git a/include/v8-preparser.h b/include/v8-preparser.h
index
7baac94e051fc27ff1ecec766c41e22ce349cec0..4d46bad728b1c9346ae0f284724fe935fc4e94b9
100644
--- a/include/v8-preparser.h
+++ b/include/v8-preparser.h
@@ -1,4 +1,4 @@
-// Copyright 2010 the V8 project authors. All rights reserved.
+// Copyright 2011 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
@@ -67,16 +67,16 @@
namespace v8 {
-class PreParserData {
+class V8EXPORT PreParserData {
public:
PreParserData(size_t size, const uint8_t* data)
: data_(data), size_(size) { }
// Create a PreParserData value where stack_overflow reports true.
static PreParserData StackOverflow() { return PreParserData(0, NULL); }
+
// Whether the pre-parser stopped due to a stack overflow.
// If this is the case, size() and data() should not be used.
-
bool stack_overflow() { return size_ == 0u; }
// The size of the data in bytes.
@@ -92,7 +92,7 @@ class PreParserData {
// Interface for a stream of Unicode characters.
-class UnicodeInputStream {
+class V8EXPORT UnicodeInputStream { // NOLINT - Thinks V8EXPORT is class
name.
public:
virtual ~UnicodeInputStream();
Index: src/version.cc
diff --git a/src/version.cc b/src/version.cc
index
30822761deba21ec3f0190832d842073724c2f6b..eb9f50886e2740f595ac958a67499cf4744cf928
100644
--- a/src/version.cc
+++ b/src/version.cc
@@ -35,7 +35,7 @@
#define MAJOR_VERSION 3
#define MINOR_VERSION 2
#define BUILD_NUMBER 8
-#define PATCH_LEVEL 1
+#define PATCH_LEVEL 2
// Use 1 for candidates and 0 otherwise.
// (Boolean macro values are not supported by all preprocessors.)
#define IS_CANDIDATE_VERSION 0
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev