]> git.saurik.com Git - apple/javascriptcore.git/blame_incremental - llint/LLIntSlowPaths.h
JavaScriptCore-7600.1.4.16.1.tar.gz
[apple/javascriptcore.git] / llint / LLIntSlowPaths.h
... / ...
CommitLineData
1/*
2 * Copyright (C) 2011, 2014 Apple Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#ifndef LLIntSlowPaths_h
27#define LLIntSlowPaths_h
28
29#include "CommonSlowPaths.h"
30#include <wtf/StdLibExtras.h>
31
32namespace JSC {
33
34class ExecState;
35struct Instruction;
36struct ProtoCallFrame;
37
38namespace LLInt {
39
40extern "C" SlowPathReturnType llint_trace_operand(ExecState*, Instruction*, int fromWhere, int operand);
41extern "C" SlowPathReturnType llint_trace_value(ExecState*, Instruction*, int fromWhere, int operand);
42extern "C" void llint_write_barrier_slow(ExecState*, JSCell*) WTF_INTERNAL;
43
44#define LLINT_SLOW_PATH_DECL(name) \
45 extern "C" SlowPathReturnType llint_##name(ExecState* exec, Instruction* pc)
46
47#define LLINT_SLOW_PATH_HIDDEN_DECL(name) \
48 LLINT_SLOW_PATH_DECL(name) WTF_INTERNAL
49
50LLINT_SLOW_PATH_HIDDEN_DECL(trace_prologue);
51LLINT_SLOW_PATH_HIDDEN_DECL(trace_prologue_function_for_call);
52LLINT_SLOW_PATH_HIDDEN_DECL(trace_prologue_function_for_construct);
53LLINT_SLOW_PATH_HIDDEN_DECL(trace_arityCheck_for_call);
54LLINT_SLOW_PATH_HIDDEN_DECL(trace_arityCheck_for_construct);
55LLINT_SLOW_PATH_HIDDEN_DECL(trace);
56LLINT_SLOW_PATH_HIDDEN_DECL(special_trace);
57LLINT_SLOW_PATH_HIDDEN_DECL(entry_osr);
58LLINT_SLOW_PATH_HIDDEN_DECL(entry_osr_function_for_call);
59LLINT_SLOW_PATH_HIDDEN_DECL(entry_osr_function_for_construct);
60LLINT_SLOW_PATH_HIDDEN_DECL(entry_osr_function_for_call_arityCheck);
61LLINT_SLOW_PATH_HIDDEN_DECL(entry_osr_function_for_construct_arityCheck);
62LLINT_SLOW_PATH_HIDDEN_DECL(loop_osr);
63LLINT_SLOW_PATH_HIDDEN_DECL(replace);
64LLINT_SLOW_PATH_HIDDEN_DECL(stack_check);
65LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_create_activation);
66LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_new_object);
67LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_new_array);
68LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_new_array_with_size);
69LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_new_array_buffer);
70LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_new_regexp);
71LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_check_has_instance);
72LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_instanceof);
73LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_get_by_id);
74LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_get_arguments_length);
75LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_put_by_id);
76LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_del_by_id);
77LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_get_by_val);
78LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_get_argument_by_val);
79LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_get_by_pname);
80LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_put_by_val);
81LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_put_by_val_direct);
82LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_del_by_val);
83LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_put_by_index);
84LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_put_getter_setter);
85LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_jtrue);
86LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_jfalse);
87LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_jless);
88LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_jnless);
89LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_jgreater);
90LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_jngreater);
91LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_jlesseq);
92LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_jnlesseq);
93LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_jgreatereq);
94LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_jngreatereq);
95LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_switch_imm);
96LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_switch_char);
97LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_switch_string);
98LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_new_func);
99LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_new_func_exp);
100LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_call);
101LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_construct);
102LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_size_frame_for_varargs);
103LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_call_varargs);
104LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_construct_varargs);
105LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_call_eval);
106LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_tear_off_activation);
107LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_tear_off_arguments);
108LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_strcat);
109LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_to_primitive);
110LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_get_pnames);
111LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_next_pname);
112LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_push_with_scope);
113LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_pop_scope);
114LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_push_name_scope);
115LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_throw);
116LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_throw_static_error);
117LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_handle_watchdog_timer);
118LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_debug);
119LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_profile_will_call);
120LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_profile_did_call);
121LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_handle_exception);
122LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_resolve_scope);
123LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_get_from_scope);
124LLINT_SLOW_PATH_HIDDEN_DECL(slow_path_put_to_scope);
125extern "C" SlowPathReturnType llint_throw_stack_overflow_error(VM*, ProtoCallFrame*) WTF_INTERNAL;
126#if !ENABLE(JIT)
127extern "C" SlowPathReturnType llint_stack_check_at_vm_entry(VM*, Register*) WTF_INTERNAL;
128#endif
129extern "C" NO_RETURN_DUE_TO_CRASH void llint_crash() WTF_INTERNAL;
130
131} } // namespace JSC::LLInt
132
133#endif // LLIntSlowPaths_h
134