1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00
serenity/Libraries/LibJS/Runtime
Andreas Kling 7c4e53f31e LibJS: Rework how native functions are called to improve |this| value
Native functions now only get the Interpreter& as an argument. They can
then extract |this| along with any indexed arguments it wants from it.

This forces functions that want |this| to actually deal with calling
interpreter.this_value().to_object(), and dealing with the possibility
of a non-object |this|.

This is still not great but let's keep massaging it forward.
2020-03-28 22:51:09 +01:00
..
Array.cpp LibJS: Implement Array.prototype.{shift,pop} 2020-03-28 22:18:11 +01:00
Array.h LibJS: Implement Array.prototype.{shift,pop} 2020-03-28 22:18:11 +01:00
ArrayPrototype.cpp LibJS: Rework how native functions are called to improve |this| value 2020-03-28 22:51:09 +01:00
ArrayPrototype.h LibJS: Add ArrayPrototype and implement Array.prototype.push() 2020-03-20 21:56:40 +01:00
Cell.cpp LibJS: Add "Heap" and "Runtime" subdirectories 2020-03-16 14:37:19 +01:00
Cell.h LibJS: Add "Heap" and "Runtime" subdirectories 2020-03-16 14:37:19 +01:00
ConsoleObject.cpp LibJS: Rework how native functions are called to improve |this| value 2020-03-28 22:51:09 +01:00
ConsoleObject.h LibJS: Replace the global print() function with console.log() :^) 2020-03-16 14:58:20 +01:00
Error.cpp LibJS: Implement basic exception throwing 2020-03-24 16:14:10 +01:00
Error.h LibJS: Implement basic exception throwing 2020-03-24 16:14:10 +01:00
ErrorPrototype.cpp LibJS: Remove debug spam in Error.prototype.name 2020-03-24 22:21:58 +01:00
ErrorPrototype.h LibJS: Implement basic exception throwing 2020-03-24 16:14:10 +01:00
Exception.cpp LibJS: Implement "throw" 2020-03-24 22:21:58 +01:00
Exception.h LibJS: Implement "throw" 2020-03-24 22:21:58 +01:00
Function.cpp LibJS: Add Function.prototype and make "new" Objects delegate to it 2020-03-28 16:40:36 +01:00
Function.h LibJS: Rework how native functions are called to improve |this| value 2020-03-28 22:51:09 +01:00
GlobalObject.cpp LibJS: Rework how native functions are called to improve |this| value 2020-03-28 22:51:09 +01:00
GlobalObject.h LibJS: Add "Heap" and "Runtime" subdirectories 2020-03-16 14:37:19 +01:00
MathObject.cpp LibJS: Rework how native functions are called to improve |this| value 2020-03-28 22:51:09 +01:00
MathObject.h LibJS: Add Math.random() :^) 2020-03-21 17:52:12 +01:00
NativeFunction.cpp LibJS: Rework how native functions are called to improve |this| value 2020-03-28 22:51:09 +01:00
NativeFunction.h LibJS: Rework how native functions are called to improve |this| value 2020-03-28 22:51:09 +01:00
NativeProperty.cpp LibJS: Add "Heap" and "Runtime" subdirectories 2020-03-16 14:37:19 +01:00
NativeProperty.h LibJS: Add "Heap" and "Runtime" subdirectories 2020-03-16 14:37:19 +01:00
Object.cpp LibJS: Rework how native functions are called to improve |this| value 2020-03-28 22:51:09 +01:00
Object.h LibJS: Rework how native functions are called to improve |this| value 2020-03-28 22:51:09 +01:00
ObjectConstructor.cpp LibJS: Rework how native functions are called to improve |this| value 2020-03-28 22:51:09 +01:00
ObjectConstructor.h LibJS: Rework how native functions are called to improve |this| value 2020-03-28 22:51:09 +01:00
ObjectPrototype.cpp LibJS: Rework how native functions are called to improve |this| value 2020-03-28 22:51:09 +01:00
ObjectPrototype.h LibJS: Add "Heap" and "Runtime" subdirectories 2020-03-16 14:37:19 +01:00
PrimitiveString.cpp LibJS: Add "Heap" and "Runtime" subdirectories 2020-03-16 14:37:19 +01:00
PrimitiveString.h LibJS: Add "Heap" and "Runtime" subdirectories 2020-03-16 14:37:19 +01:00
ScriptFunction.cpp LibJS: Rework how native functions are called to improve |this| value 2020-03-28 22:51:09 +01:00
ScriptFunction.h LibJS: Rework how native functions are called to improve |this| value 2020-03-28 22:51:09 +01:00
StringObject.cpp LibJS: Add "Heap" and "Runtime" subdirectories 2020-03-16 14:37:19 +01:00
StringObject.h LibJS: Add "Heap" and "Runtime" subdirectories 2020-03-16 14:37:19 +01:00
StringPrototype.cpp LibJS: Rework how native functions are called to improve |this| value 2020-03-28 22:51:09 +01:00
StringPrototype.h LibJS: Add "Heap" and "Runtime" subdirectories 2020-03-16 14:37:19 +01:00
Value.cpp LibJS: Rework how native functions are called to improve |this| value 2020-03-28 22:51:09 +01:00
Value.h LibJS: Rework how native functions are called to improve |this| value 2020-03-28 22:51:09 +01:00