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 6290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6301 Object* GetPropertyNoExceptionThrown(String* key) { | 6301 Object* GetPropertyNoExceptionThrown(String* key) { |
6302 Object* answer = GetProperty(key)->ToObjectUnchecked(); | 6302 Object* answer = GetProperty(key)->ToObjectUnchecked(); |
6303 return answer; | 6303 return answer; |
6304 } | 6304 } |
6305 | 6305 |
6306 // Ensure that the global object has a cell for the given property name. | 6306 // Ensure that the global object has a cell for the given property name. |
6307 static Handle<JSGlobalPropertyCell> EnsurePropertyCell( | 6307 static Handle<JSGlobalPropertyCell> EnsurePropertyCell( |
6308 Handle<GlobalObject> global, | 6308 Handle<GlobalObject> global, |
6309 Handle<String> name); | 6309 Handle<String> name); |
6310 // TODO(kmillikin): This function can be eliminated once the stub cache is | 6310 // TODO(kmillikin): This function can be eliminated once the stub cache is |
6311 // full handlified (and the static helper can be written directly). | 6311 // fully handlified (and the static helper can be written directly). |
6312 MUST_USE_RESULT MaybeObject* EnsurePropertyCell(String* name); | 6312 MUST_USE_RESULT MaybeObject* EnsurePropertyCell(String* name); |
6313 | 6313 |
6314 // Casting. | 6314 // Casting. |
6315 static inline GlobalObject* cast(Object* obj); | 6315 static inline GlobalObject* cast(Object* obj); |
6316 | 6316 |
6317 // Layout description. | 6317 // Layout description. |
6318 static const int kBuiltinsOffset = JSObject::kHeaderSize; | 6318 static const int kBuiltinsOffset = JSObject::kHeaderSize; |
6319 static const int kNativeContextOffset = kBuiltinsOffset + kPointerSize; | 6319 static const int kNativeContextOffset = kBuiltinsOffset + kPointerSize; |
6320 static const int kGlobalContextOffset = kNativeContextOffset + kPointerSize; | 6320 static const int kGlobalContextOffset = kNativeContextOffset + kPointerSize; |
6321 static const int kGlobalReceiverOffset = kGlobalContextOffset + kPointerSize; | 6321 static const int kGlobalReceiverOffset = kGlobalContextOffset + kPointerSize; |
(...skipping 2717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9039 } else { | 9039 } else { |
9040 value &= ~(1 << bit_position); | 9040 value &= ~(1 << bit_position); |
9041 } | 9041 } |
9042 return value; | 9042 return value; |
9043 } | 9043 } |
9044 }; | 9044 }; |
9045 | 9045 |
9046 } } // namespace v8::internal | 9046 } } // namespace v8::internal |
9047 | 9047 |
9048 #endif // V8_OBJECTS_H_ | 9048 #endif // V8_OBJECTS_H_ |
OLD | NEW |