| 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 6366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6377 }; | 6377 }; |
| 6378 | 6378 |
| 6379 | 6379 |
| 6380 // Script describes a script which has been added to the VM. | 6380 // Script describes a script which has been added to the VM. |
| 6381 class Script: public Struct { | 6381 class Script: public Struct { |
| 6382 public: | 6382 public: |
| 6383 // Script types. | 6383 // Script types. |
| 6384 enum Type { | 6384 enum Type { |
| 6385 TYPE_NATIVE = 0, | 6385 TYPE_NATIVE = 0, |
| 6386 TYPE_EXTENSION = 1, | 6386 TYPE_EXTENSION = 1, |
| 6387 TYPE_NORMAL = 2 | 6387 TYPE_NORMAL = 2, |
| 6388 TYPE_WASM = 3 |
| 6388 }; | 6389 }; |
| 6389 | 6390 |
| 6390 // Script compilation types. | 6391 // Script compilation types. |
| 6391 enum CompilationType { | 6392 enum CompilationType { |
| 6392 COMPILATION_TYPE_HOST = 0, | 6393 COMPILATION_TYPE_HOST = 0, |
| 6393 COMPILATION_TYPE_EVAL = 1 | 6394 COMPILATION_TYPE_EVAL = 1 |
| 6394 }; | 6395 }; |
| 6395 | 6396 |
| 6396 // Script compilation state. | 6397 // Script compilation state. |
| 6397 enum CompilationState { | 6398 enum CompilationState { |
| (...skipping 4427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10825 } | 10826 } |
| 10826 return value; | 10827 return value; |
| 10827 } | 10828 } |
| 10828 }; | 10829 }; |
| 10829 | 10830 |
| 10830 | 10831 |
| 10831 } // NOLINT, false-positive due to second-order macros. | 10832 } // NOLINT, false-positive due to second-order macros. |
| 10832 } // NOLINT, false-positive due to second-order macros. | 10833 } // NOLINT, false-positive due to second-order macros. |
| 10833 | 10834 |
| 10834 #endif // V8_OBJECTS_H_ | 10835 #endif // V8_OBJECTS_H_ |
| OLD | NEW |