| 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 2173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2184 MUST_USE_RESULT MaybeObject* SetLocalPropertyIgnoreAttributesTrampoline( | 2184 MUST_USE_RESULT MaybeObject* SetLocalPropertyIgnoreAttributesTrampoline( |
| 2185 Name* key, | 2185 Name* key, |
| 2186 Object* value, | 2186 Object* value, |
| 2187 PropertyAttributes attributes, | 2187 PropertyAttributes attributes, |
| 2188 ValueType value_type = OPTIMAL_REPRESENTATION, | 2188 ValueType value_type = OPTIMAL_REPRESENTATION, |
| 2189 StoreMode mode = ALLOW_AS_CONSTANT, | 2189 StoreMode mode = ALLOW_AS_CONSTANT, |
| 2190 ExtensibilityCheck extensibility_check = PERFORM_EXTENSIBILITY_CHECK); | 2190 ExtensibilityCheck extensibility_check = PERFORM_EXTENSIBILITY_CHECK); |
| 2191 | 2191 |
| 2192 // Retrieve a value in a normalized object given a lookup result. | 2192 // Retrieve a value in a normalized object given a lookup result. |
| 2193 // Handles the special representation of JS global objects. | 2193 // Handles the special representation of JS global objects. |
| 2194 Object* GetNormalizedProperty(LookupResult* result); | 2194 static Handle<Object> GetNormalizedProperty(Handle<JSObject> object, |
| 2195 LookupResult* result); |
| 2195 | 2196 |
| 2196 // Sets the property value in a normalized object given a lookup result. | 2197 // Sets the property value in a normalized object given a lookup result. |
| 2197 // Handles the special representation of JS global objects. | 2198 // Handles the special representation of JS global objects. |
| 2198 static void SetNormalizedProperty(Handle<JSObject> object, | 2199 static void SetNormalizedProperty(Handle<JSObject> object, |
| 2199 LookupResult* result, | 2200 LookupResult* result, |
| 2200 Handle<Object> value); | 2201 Handle<Object> value); |
| 2201 | 2202 |
| 2202 // Sets the property value in a normalized object given (key, value, details). | 2203 // Sets the property value in a normalized object given (key, value, details). |
| 2203 // Handles the special representation of JS global objects. | 2204 // Handles the special representation of JS global objects. |
| 2204 static void SetNormalizedProperty(Handle<JSObject> object, | 2205 static void SetNormalizedProperty(Handle<JSObject> object, |
| (...skipping 8105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10310 } else { | 10311 } else { |
| 10311 value &= ~(1 << bit_position); | 10312 value &= ~(1 << bit_position); |
| 10312 } | 10313 } |
| 10313 return value; | 10314 return value; |
| 10314 } | 10315 } |
| 10315 }; | 10316 }; |
| 10316 | 10317 |
| 10317 } } // namespace v8::internal | 10318 } } // namespace v8::internal |
| 10318 | 10319 |
| 10319 #endif // V8_OBJECTS_H_ | 10320 #endif // V8_OBJECTS_H_ |
| OLD | NEW |