Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: src/interpreter/bytecode-generator.h

Issue 2579973002: Don't compile inner functions when compiling via the dispatcher (Closed)
Patch Set: added comment Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/interpreter/bytecode-generator.h
diff --git a/src/interpreter/bytecode-generator.h b/src/interpreter/bytecode-generator.h
index fa86489f2dcb925d893734e54cdda61bb37f6ebb..a49328cdd10c2ff8eeee3c127fdae22e56486a66 100644
--- a/src/interpreter/bytecode-generator.h
+++ b/src/interpreter/bytecode-generator.h
@@ -15,6 +15,7 @@ namespace v8 {
namespace internal {
class CompilationInfo;
+enum class LazyCompilationMode;
namespace interpreter {
@@ -22,7 +23,7 @@ class LoopBuilder;
class BytecodeGenerator final : public AstVisitor<BytecodeGenerator> {
public:
- explicit BytecodeGenerator(CompilationInfo* info);
+ BytecodeGenerator(CompilationInfo* info, LazyCompilationMode mode);
void GenerateBytecode(uintptr_t stack_limit);
Handle<BytecodeArray> FinalizeBytecode(Isolate* isolate);
@@ -206,6 +207,7 @@ class BytecodeGenerator final : public AstVisitor<BytecodeGenerator> {
BytecodeArrayBuilder* builder_;
CompilationInfo* info_;
DeclarationScope* scope_;
+ LazyCompilationMode compilation_mode_;
GlobalDeclarationsBuilder* globals_builder_;
ZoneVector<GlobalDeclarationsBuilder*> global_declarations_;

Powered by Google App Engine
This is Rietveld 408576698