Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix minor defects & code format of robin_map #1235

Merged
merged 2 commits into from
Jul 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading