Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 522 enum Executability { NOT_EXECUTABLE, EXECUTABLE }; | 522 enum Executability { NOT_EXECUTABLE, EXECUTABLE }; |
| 523 | 523 |
| 524 enum VisitMode { | 524 enum VisitMode { |
| 525 VISIT_ALL, | 525 VISIT_ALL, |
| 526 VISIT_ALL_IN_SCAVENGE, | 526 VISIT_ALL_IN_SCAVENGE, |
| 527 VISIT_ALL_IN_SWEEP_NEWSPACE, | 527 VISIT_ALL_IN_SWEEP_NEWSPACE, |
| 528 VISIT_ONLY_STRONG | 528 VISIT_ONLY_STRONG |
| 529 }; | 529 }; |
| 530 | 530 |
| 531 // Flag indicating whether code is built into the VM (one of the natives files). | 531 // Flag indicating whether code is built into the VM (one of the natives files). |
| 532 enum NativesFlag { NOT_NATIVES_CODE, NATIVES_CODE }; | 532 enum NativesFlag { NOT_NATIVES_CODE, EXTENSION_CODE, NATIVES_CODE }; |
|
domenic
2016/02/05 19:00:27
Should it be EXTRAS_CODE?
| |
| 533 | 533 |
| 534 // JavaScript defines two kinds of 'nil'. | 534 // JavaScript defines two kinds of 'nil'. |
| 535 enum NilValue { kNullValue, kUndefinedValue }; | 535 enum NilValue { kNullValue, kUndefinedValue }; |
| 536 | 536 |
| 537 // ParseRestriction is used to restrict the set of valid statements in a | 537 // ParseRestriction is used to restrict the set of valid statements in a |
| 538 // unit of compilation. Restriction violations cause a syntax error. | 538 // unit of compilation. Restriction violations cause a syntax error. |
| 539 enum ParseRestriction { | 539 enum ParseRestriction { |
| 540 NO_PARSE_RESTRICTION, // All expressions are allowed. | 540 NO_PARSE_RESTRICTION, // All expressions are allowed. |
| 541 ONLY_SINGLE_FUNCTION_LITERAL // Only a single FunctionLiteral expression. | 541 ONLY_SINGLE_FUNCTION_LITERAL // Only a single FunctionLiteral expression. |
| 542 }; | 542 }; |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1065 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >> | 1065 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >> |
| 1066 kPointerSizeLog2); | 1066 kPointerSizeLog2); |
| 1067 } | 1067 } |
| 1068 | 1068 |
| 1069 } // namespace internal | 1069 } // namespace internal |
| 1070 } // namespace v8 | 1070 } // namespace v8 |
| 1071 | 1071 |
| 1072 namespace i = v8::internal; | 1072 namespace i = v8::internal; |
| 1073 | 1073 |
| 1074 #endif // V8_GLOBALS_H_ | 1074 #endif // V8_GLOBALS_H_ |
| OLD | NEW |