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 2513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2524 // to ensure that |filler_value| can be collected without WB here. | 2524 // to ensure that |filler_value| can be collected without WB here. |
2525 inline void InitializeBody(Map* map, | 2525 inline void InitializeBody(Map* map, |
2526 Object* pre_allocated_value, | 2526 Object* pre_allocated_value, |
2527 Object* filler_value); | 2527 Object* filler_value); |
2528 | 2528 |
2529 // Check whether this object references another object | 2529 // Check whether this object references another object |
2530 bool ReferencesObject(Object* obj); | 2530 bool ReferencesObject(Object* obj); |
2531 | 2531 |
2532 // Disalow further properties to be added to the object. | 2532 // Disalow further properties to be added to the object. |
2533 static Handle<Object> PreventExtensions(Handle<JSObject> object); | 2533 static Handle<Object> PreventExtensions(Handle<JSObject> object); |
2534 MUST_USE_RESULT MaybeObject* PreventExtensions(); | |
2535 | 2534 |
2536 // ES5 Object.freeze | 2535 // ES5 Object.freeze |
2537 static Handle<Object> Freeze(Handle<JSObject> object); | 2536 static Handle<Object> Freeze(Handle<JSObject> object); |
2538 | 2537 |
2539 // Called the first time an object is observed with ES7 Object.observe. | 2538 // Called the first time an object is observed with ES7 Object.observe. |
2540 MUST_USE_RESULT MaybeObject* SetObserved(Isolate* isolate); | 2539 MUST_USE_RESULT MaybeObject* SetObserved(Isolate* isolate); |
2541 | 2540 |
2542 // Copy object. | 2541 // Copy object. |
2543 static Handle<JSObject> Copy(Handle<JSObject> object); | 2542 static Handle<JSObject> Copy(Handle<JSObject> object); |
2544 static Handle<JSObject> DeepCopy(Handle<JSObject> object); | 2543 static Handle<JSObject> DeepCopy(Handle<JSObject> object); |
(...skipping 7687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10232 } else { | 10231 } else { |
10233 value &= ~(1 << bit_position); | 10232 value &= ~(1 << bit_position); |
10234 } | 10233 } |
10235 return value; | 10234 return value; |
10236 } | 10235 } |
10237 }; | 10236 }; |
10238 | 10237 |
10239 } } // namespace v8::internal | 10238 } } // namespace v8::internal |
10240 | 10239 |
10241 #endif // V8_OBJECTS_H_ | 10240 #endif // V8_OBJECTS_H_ |
OLD | NEW |