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 "allocation.h" | 8 #include "allocation.h" |
9 #include "assert-scope.h" | 9 #include "assert-scope.h" |
10 #include "builtins.h" | 10 #include "builtins.h" |
(...skipping 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1483 | 1483 |
1484 // Convert to a JSObject if needed. | 1484 // Convert to a JSObject if needed. |
1485 // native_context is used when creating wrapper object. | 1485 // native_context is used when creating wrapper object. |
1486 static inline MaybeHandle<JSReceiver> ToObject(Isolate* isolate, | 1486 static inline MaybeHandle<JSReceiver> ToObject(Isolate* isolate, |
1487 Handle<Object> object); | 1487 Handle<Object> object); |
1488 static MaybeHandle<JSReceiver> ToObject(Isolate* isolate, | 1488 static MaybeHandle<JSReceiver> ToObject(Isolate* isolate, |
1489 Handle<Object> object, | 1489 Handle<Object> object, |
1490 Handle<Context> context); | 1490 Handle<Context> context); |
1491 | 1491 |
1492 // Converts this to a Smi if possible. | 1492 // Converts this to a Smi if possible. |
1493 // Failure is returned otherwise. | 1493 static MUST_USE_RESULT inline MaybeHandle<Smi> ToSmi(Isolate* isolate, |
1494 static MUST_USE_RESULT inline Handle<Object> ToSmi(Isolate* isolate, | 1494 Handle<Object> object); |
1495 Handle<Object> object); | |
1496 | 1495 |
1497 void Lookup(Name* name, LookupResult* result); | 1496 void Lookup(Name* name, LookupResult* result); |
1498 | 1497 |
1499 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithReceiver( | 1498 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithReceiver( |
1500 Handle<Object> object, | 1499 Handle<Object> object, |
1501 Handle<Object> receiver, | 1500 Handle<Object> receiver, |
1502 Handle<Name> name, | 1501 Handle<Name> name, |
1503 PropertyAttributes* attributes); | 1502 PropertyAttributes* attributes); |
1504 MUST_USE_RESULT static inline MaybeHandle<Object> GetPropertyOrElement( | 1503 MUST_USE_RESULT static inline MaybeHandle<Object> GetPropertyOrElement( |
1505 Handle<Object> object, | 1504 Handle<Object> object, |
(...skipping 9688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11194 } else { | 11193 } else { |
11195 value &= ~(1 << bit_position); | 11194 value &= ~(1 << bit_position); |
11196 } | 11195 } |
11197 return value; | 11196 return value; |
11198 } | 11197 } |
11199 }; | 11198 }; |
11200 | 11199 |
11201 } } // namespace v8::internal | 11200 } } // namespace v8::internal |
11202 | 11201 |
11203 #endif // V8_OBJECTS_H_ | 11202 #endif // V8_OBJECTS_H_ |
OLD | NEW |