Skip to content

Commit

Permalink
Fix minor defect
Browse files Browse the repository at this point in the history
Signed-off-by: HyukWoo Park <[email protected]>
  • Loading branch information
clover2123 authored and ksh8281 committed Jul 14, 2023
1 parent 4913754 commit 7b20753
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/es-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ jobs:
CC=clang CXX=clang++ cmake -H. -Bout/release -DESCARGOT_ARCH=aarch64 -DESCARGOT_HOST=linux -DESCARGOT_MODE=release -DESCARGOT_TEMPORAL=ON -DESCARGOT_TCO=ON -DESCARGOT_TEST=ON -DESCARGOT_OUTPUT=shell -GNinja
ninja -Cout/release
python3 ./tools/run-tests.py --engine="./out/release/escargot" new-es
test-on-windows-clang-cl:
runs-on: windows-2022
strategy:
Expand Down
1 change: 0 additions & 1 deletion src/api/EscargotPublic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

#include "Escargot.h"
#include <cstdlib> // size_t
#include "EscargotPublic.h"
#include "parser/ast/Node.h"
#include "parser/Script.h"
Expand Down
1 change: 1 addition & 0 deletions src/api/EscargotPublic.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <cstdlib>
#include <cstddef>
#include <cstring>
#include <cstdint>
#include <string>
#include <vector>
#include <functional>
Expand Down
2 changes: 0 additions & 2 deletions src/builtins/BuiltinAtomics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -494,10 +494,8 @@ static Value doWait(ExecutionState& state, bool isAsync, const Value& typedArray
}
return Value(state.context()->staticStrings().lazyTimedOut().string());
}
return Value();
}


static Value builtinAtomicsWait(ExecutionState& state, Value thisValue, size_t argc, Value* argv, Optional<Object*> newTarget)
{
return doWait(state, false, argv[0], argv[1], argv[2], argv[3]);
Expand Down
2 changes: 0 additions & 2 deletions src/heap/Heap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
#include "Heap.h"
#include "LeakChecker.h"

#include <stdlib.h>

namespace Escargot {

void Heap::initialize()
Expand Down
2 changes: 1 addition & 1 deletion src/interpreter/ByteCodeInterpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3012,7 +3012,7 @@ NEVER_INLINE Value InterpreterSlowPath::tryOperation(ExecutionState*& state, siz
Debugger::updateStopState(state->context()->debugger(), state, newState);
#endif /* ESCARGOT_DEBUGGER */

if (!LIKELY(inPauserResumeProcess)) {
if (LIKELY(!inPauserResumeProcess)) {
if (!state->ensureRareData()->m_controlFlowRecord) {
state->ensureRareData()->m_controlFlowRecord = new ControlFlowRecordVector();
}
Expand Down
6 changes: 6 additions & 0 deletions src/runtime/ExecutionState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ ExecutionState::ExecutionState()
, m_onTry(false)
, m_onCatch(false)
, m_onFinally(false)
#if defined(ENABLE_TCO)
, m_initTCO(false)
#endif
, m_argc(0)
, m_argv(nullptr)
{
Expand All @@ -67,6 +70,9 @@ ExecutionState::ExecutionState(Context* context)
, m_onTry(false)
, m_onCatch(false)
, m_onFinally(false)
#if defined(ENABLE_TCO)
, m_initTCO(false)
#endif
, m_argc(0)
, m_argv(nullptr)
{
Expand Down
1 change: 0 additions & 1 deletion third_party/libbf/libbf.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
*/
#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
#include <math.h>
#include <string.h>
#include <assert.h>
Expand Down

0 comments on commit 7b20753

Please sign in to comment.