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

Side by Side Diff: src/parsing/scanner.cc

Issue 2096933002: Remove all harmony runtime flags which shipped in M51 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review comments Created 4 years, 5 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
« no previous file with comments | « src/parsing/pattern-rewriter.cc ('k') | src/runtime/runtime-object.cc » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Features shared by parsing and pre-parsing scanners. 5 // Features shared by parsing and pre-parsing scanners.
6 6
7 #include "src/parsing/scanner.h" 7 #include "src/parsing/scanner.h"
8 8
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 1435 matching lines...) Expand 10 before | Expand all | Expand 10 after
1446 case 'g': 1446 case 'g':
1447 flag = RegExp::kGlobal; 1447 flag = RegExp::kGlobal;
1448 break; 1448 break;
1449 case 'i': 1449 case 'i':
1450 flag = RegExp::kIgnoreCase; 1450 flag = RegExp::kIgnoreCase;
1451 break; 1451 break;
1452 case 'm': 1452 case 'm':
1453 flag = RegExp::kMultiline; 1453 flag = RegExp::kMultiline;
1454 break; 1454 break;
1455 case 'u': 1455 case 'u':
1456 if (!FLAG_harmony_unicode_regexps) return Nothing<RegExp::Flags>();
1457 flag = RegExp::kUnicode; 1456 flag = RegExp::kUnicode;
1458 break; 1457 break;
1459 case 'y': 1458 case 'y':
1460 flag = RegExp::kSticky; 1459 flag = RegExp::kSticky;
1461 break; 1460 break;
1462 default: 1461 default:
1463 return Nothing<RegExp::Flags>(); 1462 return Nothing<RegExp::Flags>();
1464 } 1463 }
1465 if (flags & flag) return Nothing<RegExp::Flags>(); 1464 if (flags & flag) return Nothing<RegExp::Flags>();
1466 AddLiteralCharAdvance(); 1465 AddLiteralCharAdvance();
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1706 backing_store_.Add(static_cast<uint8_t>((one_byte_length >> 7) | 0x80u)); 1705 backing_store_.Add(static_cast<uint8_t>((one_byte_length >> 7) | 0x80u));
1707 } 1706 }
1708 backing_store_.Add(static_cast<uint8_t>(one_byte_length & 0x7f)); 1707 backing_store_.Add(static_cast<uint8_t>(one_byte_length & 0x7f));
1709 1708
1710 backing_store_.AddBlock(bytes); 1709 backing_store_.AddBlock(bytes);
1711 return backing_store_.EndSequence().start(); 1710 return backing_store_.EndSequence().start();
1712 } 1711 }
1713 1712
1714 } // namespace internal 1713 } // namespace internal
1715 } // namespace v8 1714 } // namespace v8
OLDNEW
« no previous file with comments | « src/parsing/pattern-rewriter.cc ('k') | src/runtime/runtime-object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698