Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: src/objects.h

Issue 13527005: Move DeepCopy of JSObject from runtime to object. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698