mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
LibJS: Make all the JS::Value binary op helpers take GlobalObject&
We don't need the Interpreter& for anything here, the GlobalObject is enough for getting to the VM and possibly throwing exceptions.
This commit is contained in:
parent
30ca9acd9c
commit
1df18c58f5
3 changed files with 175 additions and 175 deletions
|
@ -302,35 +302,35 @@ inline Value js_negative_infinity()
|
|||
return Value(-INFINITY);
|
||||
}
|
||||
|
||||
Value greater_than(Interpreter&, Value lhs, Value rhs);
|
||||
Value greater_than_equals(Interpreter&, Value lhs, Value rhs);
|
||||
Value less_than(Interpreter&, Value lhs, Value rhs);
|
||||
Value less_than_equals(Interpreter&, Value lhs, Value rhs);
|
||||
Value bitwise_and(Interpreter&, Value lhs, Value rhs);
|
||||
Value bitwise_or(Interpreter&, Value lhs, Value rhs);
|
||||
Value bitwise_xor(Interpreter&, Value lhs, Value rhs);
|
||||
Value bitwise_not(Interpreter&, Value);
|
||||
Value unary_plus(Interpreter&, Value);
|
||||
Value unary_minus(Interpreter&, Value);
|
||||
Value left_shift(Interpreter&, Value lhs, Value rhs);
|
||||
Value right_shift(Interpreter&, Value lhs, Value rhs);
|
||||
Value unsigned_right_shift(Interpreter&, Value lhs, Value rhs);
|
||||
Value add(Interpreter&, Value lhs, Value rhs);
|
||||
Value sub(Interpreter&, Value lhs, Value rhs);
|
||||
Value mul(Interpreter&, Value lhs, Value rhs);
|
||||
Value div(Interpreter&, Value lhs, Value rhs);
|
||||
Value mod(Interpreter&, Value lhs, Value rhs);
|
||||
Value greater_than(GlobalObject&, Value lhs, Value rhs);
|
||||
Value greater_than_equals(GlobalObject&, Value lhs, Value rhs);
|
||||
Value less_than(GlobalObject&, Value lhs, Value rhs);
|
||||
Value less_than_equals(GlobalObject&, Value lhs, Value rhs);
|
||||
Value bitwise_and(GlobalObject&, Value lhs, Value rhs);
|
||||
Value bitwise_or(GlobalObject&, Value lhs, Value rhs);
|
||||
Value bitwise_xor(GlobalObject&, Value lhs, Value rhs);
|
||||
Value bitwise_not(GlobalObject&, Value);
|
||||
Value unary_plus(GlobalObject&, Value);
|
||||
Value unary_minus(GlobalObject&, Value);
|
||||
Value left_shift(GlobalObject&, Value lhs, Value rhs);
|
||||
Value right_shift(GlobalObject&, Value lhs, Value rhs);
|
||||
Value unsigned_right_shift(GlobalObject&, Value lhs, Value rhs);
|
||||
Value add(GlobalObject&, Value lhs, Value rhs);
|
||||
Value sub(GlobalObject&, Value lhs, Value rhs);
|
||||
Value mul(GlobalObject&, Value lhs, Value rhs);
|
||||
Value div(GlobalObject&, Value lhs, Value rhs);
|
||||
Value mod(GlobalObject&, Value lhs, Value rhs);
|
||||
Value exp(GlobalObject&, Value lhs, Value rhs);
|
||||
Value in(Interpreter&, Value lhs, Value rhs);
|
||||
Value in(GlobalObject&, Value lhs, Value rhs);
|
||||
Value instance_of(GlobalObject&, Value lhs, Value rhs);
|
||||
Value ordinary_has_instance(GlobalObject&, Value lhs, Value rhs);
|
||||
|
||||
bool abstract_eq(Interpreter&, Value lhs, Value rhs);
|
||||
bool abstract_eq(GlobalObject&, Value lhs, Value rhs);
|
||||
bool strict_eq(Value lhs, Value rhs);
|
||||
bool same_value(Value lhs, Value rhs);
|
||||
bool same_value_zero(Value lhs, Value rhs);
|
||||
bool same_value_non_numeric(Value lhs, Value rhs);
|
||||
TriState abstract_relation(Interpreter&, bool left_first, Value lhs, Value rhs);
|
||||
TriState abstract_relation(GlobalObject&, bool left_first, Value lhs, Value rhs);
|
||||
size_t length_of_array_like(GlobalObject&, Value);
|
||||
|
||||
const LogStream& operator<<(const LogStream&, const Value&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue