| 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 2627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2638 static Handle<Object> PreventExtensions(Handle<JSObject> object); | 2638 static Handle<Object> PreventExtensions(Handle<JSObject> object); |
| 2639 MUST_USE_RESULT MaybeObject* PreventExtensions(); | 2639 MUST_USE_RESULT MaybeObject* PreventExtensions(); |
| 2640 | 2640 |
| 2641 // ES5 Object.freeze | 2641 // ES5 Object.freeze |
| 2642 MUST_USE_RESULT MaybeObject* Freeze(Isolate* isolate); | 2642 MUST_USE_RESULT MaybeObject* Freeze(Isolate* isolate); |
| 2643 | 2643 |
| 2644 | 2644 |
| 2645 // Called the first time an object is observed with ES7 Object.observe. | 2645 // Called the first time an object is observed with ES7 Object.observe. |
| 2646 MUST_USE_RESULT MaybeObject* SetObserved(Isolate* isolate); | 2646 MUST_USE_RESULT MaybeObject* SetObserved(Isolate* isolate); |
| 2647 | 2647 |
| 2648 // Copy object | 2648 // Copy object. |
| 2649 MUST_USE_RESULT MaybeObject* DeepCopy(Isolate* isolate); | 2649 static Handle<JSObject> Copy(Handle<JSObject> object); |
| 2650 static Handle<JSObject> DeepCopy(Handle<JSObject> object); |
| 2650 | 2651 |
| 2651 // Dispatched behavior. | 2652 // Dispatched behavior. |
| 2652 void JSObjectShortPrint(StringStream* accumulator); | 2653 void JSObjectShortPrint(StringStream* accumulator); |
| 2653 DECLARE_PRINTER(JSObject) | 2654 DECLARE_PRINTER(JSObject) |
| 2654 DECLARE_VERIFIER(JSObject) | 2655 DECLARE_VERIFIER(JSObject) |
| 2655 #ifdef OBJECT_PRINT | 2656 #ifdef OBJECT_PRINT |
| 2656 inline void PrintProperties() { | 2657 inline void PrintProperties() { |
| 2657 PrintProperties(stdout); | 2658 PrintProperties(stdout); |
| 2658 } | 2659 } |
| 2659 void PrintProperties(FILE* out); | 2660 void PrintProperties(FILE* out); |
| (...skipping 7511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10171 } else { | 10172 } else { |
| 10172 value &= ~(1 << bit_position); | 10173 value &= ~(1 << bit_position); |
| 10173 } | 10174 } |
| 10174 return value; | 10175 return value; |
| 10175 } | 10176 } |
| 10176 }; | 10177 }; |
| 10177 | 10178 |
| 10178 } } // namespace v8::internal | 10179 } } // namespace v8::internal |
| 10179 | 10180 |
| 10180 #endif // V8_OBJECTS_H_ | 10181 #endif // V8_OBJECTS_H_ |
| OLD | NEW |