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

Side by Side Diff: src/globals.h

Issue 939303002: Replace is_reference_error bool argument with ParseErrorType enum (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Marja comments addressed Created 5 years, 10 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 | « no previous file | src/parser.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_GLOBALS_H_ 5 #ifndef V8_GLOBALS_H_
6 #define V8_GLOBALS_H_ 6 #define V8_GLOBALS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 // immediately initialized upon creation (kCreatedInitialized). 789 // immediately initialized upon creation (kCreatedInitialized).
790 enum InitializationFlag { 790 enum InitializationFlag {
791 kNeedsInitialization, 791 kNeedsInitialization,
792 kCreatedInitialized 792 kCreatedInitialized
793 }; 793 };
794 794
795 795
796 enum MaybeAssignedFlag { kNotAssigned, kMaybeAssigned }; 796 enum MaybeAssignedFlag { kNotAssigned, kMaybeAssigned };
797 797
798 798
799 // Serialized in PreparseData, so numeric values should not be changed.
800 enum ParseErrorType { kSyntaxError = 0, kReferenceError = 1 };
801
802
799 enum ClearExceptionFlag { 803 enum ClearExceptionFlag {
800 KEEP_EXCEPTION, 804 KEEP_EXCEPTION,
801 CLEAR_EXCEPTION 805 CLEAR_EXCEPTION
802 }; 806 };
803 807
804 808
805 enum MinusZeroMode { 809 enum MinusZeroMode {
806 TREAT_MINUS_ZERO_AS_ZERO, 810 TREAT_MINUS_ZERO_AS_ZERO,
807 FAIL_ON_MINUS_ZERO 811 FAIL_ON_MINUS_ZERO
808 }; 812 };
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 DCHECK(IsValidFunctionKind(kind)); 890 DCHECK(IsValidFunctionKind(kind));
887 return kind & 891 return kind &
888 (FunctionKind::kBaseConstructor | FunctionKind::kSubclassConstructor | 892 (FunctionKind::kBaseConstructor | FunctionKind::kSubclassConstructor |
889 FunctionKind::kDefaultConstructor); 893 FunctionKind::kDefaultConstructor);
890 } 894 }
891 } } // namespace v8::internal 895 } } // namespace v8::internal
892 896
893 namespace i = v8::internal; 897 namespace i = v8::internal;
894 898
895 #endif // V8_GLOBALS_H_ 899 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « no previous file | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698