arai-a / smoosh-sync

Automation to make jsparagus and SpiderMonkey bytecode in sync
2 stars 0 forks source link

/js/src/frontend/Stencil.cpp and one more file have been updated (ff723d87) #330

Open github-actions[bot] opened 1 year ago

github-actions[bot] commented 1 year ago

Files

Changesets

Diffs

/js/src/frontend/Stencil.cpp

--- 20edf5ff2283dfc74fdf23f9b6e2f5100c7354d4/js/src/frontend/Stencil.cpp
+++ ff723d87099783cccd9b6e6def5d03e4effd3bf8/js/src/frontend/Stencil.cpp
@@ -12,19 +12,18 @@
 #include "mozilla/OperatorNewExtensions.h"  // mozilla::KnownNotNull
 #include "mozilla/PodOperations.h"          // mozilla::PodCopy
 #include "mozilla/RefPtr.h"                 // RefPtr
 #include "mozilla/ScopeExit.h"              // mozilla::ScopeExit
 #include "mozilla/Sprintf.h"                // SprintfLiteral

 #include "ds/LifoAlloc.h"               // LifoAlloc
 #include "frontend/AbstractScopePtr.h"  // ScopeIndex
-#include "frontend/BytecodeCompilation.h"  // CanLazilyParse, CompileGlobalScriptToStencil
-#include "frontend/BytecodeCompiler.h"    // ParseModuleToStencil
-#include "frontend/BytecodeSection.h"     // EmitScriptThingsVector
+#include "frontend/BytecodeCompiler.h"  // CompileGlobalScriptToStencil, InstantiateStencils, CanLazilyParse, ParseModuleToStencil
+#include "frontend/BytecodeSection.h"   // EmitScriptThingsVector
 #include "frontend/CompilationStencil.h"  // CompilationStencil, CompilationState, ExtensibleCompilationStencil, CompilationGCOutput, CompilationStencilMerger
 #include "frontend/FrontendContext.h"
 #include "frontend/NameAnalysisTypes.h"  // EnvironmentCoordinate
 #include "frontend/ScopeBindingCache.h"  // ScopeBindingCache
 #include "frontend/SharedContext.h"
 #include "frontend/StencilXdr.h"        // XDRStencilEncoder, XDRStencilDecoder
 #include "gc/AllocKind.h"               // gc::AllocKind
 #include "gc/Tracer.h"                  // TraceNullableRoot

/js/src/vm/BytecodeUtil.cpp

--- 3b2a67b67a5f54e55f8c8ca7cf26eb760d031f0d/js/src/vm/BytecodeUtil.cpp
+++ 411b1267d7cf64ac54e44a456972029e2811e5d8/js/src/vm/BytecodeUtil.cpp
@@ -18,29 +18,29 @@

 #include <inttypes.h>
 #include <stdio.h>
 #include <string.h>

 #include "jsapi.h"
 #include "jstypes.h"

-#include "frontend/BytecodeCompiler.h"
 #include "frontend/SourceNotes.h"  // SrcNote, SrcNoteType, SrcNoteIterator
 #include "gc/PublicIterators.h"
 #include "jit/IonScript.h"  // IonBlockCounts
 #include "js/CharacterEncoding.h"
 #include "js/experimental/CodeCoverage.h"
 #include "js/experimental/PCCountProfiling.h"  // JS::{Start,Stop}PCCountProfiling, JS::PurgePCCounts, JS::GetPCCountScript{Count,Summary,Contents}
 #include "js/friend/DumpFunctions.h"           // js::DumpPC, js::DumpScript
 #include "js/friend/ErrorMessages.h"           // js::GetErrorMessage, JSMSG_*
 #include "js/Printer.h"
 #include "js/Printf.h"
 #include "js/Symbol.h"
 #include "util/DifferentialTesting.h"
+#include "util/Identifier.h"  // IsIdentifier
 #include "util/Memory.h"
 #include "util/Text.h"
 #include "vm/BuiltinObjectKind.h"
 #include "vm/BytecodeIterator.h"  // for AllBytecodesIterable
 #include "vm/BytecodeLocation.h"
 #include "vm/CodeCoverage.h"
 #include "vm/EnvironmentObject.h"
 #include "vm/FrameIter.h"  // js::{,Script}FrameIter
@@ -59,18 +59,16 @@
 #include "gc/GC-inl.h"
 #include "vm/BytecodeIterator-inl.h"
 #include "vm/JSContext-inl.h"
 #include "vm/JSScript-inl.h"
 #include "vm/Realm-inl.h"

 using namespace js;

-using js::frontend::IsIdentifier;
-
 /*
  * Index limit must stay within 32 bits.
  */
 static_assert(sizeof(uint32_t) * CHAR_BIT >= INDEX_LIMIT_LOG2 + 1);

 const JSCodeSpec js::CodeSpecTable[] = {
 #define MAKE_CODESPEC(op, op_snake, token, length, nuses, ndefs, format) \
   {length, nuses, ndefs, format},