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

Side by Side Diff: src/objects.cc

Issue 1838563003: Remove --harmony-regexps flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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/js/regexp.js ('k') | src/parsing/scanner.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #include "src/objects.h" 5 #include "src/objects.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <iomanip> 8 #include <iomanip>
9 #include <sstream> 9 #include <sstream>
10 10
(...skipping 16763 matching lines...) Expand 10 before | Expand all | Expand 10 after
16774 flag = JSRegExp::kIgnoreCase; 16774 flag = JSRegExp::kIgnoreCase;
16775 break; 16775 break;
16776 case 'm': 16776 case 'm':
16777 flag = JSRegExp::kMultiline; 16777 flag = JSRegExp::kMultiline;
16778 break; 16778 break;
16779 case 'u': 16779 case 'u':
16780 if (!FLAG_harmony_unicode_regexps) return JSRegExp::Flags(0); 16780 if (!FLAG_harmony_unicode_regexps) return JSRegExp::Flags(0);
16781 flag = JSRegExp::kUnicode; 16781 flag = JSRegExp::kUnicode;
16782 break; 16782 break;
16783 case 'y': 16783 case 'y':
16784 if (!FLAG_harmony_regexps) return JSRegExp::Flags(0);
16785 flag = JSRegExp::kSticky; 16784 flag = JSRegExp::kSticky;
16786 break; 16785 break;
16787 default: 16786 default:
16788 return JSRegExp::Flags(0); 16787 return JSRegExp::Flags(0);
16789 } 16788 }
16790 // Duplicate flag. 16789 // Duplicate flag.
16791 if (value & flag) return JSRegExp::Flags(0); 16790 if (value & flag) return JSRegExp::Flags(0);
16792 value |= flag; 16791 value |= flag;
16793 } 16792 }
16794 *success = true; 16793 *success = true;
(...skipping 2965 matching lines...) Expand 10 before | Expand all | Expand 10 after
19760 if (cell->value() != *new_value) { 19759 if (cell->value() != *new_value) {
19761 cell->set_value(*new_value); 19760 cell->set_value(*new_value);
19762 Isolate* isolate = cell->GetIsolate(); 19761 Isolate* isolate = cell->GetIsolate();
19763 cell->dependent_code()->DeoptimizeDependentCodeGroup( 19762 cell->dependent_code()->DeoptimizeDependentCodeGroup(
19764 isolate, DependentCode::kPropertyCellChangedGroup); 19763 isolate, DependentCode::kPropertyCellChangedGroup);
19765 } 19764 }
19766 } 19765 }
19767 19766
19768 } // namespace internal 19767 } // namespace internal
19769 } // namespace v8 19768 } // namespace v8
OLDNEW
« no previous file with comments | « src/js/regexp.js ('k') | src/parsing/scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698