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 2200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2211 // Check whether this object references another object | 2211 // Check whether this object references another object |
2212 bool ReferencesObject(Object* obj); | 2212 bool ReferencesObject(Object* obj); |
2213 | 2213 |
2214 // Casting. | 2214 // Casting. |
2215 static inline JSObject* cast(Object* obj); | 2215 static inline JSObject* cast(Object* obj); |
2216 | 2216 |
2217 // Disalow further properties to be added to the object. | 2217 // Disalow further properties to be added to the object. |
2218 static Handle<Object> PreventExtensions(Handle<JSObject> object); | 2218 static Handle<Object> PreventExtensions(Handle<JSObject> object); |
2219 MUST_USE_RESULT MaybeObject* PreventExtensions(); | 2219 MUST_USE_RESULT MaybeObject* PreventExtensions(); |
2220 | 2220 |
| 2221 // Copy object |
| 2222 MUST_USE_RESULT MaybeObject* DeepCopy(Isolate* isolate); |
2221 | 2223 |
2222 // Dispatched behavior. | 2224 // Dispatched behavior. |
2223 void JSObjectShortPrint(StringStream* accumulator); | 2225 void JSObjectShortPrint(StringStream* accumulator); |
2224 DECLARE_PRINTER(JSObject) | 2226 DECLARE_PRINTER(JSObject) |
2225 DECLARE_VERIFIER(JSObject) | 2227 DECLARE_VERIFIER(JSObject) |
2226 #ifdef OBJECT_PRINT | 2228 #ifdef OBJECT_PRINT |
2227 inline void PrintProperties() { | 2229 inline void PrintProperties() { |
2228 PrintProperties(stdout); | 2230 PrintProperties(stdout); |
2229 } | 2231 } |
2230 void PrintProperties(FILE* out); | 2232 void PrintProperties(FILE* out); |
(...skipping 7070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9301 } else { | 9303 } else { |
9302 value &= ~(1 << bit_position); | 9304 value &= ~(1 << bit_position); |
9303 } | 9305 } |
9304 return value; | 9306 return value; |
9305 } | 9307 } |
9306 }; | 9308 }; |
9307 | 9309 |
9308 } } // namespace v8::internal | 9310 } } // namespace v8::internal |
9309 | 9311 |
9310 #endif // V8_OBJECTS_H_ | 9312 #endif // V8_OBJECTS_H_ |
OLD | NEW |