Pass const primitive values by value rather than reference (#115)

Signed-off-by: Daniella Barsony bella@inf.u-szeged.hu
This commit is contained in:
Daniella Barsony 2019-03-18 07:00:31 +01:00 committed by yichoi
commit 4afdf61b2b
21 changed files with 131 additions and 131 deletions

View file

@ -53,7 +53,7 @@ static Object* implicitClassConstructorCtor(ExecutionState& state, CodeBlock* co
#define ADD_PROGRAM_COUNTER(CodeType) programCounter += sizeof(CodeType);
ALWAYS_INLINE size_t jumpTo(char* codeBuffer, const size_t& jumpPosition)
ALWAYS_INLINE size_t jumpTo(char* codeBuffer, const size_t jumpPosition)
{
return (size_t)&codeBuffer[jumpPosition];
}