Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(664)

Side by Side Diff: src/lexer/even-more-experimental-scanner.cc

Issue 78463002: Experimental scanner: Remove the re2c version for real. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/lexer/experimental-scanner.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #include "func-name-inferrer.h" 47 #include "func-name-inferrer.h"
48 #include "messages.h" 48 #include "messages.h"
49 #include "parser.h" 49 #include "parser.h"
50 #include "platform.h" 50 #include "platform.h"
51 #include "preparser.h" 51 #include "preparser.h"
52 #include "runtime.h" 52 #include "runtime.h"
53 #include "scanner-character-streams.h" 53 #include "scanner-character-streams.h"
54 #include "scopeinfo.h" 54 #include "scopeinfo.h"
55 #include "string-stream.h" 55 #include "string-stream.h"
56 56
57 #include "experimental-scanner.h"
58
59 using namespace v8::internal; 57 using namespace v8::internal;
60 58
61 namespace v8 { 59 namespace v8 {
62 namespace internal { 60 namespace internal {
63 61
64 const byte* ReadFile(const char* name, Isolate* isolate, 62 const byte* ReadFile(const char* name, Isolate* isolate,
65 int* size, int repeat) { 63 int* size, int repeat) {
66 FILE* file = fopen(name, "rb"); 64 FILE* file = fopen(name, "rb");
67 *size = 0; 65 *size = 0;
68 if (file == NULL) return NULL; 66 if (file == NULL) return NULL;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 } 127 }
130 128
131 129
132 bool EvenMoreExperimentalScanner::ValidIdentifierStart() { 130 bool EvenMoreExperimentalScanner::ValidIdentifierStart() {
133 return unicode_cache_->IsIdentifierStart(ScanHexNumber(4)); 131 return unicode_cache_->IsIdentifierStart(ScanHexNumber(4));
134 } 132 }
135 133
136 134
137 } 135 }
138 } 136 }
OLDNEW
« no previous file with comments | « no previous file | src/lexer/experimental-scanner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698