/*
- * Copyright (C) 2012 Apple Inc. All rights reserved.
+ * Copyright (C) 2012, 2013 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
#ifndef LLIntThunks_h
#define LLIntThunks_h
-#include <wtf/Platform.h>
-
-#if ENABLE(LLINT)
-
#include "MacroAssemblerCodeRef.h"
namespace JSC {
-class JSGlobalData;
+class VM;
+struct ProtoCallFrame;
+
+extern "C" {
+ EncodedJSValue callToJavaScript(void*, VM*, ProtoCallFrame*);
+ EncodedJSValue callToNativeFunction(void*, VM*, ProtoCallFrame*);
+}
namespace LLInt {
-MacroAssemblerCodeRef functionForCallEntryThunkGenerator(JSGlobalData*);
-MacroAssemblerCodeRef functionForConstructEntryThunkGenerator(JSGlobalData*);
-MacroAssemblerCodeRef functionForCallArityCheckThunkGenerator(JSGlobalData*);
-MacroAssemblerCodeRef functionForConstructArityCheckThunkGenerator(JSGlobalData*);
-MacroAssemblerCodeRef evalEntryThunkGenerator(JSGlobalData*);
-MacroAssemblerCodeRef programEntryThunkGenerator(JSGlobalData*);
+MacroAssemblerCodeRef functionForCallEntryThunkGenerator(VM*);
+MacroAssemblerCodeRef functionForConstructEntryThunkGenerator(VM*);
+MacroAssemblerCodeRef functionForCallArityCheckThunkGenerator(VM*);
+MacroAssemblerCodeRef functionForConstructArityCheckThunkGenerator(VM*);
+MacroAssemblerCodeRef evalEntryThunkGenerator(VM*);
+MacroAssemblerCodeRef programEntryThunkGenerator(VM*);
} } // namespace JSC::LLInt
-#endif // ENABLE(LLINT)
-
#endif // LLIntThunks_h