33c14184cdb7af9f39dd5752f183570cb3cfe751
[WebKit-https.git] / JavaScriptCore / ChangeLog
1 2010-05-26  Geoffrey Garen  <ggaren@apple.com>
2
3         Reviewed by Sam Weinig.
4
5         Fixed a crash seen on the Leopard bot, caused by merge.
6
7         * jit/JITStubs.cpp:
8         (JSC::DEFINE_STUB_FUNCTION): Get the return address from the callframe,
9         since it's no longer passed to us as an argument.
10
11 2010-05-25  Geoffrey Garen  <ggaren@apple.com>
12
13         Fixed build failure caused by merge.
14
15         * jit/JITStubs.cpp:
16         (JSC::DEFINE_STUB_FUNCTION): On error, return a single value, since this
17         function no longer returns a pair.
18
19 2010-05-25  Geoffrey Garen  <ggaren@apple.com>
20
21         Reviewed by Oliver Hunt.
22
23         <rdar://problem/8020221>
24         
25         Fixed a crash seen on Windows when calling a function with too many
26         arguments.
27         
28         SunSpider reports no change.
29         
30         No test because the ASSERT I added fires in existing tests.
31
32         * jit/JITStubs.cpp:
33         (JSC::DEFINE_STUB_FUNCTION): Make sure to grow the registerFile when too
34         many arguments have been provided, since the caller only allocated enough
35         registerFile space for the arguments it provided, not enough for the extra
36         copy of arguments we're going to need.
37
38 2010-05-25  Kwang Yul Seo  <skyul@company100.net>
39
40         Reviewed by Darin Adler.
41
42         Build fix for JSFunction
43         https://bugs.webkit.org/show_bug.cgi?id=39658
44
45         MSVC can't compile one of JSFunction constructors when JIT is disabled.
46         "PassRefPtr<NativeExecutable>" causes the compile error as NativeExecutable is not defined. 
47         Add ENABLE(JIT) guard to the constructor.
48
49         * runtime/JSFunction.cpp:
50         (JSC::JSFunction::JSFunction):
51         * runtime/JSFunction.h:
52
53 2010-05-24  Gavin Barraclough  <barraclough@apple.com>
54
55         Reviewed by Sam Weinig.
56
57         Bug 39643 - Clean up code generation in the JIT of stub function calls for op_call.
58
59         Presently, as soon as op-call strays off the hot path we set up a set of values on
60         the stack to be passed as arguments to cti functions, in case any should be called.
61
62         Instead, hoist the setup of the callframe to happen slightly sooner, and make the
63         cti functions to compile & check arity read these values from the callframe. This
64         allows up to remove the deprecated methods to manually set up cti arguments, rather
65         than using JITStubCall.h.
66
67         * interpreter/CallFrame.h:
68         * jit/JIT.h:
69         * jit/JITCall.cpp:
70         (JSC::JIT::compileOpCallInitializeCallFrame):
71         (JSC::JIT::compileOpCallVarargs):
72         (JSC::JIT::compileOpCallVarargsSlowCase):
73         (JSC::JIT::compileOpCall):
74         (JSC::JIT::compileOpCallSlowCase):
75         * jit/JITCall32_64.cpp:
76         (JSC::JIT::compileOpCallInitializeCallFrame):
77         (JSC::JIT::compileOpCallVarargs):
78         (JSC::JIT::compileOpCallVarargsSlowCase):
79         (JSC::JIT::compileOpCall):
80         (JSC::JIT::compileOpCallSlowCase):
81         * jit/JITInlineMethods.h:
82         * jit/JITOpcodes.cpp:
83         (JSC::JIT::privateCompileCTIMachineTrampolines):
84         * jit/JITOpcodes32_64.cpp:
85         (JSC::JIT::privateCompileCTIMachineTrampolines):
86         * jit/JITStubs.cpp:
87         (JSC::DEFINE_STUB_FUNCTION):
88         * jit/JITStubs.h:
89         (JSC::):
90
91 2010-05-24  Gavin Barraclough  <barraclough@apple.com>
92
93         Reviewed by Sam Weinig.
94         Relanding r60075.
95
96         * bytecode/CodeBlock.cpp:
97         (JSC::CodeBlock::dump):
98         (JSC::CodeBlock::getByIdExceptionInfoForBytecodeOffset):
99         * bytecode/CodeBlock.h:
100         * bytecode/Opcode.h:
101         * bytecompiler/BytecodeGenerator.cpp:
102         (JSC::BytecodeGenerator::BytecodeGenerator):
103         (JSC::BytecodeGenerator::emitConstruct):
104         * bytecompiler/BytecodeGenerator.h:
105         (JSC::BytecodeGenerator::emitGetByIdExceptionInfo):
106         * interpreter/Interpreter.cpp:
107         (JSC::Interpreter::privateExecute):
108         * jit/JIT.cpp:
109         (JSC::JIT::privateCompileMainPass):
110         * jit/JIT.h:
111         * jit/JITCall.cpp:
112         (JSC::JIT::compileOpCall):
113         (JSC::JIT::compileOpCallSlowCase):
114         * jit/JITCall32_64.cpp:
115         (JSC::JIT::compileOpCall):
116         (JSC::JIT::compileOpCallSlowCase):
117         * jit/JITOpcodes.cpp:
118         (JSC::JIT::privateCompileCTIMachineTrampolines):
119         (JSC::JIT::privateCompileCTINativeCall):
120         (JSC::JIT::emit_op_neq_null):
121         (JSC::JIT::emit_op_convert_this):
122         (JSC::JIT::emit_op_get_callee):
123         (JSC::JIT::emit_op_create_this):
124         * jit/JITOpcodes32_64.cpp:
125         (JSC::JIT::privateCompileCTIMachineTrampolines):
126         (JSC::JIT::privateCompileCTINativeCall):
127         (JSC::JIT::emit_op_get_callee):
128         (JSC::JIT::emit_op_create_this):
129         * jit/JITStubs.cpp:
130         (JSC::DEFINE_STUB_FUNCTION):
131         (JSC::JITThunks::hostFunctionStub):
132         * jit/JITStubs.h:
133         (JSC::JITThunks::ctiNativeConstruct):
134         (JSC::):
135         * runtime/ExceptionHelpers.cpp:
136         (JSC::createNotAnObjectError):
137         * runtime/Executable.h:
138         (JSC::NativeExecutable::create):
139         (JSC::NativeExecutable::NativeExecutable):
140         * runtime/JSFunction.cpp:
141         (JSC::callHostFunctionAsConstructor):
142         * runtime/JSFunction.h:
143         * wtf/Platform.h:
144
145 == Rolled over to ChangeLog-2010-05-24 ==