diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-09-14 16:29:47 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-09-14 16:29:47 +0200 |
commit | d0424a769059c84ae20beb3c217812792ea6726b (patch) | |
tree | 6f94a5c3db8c52c6694ee56498542a6c35417350 /Source/JavaScriptCore/llint/LowLevelInterpreter.h | |
parent | 88a04ac016f57c2d78e714682445dff2e7db4ade (diff) | |
download | qtwebkit-d0424a769059c84ae20beb3c217812792ea6726b.tar.gz |
Imported WebKit commit 37c5e5041d39a14ea0d429a77ebd352e4bd26516 (http://svn.webkit.org/repository/webkit/trunk@128608)
New snapshot that enables WebKit2 build on Windows (still some bugs) and allows for WebKit to be built with qmake && make
Diffstat (limited to 'Source/JavaScriptCore/llint/LowLevelInterpreter.h')
-rw-r--r-- | Source/JavaScriptCore/llint/LowLevelInterpreter.h | 33 |
1 files changed, 5 insertions, 28 deletions
diff --git a/Source/JavaScriptCore/llint/LowLevelInterpreter.h b/Source/JavaScriptCore/llint/LowLevelInterpreter.h index 76c950a8c..f45a07303 100644 --- a/Source/JavaScriptCore/llint/LowLevelInterpreter.h +++ b/Source/JavaScriptCore/llint/LowLevelInterpreter.h @@ -36,39 +36,16 @@ namespace JSC { -// The following is a minimal set of alias for the opcode names. This is needed +// The following is a set of alias for the opcode names. This is needed // because there is code (e.g. in GetByIdStatus.cpp and PutByIdStatus.cpp) // which refers to the opcodes expecting them to be prefixed with "llint_". // In the CLoop implementation, the 2 are equivalent. Hence, we set up this // alias here. -// -// Note: we don't just do this for all opcodes because we only need a few, -// and currently, FOR_EACH_OPCODE_ID() includes the llint and JIT opcode -// extensions which we definitely don't want to add an alias for. With some -// minor refactoring, we can use FOR_EACH_OPCODE_ID() to automatically -// generate a llint_ alias for all opcodes, but that is not needed at this -// time. -const OpcodeID llint_op_call = op_call; -const OpcodeID llint_op_call_eval = op_call_eval; -const OpcodeID llint_op_call_varargs = op_call_varargs; -const OpcodeID llint_op_construct = op_construct; -const OpcodeID llint_op_catch = op_catch; -const OpcodeID llint_op_get_by_id = op_get_by_id; -const OpcodeID llint_op_get_by_id_out_of_line = op_get_by_id_out_of_line; -const OpcodeID llint_op_put_by_id = op_put_by_id; -const OpcodeID llint_op_put_by_id_out_of_line = op_put_by_id_out_of_line; - -const OpcodeID llint_op_put_by_id_transition_direct = - op_put_by_id_transition_direct; -const OpcodeID llint_op_put_by_id_transition_direct_out_of_line = - op_put_by_id_transition_direct_out_of_line; -const OpcodeID llint_op_put_by_id_transition_normal = - op_put_by_id_transition_normal; -const OpcodeID llint_op_put_by_id_transition_normal_out_of_line = - op_put_by_id_transition_normal_out_of_line; - -const OpcodeID llint_op_method_check = op_method_check; +#define LLINT_OPCODE_ALIAS(opcode, length) \ + const OpcodeID llint_##opcode = opcode; +FOR_EACH_CORE_OPCODE_ID(LLINT_OPCODE_ALIAS) +#undef LLINT_OPCODE_ALIAS } // namespace JSC |