OLD | NEW |
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 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/assert-scope.h" | 10 #include "src/assert-scope.h" |
(...skipping 6477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6488 }; | 6488 }; |
6489 | 6489 |
6490 | 6490 |
6491 // Script describes a script which has been added to the VM. | 6491 // Script describes a script which has been added to the VM. |
6492 class Script: public Struct { | 6492 class Script: public Struct { |
6493 public: | 6493 public: |
6494 // Script types. | 6494 // Script types. |
6495 enum Type { | 6495 enum Type { |
6496 TYPE_NATIVE = 0, | 6496 TYPE_NATIVE = 0, |
6497 TYPE_EXTENSION = 1, | 6497 TYPE_EXTENSION = 1, |
6498 TYPE_NORMAL = 2 | 6498 TYPE_NORMAL = 2, |
| 6499 TYPE_WASM = 3 |
6499 }; | 6500 }; |
6500 | 6501 |
6501 // Script compilation types. | 6502 // Script compilation types. |
6502 enum CompilationType { | 6503 enum CompilationType { |
6503 COMPILATION_TYPE_HOST = 0, | 6504 COMPILATION_TYPE_HOST = 0, |
6504 COMPILATION_TYPE_EVAL = 1 | 6505 COMPILATION_TYPE_EVAL = 1 |
6505 }; | 6506 }; |
6506 | 6507 |
6507 // Script compilation state. | 6508 // Script compilation state. |
6508 enum CompilationState { | 6509 enum CompilationState { |
(...skipping 4413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10922 } | 10923 } |
10923 return value; | 10924 return value; |
10924 } | 10925 } |
10925 }; | 10926 }; |
10926 | 10927 |
10927 | 10928 |
10928 } // NOLINT, false-positive due to second-order macros. | 10929 } // NOLINT, false-positive due to second-order macros. |
10929 } // NOLINT, false-positive due to second-order macros. | 10930 } // NOLINT, false-positive due to second-order macros. |
10930 | 10931 |
10931 #endif // V8_OBJECTS_H_ | 10932 #endif // V8_OBJECTS_H_ |
OLD | NEW |