| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1164 Handle<Object> input); | 1164 Handle<Object> input); |
| 1165 | 1165 |
| 1166 // ES6 section 7.1.15 ToLength | 1166 // ES6 section 7.1.15 ToLength |
| 1167 MUST_USE_RESULT static MaybeHandle<Object> ToLength(Isolate* isolate, | 1167 MUST_USE_RESULT static MaybeHandle<Object> ToLength(Isolate* isolate, |
| 1168 Handle<Object> input); | 1168 Handle<Object> input); |
| 1169 | 1169 |
| 1170 // ES6 section 7.3.9 GetMethod | 1170 // ES6 section 7.3.9 GetMethod |
| 1171 MUST_USE_RESULT static MaybeHandle<Object> GetMethod( | 1171 MUST_USE_RESULT static MaybeHandle<Object> GetMethod( |
| 1172 Handle<JSReceiver> receiver, Handle<Name> name); | 1172 Handle<JSReceiver> receiver, Handle<Name> name); |
| 1173 | 1173 |
| 1174 // Check whether |object| is an instance of Error or NativeError. |
| 1175 static bool IsErrorObject(Isolate* isolate, Handle<Object> object); |
| 1176 |
| 1174 // ES6 section 12.5.6 The typeof Operator | 1177 // ES6 section 12.5.6 The typeof Operator |
| 1175 static Handle<String> TypeOf(Isolate* isolate, Handle<Object> object); | 1178 static Handle<String> TypeOf(Isolate* isolate, Handle<Object> object); |
| 1176 | 1179 |
| 1177 // ES6 section 12.6 Multiplicative Operators | 1180 // ES6 section 12.6 Multiplicative Operators |
| 1178 MUST_USE_RESULT static MaybeHandle<Object> Multiply( | 1181 MUST_USE_RESULT static MaybeHandle<Object> Multiply( |
| 1179 Isolate* isolate, Handle<Object> lhs, Handle<Object> rhs, | 1182 Isolate* isolate, Handle<Object> lhs, Handle<Object> rhs, |
| 1180 Strength strength = Strength::WEAK); | 1183 Strength strength = Strength::WEAK); |
| 1181 MUST_USE_RESULT static MaybeHandle<Object> Divide( | 1184 MUST_USE_RESULT static MaybeHandle<Object> Divide( |
| 1182 Isolate* isolate, Handle<Object> lhs, Handle<Object> rhs, | 1185 Isolate* isolate, Handle<Object> lhs, Handle<Object> rhs, |
| 1183 Strength strength = Strength::WEAK); | 1186 Strength strength = Strength::WEAK); |
| (...skipping 9499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10683 } | 10686 } |
| 10684 return value; | 10687 return value; |
| 10685 } | 10688 } |
| 10686 }; | 10689 }; |
| 10687 | 10690 |
| 10688 | 10691 |
| 10689 } // NOLINT, false-positive due to second-order macros. | 10692 } // NOLINT, false-positive due to second-order macros. |
| 10690 } // NOLINT, false-positive due to second-order macros. | 10693 } // NOLINT, false-positive due to second-order macros. |
| 10691 | 10694 |
| 10692 #endif // V8_OBJECTS_H_ | 10695 #endif // V8_OBJECTS_H_ |
| OLD | NEW |