Reviewers: dcarney,
Message:
Committed patchset #1 manually as r18028.
Description:
Experimental parser: add a test file for unicode newlines.
[email protected]
BUG=
Committed: https://code.google.com/p/v8/source/detail?r=18028
Please review this at https://codereview.chromium.org/82733006/
SVN Base: https://v8.googlecode.com/svn/branches/experimental/parser
Affected files (+19, -21 lines):
A + test/lexer/cornercases/utf-endlines.js
Index: test/lexer/cornercases/utf-endlines.js
diff --git a/src/hydrogen-check-elimination.h
b/test/lexer/cornercases/utf-endlines.js
similarity index 68%
copy from src/hydrogen-check-elimination.h
copy to test/lexer/cornercases/utf-endlines.js
index
fa01964f6faf091c3f2504b6d2cfe416e0a09b16..8ac1ee2fa895d691403ed0f6865a7dfd312b9a8c
100644
--- a/src/hydrogen-check-elimination.h
+++ b/test/lexer/cornercases/utf-endlines.js
@@ -25,28 +25,31 @@
// (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_HYDROGEN_CHECK_ELIMINATION_H_
-#define V8_HYDROGEN_CHECK_ELIMINATION_H_
+// The "-->" at the beginning of a line is a weird SpiderMonkey
compatibility
+// hack.
-#include "hydrogen.h"
+// This file tests if it's recognized after various Unicode new line
markers:
-namespace v8 {
-namespace internal {
+"Line feed":
+--> break
+// Vertical tab is not recognized as a newline.
+"Vertical tab": --> case
-// Remove CheckMaps instructions through flow- and branch-sensitive
analysis.
-class HCheckEliminationPhase : public HPhase {
- public:
- explicit HCheckEliminationPhase(HGraph* graph)
- : HPhase("H_Check Elimination", graph) { }
+// Form feed is not recognized as a newline.
+"Form feed":--> catch
- void Run();
+"Carriage return":
--> const
- private:
- void EliminateLocalChecks(HBasicBlock* block);
-};
+"Carriage return and line feed:"
+--> continue
+// Next line is not regonized as a newline, instead it's recognized as an
identifier.
+"Next line":…
+--> debugger
-} } // namespace v8::internal
+// Line separator is not recognized as a newline, instead it's ILLEGAL.
+//"Line separator":
--> default
-#endif // V8_HYDROGEN_CHECK_ELIMINATION_H_
+// Paragraph separator is not recognized as a newline, instead it's
ILLEGAL.
+//"Paragraph separator":
--> delete
\ No newline at end of file
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.