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 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 7863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7874 private: | 7874 private: |
7875 DISALLOW_IMPLICIT_CONSTRUCTORS(JSGeneratorObject); | 7875 DISALLOW_IMPLICIT_CONSTRUCTORS(JSGeneratorObject); |
7876 }; | 7876 }; |
7877 | 7877 |
7878 // When importing a module namespace (import * as foo from "bar"), a | 7878 // When importing a module namespace (import * as foo from "bar"), a |
7879 // JSModuleNamespace object (representing module "bar") is created and bound to | 7879 // JSModuleNamespace object (representing module "bar") is created and bound to |
7880 // the declared variable (foo). A module can have at most one namespace object. | 7880 // the declared variable (foo). A module can have at most one namespace object. |
7881 class JSModuleNamespace : public JSObject { | 7881 class JSModuleNamespace : public JSObject { |
7882 public: | 7882 public: |
7883 DECLARE_CAST(JSModuleNamespace) | 7883 DECLARE_CAST(JSModuleNamespace) |
| 7884 DECLARE_PRINTER(JSModuleNamespace) |
7884 DECLARE_VERIFIER(JSModuleNamespace) | 7885 DECLARE_VERIFIER(JSModuleNamespace) |
7885 | 7886 |
7886 // The actual module whose namespace is being represented. | 7887 // The actual module whose namespace is being represented. |
7887 DECL_ACCESSORS(module, Module) | 7888 DECL_ACCESSORS(module, Module) |
7888 | 7889 |
7889 // Retrieve the value exported by [module] under the given [name]. If there is | 7890 // Retrieve the value exported by [module] under the given [name]. If there is |
7890 // no such export, return Just(undefined). If the export is uninitialized, | 7891 // no such export, return Just(undefined). If the export is uninitialized, |
7891 // schedule an exception and return Nothing. | 7892 // schedule an exception and return Nothing. |
7892 MUST_USE_RESULT MaybeHandle<Object> GetExport(Handle<String> name); | 7893 MUST_USE_RESULT MaybeHandle<Object> GetExport(Handle<String> name); |
7893 | 7894 |
(...skipping 3556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11450 } | 11451 } |
11451 return value; | 11452 return value; |
11452 } | 11453 } |
11453 }; | 11454 }; |
11454 | 11455 |
11455 | 11456 |
11456 } // NOLINT, false-positive due to second-order macros. | 11457 } // NOLINT, false-positive due to second-order macros. |
11457 } // NOLINT, false-positive due to second-order macros. | 11458 } // NOLINT, false-positive due to second-order macros. |
11458 | 11459 |
11459 #endif // V8_OBJECTS_H_ | 11460 #endif // V8_OBJECTS_H_ |
OLD | NEW |