1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-08 14:57:35 +00:00
serenity/Libraries/LibJS
Andreas Kling 63b3cfdc73 LibJS: Pass "this" as an Object* to NativeFunction callbacks
Instead of every NativeFunction callback having to ask the Interpreter
for the current "this" value and then converting it to an Object etc,
just pass "this" as an Object* directly.
2020-03-15 20:51:36 +01:00
..
AST.cpp LibJS: Add basic prototype support 2020-03-15 15:01:10 +01:00
AST.h LibJS: Add basic prototype support 2020-03-15 15:01:10 +01:00
Cell.cpp LibJS: Add Cell::interpreter() convenience helper 2020-03-15 15:08:27 +01:00
Cell.h LibJS: Add Cell::interpreter() convenience helper 2020-03-15 15:08:27 +01:00
Forward.h LibJS: Add NativeFunction, a callable wrapper around a C++ lambda 2020-03-12 19:54:47 +01:00
Function.cpp LibJS: Split Function into subclasses NativeFunction and ScriptFunction 2020-03-13 11:08:16 +01:00
Function.h LibJS: Split Function into subclasses NativeFunction and ScriptFunction 2020-03-13 11:08:16 +01:00
GlobalObject.cpp LibJS: Pass "this" as an Object* to NativeFunction callbacks 2020-03-15 20:51:36 +01:00
GlobalObject.h LibJS: Add Object::put_native_function() for convenience 2020-03-13 11:08:16 +01:00
Heap.cpp LibJS: Rename collect_roots() => gather_roots() 2020-03-15 15:13:24 +01:00
Heap.h LibJS: Rename collect_roots() => gather_roots() 2020-03-15 15:13:24 +01:00
HeapBlock.cpp LibJS: Make it possible to go from a Cell* to its Heap& 2020-03-13 11:08:16 +01:00
HeapBlock.h LibJS: Make it possible to go from a Cell* to its Heap& 2020-03-13 11:08:16 +01:00
Interpreter.cpp LibJS: Add ObjectPrototype and implement hasOwnProperty() 2020-03-15 15:25:43 +01:00
Interpreter.h LibJS: Add ObjectPrototype and implement hasOwnProperty() 2020-03-15 15:25:43 +01:00
Lexer.cpp LibJS: Lex single quote strings, escaped chars and unterminated strings 2020-03-14 12:13:53 +01:00
Lexer.h LibJS: Lex single quote strings, escaped chars and unterminated strings 2020-03-14 12:13:53 +01:00
Makefile LibJS: Add a mechanism for callback-based object properties 2020-03-15 19:31:00 +01:00
NativeFunction.cpp LibJS: Pass "this" as an Object* to NativeFunction callbacks 2020-03-15 20:51:36 +01:00
NativeFunction.h LibJS: Pass "this" as an Object* to NativeFunction callbacks 2020-03-15 20:51:36 +01:00
NativeProperty.cpp LibJS: Add a mechanism for callback-based object properties 2020-03-15 19:31:00 +01:00
NativeProperty.h LibJS: Add a mechanism for callback-based object properties 2020-03-15 19:31:00 +01:00
Object.cpp LibJS: Pass "this" as an Object* to NativeFunction callbacks 2020-03-15 20:51:36 +01:00
Object.h LibJS: Pass "this" as an Object* to NativeFunction callbacks 2020-03-15 20:51:36 +01:00
ObjectPrototype.cpp LibJS: Pass "this" as an Object* to NativeFunction callbacks 2020-03-15 20:51:36 +01:00
ObjectPrototype.h LibJS: Add ObjectPrototype and implement hasOwnProperty() 2020-03-15 15:25:43 +01:00
Parser.cpp LibJS/Parser: Implement the parsing of unary/prefixed update expressions 2020-03-14 20:02:53 +01:00
Parser.h LibJS/Parser: Implement the parsing of unary/prefixed update expressions 2020-03-14 20:02:53 +01:00
PrimitiveString.cpp LibJS: Add a new PrimitiveString class to hold GC-allocated strings 2020-03-11 19:00:22 +01:00
PrimitiveString.h LibJS: Add a new PrimitiveString class to hold GC-allocated strings 2020-03-11 19:00:22 +01:00
ScriptFunction.cpp LibJS: Split Function into subclasses NativeFunction and ScriptFunction 2020-03-13 11:08:16 +01:00
ScriptFunction.h LibJS: Split Function into subclasses NativeFunction and ScriptFunction 2020-03-13 11:08:16 +01:00
StringObject.cpp LibJS: Add a mechanism for callback-based object properties 2020-03-15 19:31:00 +01:00
StringObject.h LibJS: Add StringPrototype and make it the prototype of StringObject 2020-03-15 15:02:49 +01:00
StringPrototype.cpp LibJS: Pass "this" as an Object* to NativeFunction callbacks 2020-03-15 20:51:36 +01:00
StringPrototype.h LibJS: Add StringPrototype and make it the prototype of StringObject 2020-03-15 15:02:49 +01:00
Token.cpp LibJS: Unescape strings in Token::string_value() 2020-03-14 16:00:28 +01:00
Token.h LibJS: Lex single quote strings, escaped chars and unterminated strings 2020-03-14 12:13:53 +01:00
Value.cpp LibJS: Add Value::to_i32() helper function 2020-03-15 15:00:18 +01:00
Value.h LibJS: Add Value::to_i32() helper function 2020-03-15 15:00:18 +01:00