Chromium Code Reviews| 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 6715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6726 // Returns false if an exception occurred during instantiation, true | 6726 // Returns false if an exception occurred during instantiation, true |
| 6727 // otherwise. (In the case where the callback throws an exception, that | 6727 // otherwise. (In the case where the callback throws an exception, that |
| 6728 // exception is propagated.) | 6728 // exception is propagated.) |
| 6729 static MUST_USE_RESULT bool Instantiate(Handle<Module> module, | 6729 static MUST_USE_RESULT bool Instantiate(Handle<Module> module, |
| 6730 v8::Local<v8::Context> context, | 6730 v8::Local<v8::Context> context, |
| 6731 v8::Module::ResolveCallback callback); | 6731 v8::Module::ResolveCallback callback); |
| 6732 | 6732 |
| 6733 // Implementation of spec operation ModuleEvaluation. | 6733 // Implementation of spec operation ModuleEvaluation. |
| 6734 static MUST_USE_RESULT MaybeHandle<Object> Evaluate(Handle<Module> module); | 6734 static MUST_USE_RESULT MaybeHandle<Object> Evaluate(Handle<Module> module); |
| 6735 | 6735 |
| 6736 static Cell* GetCell(Module* module, int cell_index); | |
|
Michael Starzinger
2017/04/27 09:51:02
nit: Since this is an unhandlified method, I would
| |
| 6736 static Handle<Object> LoadVariable(Handle<Module> module, int cell_index); | 6737 static Handle<Object> LoadVariable(Handle<Module> module, int cell_index); |
| 6737 static void StoreVariable(Handle<Module> module, int cell_index, | 6738 static void StoreVariable(Handle<Module> module, int cell_index, |
| 6738 Handle<Object> value); | 6739 Handle<Object> value); |
| 6739 | 6740 |
| 6740 // Get the namespace object for [module_request] of [module]. If it doesn't | 6741 // Get the namespace object for [module_request] of [module]. If it doesn't |
| 6741 // exist yet, it is created. | 6742 // exist yet, it is created. |
| 6742 static Handle<JSModuleNamespace> GetModuleNamespace(Handle<Module> module, | 6743 static Handle<JSModuleNamespace> GetModuleNamespace(Handle<Module> module, |
| 6743 int module_request); | 6744 int module_request); |
| 6744 | 6745 |
| 6745 // Get the namespace object for [module]. If it doesn't exist yet, it is | 6746 // Get the namespace object for [module]. If it doesn't exist yet, it is |
| (...skipping 3555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 10301 } | 10302 } |
| 10302 }; | 10303 }; |
| 10303 | 10304 |
| 10304 | 10305 |
| 10305 } // NOLINT, false-positive due to second-order macros. | 10306 } // NOLINT, false-positive due to second-order macros. |
| 10306 } // NOLINT, false-positive due to second-order macros. | 10307 } // NOLINT, false-positive due to second-order macros. |
| 10307 | 10308 |
| 10308 #include "src/objects/object-macros-undef.h" | 10309 #include "src/objects/object-macros-undef.h" |
| 10309 | 10310 |
| 10310 #endif // V8_OBJECTS_H_ | 10311 #endif // V8_OBJECTS_H_ |
| OLD | NEW |