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

Side by Side Diff: src/objects.h

Issue 27070002: Handlify JSObject::SetObserved (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: cr changes Created 7 years, 2 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 2523 matching lines...) Expand 10 before | Expand all | Expand 10 after
2534 // Check whether this object references another object 2534 // Check whether this object references another object
2535 bool ReferencesObject(Object* obj); 2535 bool ReferencesObject(Object* obj);
2536 2536
2537 // Disalow further properties to be added to the object. 2537 // Disalow further properties to be added to the object.
2538 static Handle<Object> PreventExtensions(Handle<JSObject> object); 2538 static Handle<Object> PreventExtensions(Handle<JSObject> object);
2539 2539
2540 // ES5 Object.freeze 2540 // ES5 Object.freeze
2541 static Handle<Object> Freeze(Handle<JSObject> object); 2541 static Handle<Object> Freeze(Handle<JSObject> object);
2542 2542
2543 // Called the first time an object is observed with ES7 Object.observe. 2543 // Called the first time an object is observed with ES7 Object.observe.
2544 MUST_USE_RESULT MaybeObject* SetObserved(Isolate* isolate); 2544 static void SetObserved(Handle<JSObject> object);
2545 2545
2546 // Copy object. 2546 // Copy object.
2547 static Handle<JSObject> Copy(Handle<JSObject> object); 2547 static Handle<JSObject> Copy(Handle<JSObject> object);
2548 static Handle<JSObject> DeepCopy(Handle<JSObject> object); 2548 static Handle<JSObject> DeepCopy(Handle<JSObject> object);
2549 2549
2550 // Casting. 2550 // Casting.
2551 static inline JSObject* cast(Object* obj); 2551 static inline JSObject* cast(Object* obj);
2552 2552
2553 // Dispatched behavior. 2553 // Dispatched behavior.
2554 void JSObjectShortPrint(StringStream* accumulator); 2554 void JSObjectShortPrint(StringStream* accumulator);
(...skipping 3415 matching lines...) Expand 10 before | Expand all | Expand 10 after
5970 TransitionFlag flag); 5970 TransitionFlag flag);
5971 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptor( 5971 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptor(
5972 DescriptorArray* descriptors, 5972 DescriptorArray* descriptors,
5973 Descriptor* descriptor, 5973 Descriptor* descriptor,
5974 int index, 5974 int index,
5975 TransitionFlag flag); 5975 TransitionFlag flag);
5976 MUST_USE_RESULT MaybeObject* AsElementsKind(ElementsKind kind); 5976 MUST_USE_RESULT MaybeObject* AsElementsKind(ElementsKind kind);
5977 5977
5978 MUST_USE_RESULT MaybeObject* CopyAsElementsKind(ElementsKind kind, 5978 MUST_USE_RESULT MaybeObject* CopyAsElementsKind(ElementsKind kind,
5979 TransitionFlag flag); 5979 TransitionFlag flag);
5980
5981 static Handle<Map> CopyForObserved(Handle<Map> map);
5980 MUST_USE_RESULT MaybeObject* CopyForObserved(); 5982 MUST_USE_RESULT MaybeObject* CopyForObserved();
5981 5983
5982 static Handle<Map> CopyNormalized(Handle<Map> map, 5984 static Handle<Map> CopyNormalized(Handle<Map> map,
5983 PropertyNormalizationMode mode, 5985 PropertyNormalizationMode mode,
5984 NormalizedMapSharingMode sharing); 5986 NormalizedMapSharingMode sharing);
5985 MUST_USE_RESULT MaybeObject* CopyNormalized(PropertyNormalizationMode mode, 5987 MUST_USE_RESULT MaybeObject* CopyNormalized(PropertyNormalizationMode mode,
5986 NormalizedMapSharingMode sharing); 5988 NormalizedMapSharingMode sharing);
5987 5989
5988 inline void AppendDescriptor(Descriptor* desc, 5990 inline void AppendDescriptor(Descriptor* desc,
5989 const DescriptorArray::WhitenessWitness&); 5991 const DescriptorArray::WhitenessWitness&);
(...skipping 4417 matching lines...) Expand 10 before | Expand all | Expand 10 after
10407 } else { 10409 } else {
10408 value &= ~(1 << bit_position); 10410 value &= ~(1 << bit_position);
10409 } 10411 }
10410 return value; 10412 return value;
10411 } 10413 }
10412 }; 10414 };
10413 10415
10414 } } // namespace v8::internal 10416 } } // namespace v8::internal
10415 10417
10416 #endif // V8_OBJECTS_H_ 10418 #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