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

Side by Side Diff: src/objects.h

Issue 22934006: Handlify JSObject::DeepCopy method. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Toon Verwaest. Created 7 years, 3 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 | « src/isolate.cc ('k') | 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 2627 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698