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

Side by Side Diff: src/globals.h

Issue 2441543005: [full-codegen] Eliminate unnecessary hole checks for stores (Closed)
Patch Set: Merge and fix modules Created 4 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
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/interpreter/bytecode-generator.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 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 // V8 allows const declarations in global code with distinct creation and 1042 // V8 allows const declarations in global code with distinct creation and
1043 // initialization steps which are represented by non-writable properties in the 1043 // initialization steps which are represented by non-writable properties in the
1044 // global object. As a result also these bindings need to be checked for 1044 // global object. As a result also these bindings need to be checked for
1045 // initialization. 1045 // initialization.
1046 // 1046 //
1047 // The following enum specifies a flag that indicates if the binding needs a 1047 // The following enum specifies a flag that indicates if the binding needs a
1048 // distinct initialization step (kNeedsInitialization) or if the binding is 1048 // distinct initialization step (kNeedsInitialization) or if the binding is
1049 // immediately initialized upon creation (kCreatedInitialized). 1049 // immediately initialized upon creation (kCreatedInitialized).
1050 enum InitializationFlag : uint8_t { kNeedsInitialization, kCreatedInitialized }; 1050 enum InitializationFlag : uint8_t { kNeedsInitialization, kCreatedInitialized };
1051 1051
1052 enum class HoleCheckMode { kRequired, kElided };
1053
1052 enum MaybeAssignedFlag : uint8_t { kNotAssigned, kMaybeAssigned }; 1054 enum MaybeAssignedFlag : uint8_t { kNotAssigned, kMaybeAssigned };
1053 1055
1054 // Serialized in PreparseData, so numeric values should not be changed. 1056 // Serialized in PreparseData, so numeric values should not be changed.
1055 enum ParseErrorType { kSyntaxError = 0, kReferenceError = 1 }; 1057 enum ParseErrorType { kSyntaxError = 0, kReferenceError = 1 };
1056 1058
1057 1059
1058 enum MinusZeroMode { 1060 enum MinusZeroMode {
1059 TREAT_MINUS_ZERO_AS_ZERO, 1061 TREAT_MINUS_ZERO_AS_ZERO,
1060 FAIL_ON_MINUS_ZERO 1062 FAIL_ON_MINUS_ZERO
1061 }; 1063 };
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1268 UNREACHABLE(); 1270 UNREACHABLE();
1269 return os; 1271 return os;
1270 } 1272 }
1271 1273
1272 } // namespace internal 1274 } // namespace internal
1273 } // namespace v8 1275 } // namespace v8
1274 1276
1275 namespace i = v8::internal; 1277 namespace i = v8::internal;
1276 1278
1277 #endif // V8_GLOBALS_H_ 1279 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/interpreter/bytecode-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698