1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00
serenity/Libraries/LibJS/Runtime
Andreas Kling e4add19915 LibJS: Pass GlobalObject& to native functions and property accessors
More work towards supporting multiple global objects. Native C++ code
now get a GlobalObject& and don't have to ask the Interpreter for it.

I've added macros for declaring and defining native callbacks since
this was pretty tedious and this makes it easier next time we want to
change any of these signatures.
2020-06-20 15:45:07 +02:00
..
Accessor.h LibJS: Object index properties have descriptors; Handle sparse indices 2020-05-28 17:17:13 +02:00
Array.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
Array.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
ArrayConstructor.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
ArrayConstructor.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
ArrayPrototype.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
ArrayPrototype.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
BigInt.cpp LibJS: Add BigInt 2020-06-07 19:29:40 +02:00
BigInt.h LibJS: Add BigInt 2020-06-07 19:29:40 +02:00
BigIntConstructor.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
BigIntConstructor.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
BigIntObject.cpp LibJS: Add BigInt 2020-06-07 19:29:40 +02:00
BigIntObject.h LibJS: Add BigInt 2020-06-07 19:29:40 +02:00
BigIntPrototype.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
BigIntPrototype.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
BooleanConstructor.cpp LibJS+LibWeb: Remove a bunch of calls to Interpreter::global_object() 2020-06-08 12:25:45 +02:00
BooleanConstructor.h LibJS: Reformat BooleanConstructor.{cpp,h} 2020-04-07 17:25:50 +02:00
BooleanObject.cpp LibJS: Move builtin prototypes to the global object 2020-04-18 13:24:45 +02:00
BooleanObject.h LibJS: Add JSON.stringify 2020-06-13 12:43:22 +02:00
BooleanPrototype.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
BooleanPrototype.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
BoundFunction.cpp LibJS: Interpreter::this_value() => this_value(GlobalObject&) 2020-06-08 21:12:20 +02:00
BoundFunction.h LibJS: Implement Function.prototype.bind() 2020-04-21 12:23:07 +02:00
Cell.cpp LibJS: Implement correct object property ordering 2020-04-29 18:47:03 +02:00
Cell.h LibJS: Implement correct object property ordering 2020-04-29 18:47:03 +02:00
ConsoleObject.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
ConsoleObject.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
Date.cpp LibJS: Remove reduntant set_prototype() calls 2020-06-07 19:29:40 +02:00
Date.h Meta: Add a script check the presence of "#pragma once" in header files 2020-05-29 07:59:45 +02:00
DateConstructor.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
DateConstructor.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
DatePrototype.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
DatePrototype.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
Error.cpp LibJS: Remove reduntant set_prototype() calls 2020-06-07 19:29:40 +02:00
Error.h LibJS: Pass prototype to Error constructors 2020-04-18 10:28:22 +02:00
ErrorConstructor.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
ErrorConstructor.h LibJS: Use enumerator macros for boilerplate code around native types 2020-04-10 14:06:52 +02:00
ErrorPrototype.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
ErrorPrototype.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
ErrorTypes.cpp LibJS: Consolidate error messages into ErrorTypes.h 2020-06-11 07:46:20 +02:00
ErrorTypes.h LibJS: Add JSON.parse 2020-06-13 12:43:22 +02:00
Exception.cpp LibJS: Store basic traceback in Exception 2020-06-02 15:22:34 +02:00
Exception.h LibJS: Store basic traceback in Exception 2020-06-02 15:22:34 +02:00
Function.cpp LibJS+LibWeb: Remove a bunch of calls to Interpreter::global_object() 2020-06-08 12:25:45 +02:00
Function.h LibJS: Fix casting a value to ScriptFunction without checking it's one 2020-06-01 17:37:44 +02:00
FunctionConstructor.cpp LibJS: Pass GlobalObject& to AST node execute() functions 2020-06-08 21:12:20 +02:00
FunctionConstructor.h LibJS: Add Function() and Function.prototype 2020-04-04 15:58:49 +02:00
FunctionPrototype.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
FunctionPrototype.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
GlobalObject.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
GlobalObject.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
IndexedProperties.cpp LibJS: Distinguish between omitted descriptor attributes and false ones 2020-06-06 22:13:01 +02:00
IndexedProperties.h LibJS: Distinguish between omitted descriptor attributes and false ones 2020-06-06 22:13:01 +02:00
JSONObject.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
JSONObject.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
LexicalEnvironment.cpp LibJS: Allow cells to mark null pointers 2020-04-16 16:10:38 +02:00
LexicalEnvironment.h LibJS: Introduce LexicalEnvironment 2020-04-15 22:07:20 +02:00
MarkedValueList.cpp LibJS: run clang-format on all the files 2020-05-05 09:15:16 +02:00
MarkedValueList.h LibJS: Add MarkedValueList and use it for argument passing 2020-04-19 17:34:33 +02:00
MathObject.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
MathObject.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
NativeFunction.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
NativeFunction.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
NativeProperty.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
NativeProperty.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
NumberConstructor.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
NumberConstructor.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
NumberObject.cpp LibJS: Move builtin prototypes to the global object 2020-04-18 13:24:45 +02:00
NumberObject.h LibJS: Add JSON.stringify 2020-06-13 12:43:22 +02:00
NumberPrototype.cpp LibJS: Move builtin prototypes to the global object 2020-04-18 13:24:45 +02:00
NumberPrototype.h LibJS: Boolean, Number and String prototypes should have values too 2020-04-10 13:09:35 +02:00
Object.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
Object.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
ObjectConstructor.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
ObjectConstructor.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
ObjectPrototype.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
ObjectPrototype.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
PrimitiveString.cpp LibJS: Add js_string(Interpreter&, String) 2020-04-04 12:58:05 +02:00
PrimitiveString.h LibJS: Add js_string(Interpreter&, String) 2020-04-04 12:58:05 +02:00
PropertyAttributes.cpp LibJS: Add Proxy objects 2020-06-06 22:13:01 +02:00
PropertyAttributes.h LibJS: Add Proxy objects 2020-06-06 22:13:01 +02:00
PropertyName.h LibJS: Simplify and normalize publicly-exposed Object functions 2020-05-27 13:17:35 +02:00
ProxyConstructor.cpp LibJS: Consolidate error messages into ErrorTypes.h 2020-06-11 07:46:20 +02:00
ProxyConstructor.h LibJS: Add Proxy objects 2020-06-06 22:13:01 +02:00
ProxyObject.cpp LibJS: Consolidate error messages into ErrorTypes.h 2020-06-11 07:46:20 +02:00
ProxyObject.h LibJS: Add JSON.stringify 2020-06-13 12:43:22 +02:00
ProxyPrototype.cpp LibJS: Add Proxy objects 2020-06-06 22:13:01 +02:00
ProxyPrototype.h LibJS: Add Proxy objects 2020-06-06 22:13:01 +02:00
Reference.cpp LibJS: Consolidate error messages into ErrorTypes.h 2020-06-11 07:46:20 +02:00
Reference.h LibJS: Support o.f++ :^) 2020-04-28 15:07:08 +02:00
ReflectObject.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
ReflectObject.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
RegExpConstructor.cpp LibJS+LibWeb: Remove a bunch of calls to Interpreter::global_object() 2020-06-08 12:25:45 +02:00
RegExpConstructor.h LibJS: Lex and parse regex literals, add RegExp objects 2020-06-07 19:06:55 +02:00
RegExpObject.cpp LibJS: Lex and parse regex literals, add RegExp objects 2020-06-07 19:06:55 +02:00
RegExpObject.h LibJS: Lex and parse regex literals, add RegExp objects 2020-06-07 19:06:55 +02:00
RegExpPrototype.cpp LibJS: Lex and parse regex literals, add RegExp objects 2020-06-07 19:06:55 +02:00
RegExpPrototype.h LibJS: Lex and parse regex literals, add RegExp objects 2020-06-07 19:06:55 +02:00
ScriptFunction.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
ScriptFunction.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
Shape.cpp LibJS: Always keep a reference to the global object in Shape 2020-06-08 12:15:58 +02:00
Shape.h LibJS: Always keep a reference to the global object in Shape 2020-06-08 12:15:58 +02:00
StringConstructor.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
StringConstructor.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
StringObject.cpp LibJS: Move builtin prototypes to the global object 2020-04-18 13:24:45 +02:00
StringObject.h LibJS: Make StringObject::primitive_string() return a reference 2020-04-29 12:33:28 +02:00
StringPrototype.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
StringPrototype.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
Symbol.cpp LibJS: Add symbol objects 2020-05-17 18:05:15 +02:00
Symbol.h LibJS: Add symbol objects 2020-05-17 18:05:15 +02:00
SymbolConstructor.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
SymbolConstructor.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
SymbolObject.cpp LibJS: Add symbol objects 2020-05-17 18:05:15 +02:00
SymbolObject.h LibJS: Add symbol objects 2020-05-17 18:05:15 +02:00
SymbolPrototype.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
SymbolPrototype.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
Uint8ClampedArray.cpp LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
Uint8ClampedArray.h LibJS: Pass GlobalObject& to native functions and property accessors 2020-06-20 15:45:07 +02:00
Value.cpp LibJS: Add JSON.stringify 2020-06-13 12:43:22 +02:00
Value.h LibJS: Add JSON.stringify 2020-06-13 12:43:22 +02:00