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

Side by Side Diff: src/scanner.cc

Issue 183853025: Experimental parser: cleanup after bleeding_edge merge (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 years, 9 months 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 | « src/lexer/lexer-shell.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 17 matching lines...) Expand all
28 // Features shared by parsing and pre-parsing scanners. 28 // Features shared by parsing and pre-parsing scanners.
29 29
30 #include <cmath> 30 #include <cmath>
31 31
32 #include "scanner.h" 32 #include "scanner.h"
33 33
34 #include "../include/v8stdint.h" 34 #include "../include/v8stdint.h"
35 #include "char-predicates-inl.h" 35 #include "char-predicates-inl.h"
36 #include "conversions-inl.h" 36 #include "conversions-inl.h"
37 #include "list-inl.h" 37 #include "list-inl.h"
38 #include "v8.h" 38 #include "lexer/lexer.h"
39 39
40 namespace v8 { 40 namespace v8 {
41 namespace internal { 41 namespace internal {
42 42
43 43
44 #ifndef V8_USE_GENERATED_LEXER 44 #ifndef V8_USE_GENERATED_LEXER
45 // ---------------------------------------------------------------------------- 45 // ----------------------------------------------------------------------------
46 // Scanner 46 // Scanner
47 47
48 Scanner::Scanner(UnicodeCache* unicode_cache) 48 Scanner::Scanner(UnicodeCache* unicode_cache)
(...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after
1249 } 1249 }
1250 backing_store_.Add(static_cast<byte>((ascii_length >> 7) | 0x80u)); 1250 backing_store_.Add(static_cast<byte>((ascii_length >> 7) | 0x80u));
1251 } 1251 }
1252 backing_store_.Add(static_cast<byte>(ascii_length & 0x7f)); 1252 backing_store_.Add(static_cast<byte>(ascii_length & 0x7f));
1253 1253
1254 backing_store_.AddBlock(bytes); 1254 backing_store_.AddBlock(bytes);
1255 return backing_store_.EndSequence().start(); 1255 return backing_store_.EndSequence().start();
1256 } 1256 }
1257 1257
1258 } } // namespace v8::internal 1258 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/lexer/lexer-shell.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698