OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 7758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7769 // [global receiver]: the global receiver object of the context | 7769 // [global receiver]: the global receiver object of the context |
7770 DECL_ACCESSORS(global_receiver, JSObject) | 7770 DECL_ACCESSORS(global_receiver, JSObject) |
7771 | 7771 |
7772 // Retrieve the property cell used to store a property. | 7772 // Retrieve the property cell used to store a property. |
7773 PropertyCell* GetPropertyCell(LookupResult* result); | 7773 PropertyCell* GetPropertyCell(LookupResult* result); |
7774 | 7774 |
7775 // This is like GetProperty, but is used when you know the lookup won't fail | 7775 // This is like GetProperty, but is used when you know the lookup won't fail |
7776 // by throwing an exception. This is for the debug and builtins global | 7776 // by throwing an exception. This is for the debug and builtins global |
7777 // objects, where it is known which properties can be expected to be present | 7777 // objects, where it is known which properties can be expected to be present |
7778 // on the object. | 7778 // on the object. |
7779 Object* GetPropertyNoExceptionThrown(Name* key) { | 7779 static inline Handle<Object> GetPropertyNoExceptionThrown( |
7780 Object* answer = GetProperty(key)->ToObjectUnchecked(); | 7780 Handle<GlobalObject> global, |
7781 return answer; | 7781 Handle<Name> name); |
7782 } | |
7783 | 7782 |
7784 // Casting. | 7783 // Casting. |
7785 static inline GlobalObject* cast(Object* obj); | 7784 static inline GlobalObject* cast(Object* obj); |
7786 | 7785 |
7787 // Layout description. | 7786 // Layout description. |
7788 static const int kBuiltinsOffset = JSObject::kHeaderSize; | 7787 static const int kBuiltinsOffset = JSObject::kHeaderSize; |
7789 static const int kNativeContextOffset = kBuiltinsOffset + kPointerSize; | 7788 static const int kNativeContextOffset = kBuiltinsOffset + kPointerSize; |
7790 static const int kGlobalContextOffset = kNativeContextOffset + kPointerSize; | 7789 static const int kGlobalContextOffset = kNativeContextOffset + kPointerSize; |
7791 static const int kGlobalReceiverOffset = kGlobalContextOffset + kPointerSize; | 7790 static const int kGlobalReceiverOffset = kGlobalContextOffset + kPointerSize; |
7792 static const int kHeaderSize = kGlobalReceiverOffset + kPointerSize; | 7791 static const int kHeaderSize = kGlobalReceiverOffset + kPointerSize; |
(...skipping 3220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11013 } else { | 11012 } else { |
11014 value &= ~(1 << bit_position); | 11013 value &= ~(1 << bit_position); |
11015 } | 11014 } |
11016 return value; | 11015 return value; |
11017 } | 11016 } |
11018 }; | 11017 }; |
11019 | 11018 |
11020 } } // namespace v8::internal | 11019 } } // namespace v8::internal |
11021 | 11020 |
11022 #endif // V8_OBJECTS_H_ | 11021 #endif // V8_OBJECTS_H_ |
OLD | NEW |