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

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: cleanup 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') | src/runtime.cc » ('J')
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 2520 matching lines...) Expand 10 before | Expand all | Expand 10 after
2531 // Check whether this object references another object 2531 // Check whether this object references another object
2532 bool ReferencesObject(Object* obj); 2532 bool ReferencesObject(Object* obj);
2533 2533
2534 // Disalow further properties to be added to the object. 2534 // Disalow further properties to be added to the object.
2535 static Handle<Object> PreventExtensions(Handle<JSObject> object); 2535 static Handle<Object> PreventExtensions(Handle<JSObject> object);
2536 2536
2537 // ES5 Object.freeze 2537 // ES5 Object.freeze
2538 static Handle<Object> Freeze(Handle<JSObject> object); 2538 static Handle<Object> Freeze(Handle<JSObject> object);
2539 2539
2540 // Called the first time an object is observed with ES7 Object.observe. 2540 // Called the first time an object is observed with ES7 Object.observe.
2541 MUST_USE_RESULT MaybeObject* SetObserved(Isolate* isolate); 2541 static void SetObserved(Handle<JSObject> object);
2542 2542
2543 // Copy object. 2543 // Copy object.
2544 static Handle<JSObject> Copy(Handle<JSObject> object); 2544 static Handle<JSObject> Copy(Handle<JSObject> object);
2545 static Handle<JSObject> DeepCopy(Handle<JSObject> object); 2545 static Handle<JSObject> DeepCopy(Handle<JSObject> object);
2546 2546
2547 // Casting. 2547 // Casting.
2548 static inline JSObject* cast(Object* obj); 2548 static inline JSObject* cast(Object* obj);
2549 2549
2550 // Dispatched behavior. 2550 // Dispatched behavior.
2551 void JSObjectShortPrint(StringStream* accumulator); 2551 void JSObjectShortPrint(StringStream* accumulator);
(...skipping 3321 matching lines...) Expand 10 before | Expand all | Expand 10 after
5873 TransitionFlag flag); 5873 TransitionFlag flag);
5874 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptor( 5874 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptor(
5875 DescriptorArray* descriptors, 5875 DescriptorArray* descriptors,
5876 Descriptor* descriptor, 5876 Descriptor* descriptor,
5877 int index, 5877 int index,
5878 TransitionFlag flag); 5878 TransitionFlag flag);
5879 MUST_USE_RESULT MaybeObject* AsElementsKind(ElementsKind kind); 5879 MUST_USE_RESULT MaybeObject* AsElementsKind(ElementsKind kind);
5880 5880
5881 MUST_USE_RESULT MaybeObject* CopyAsElementsKind(ElementsKind kind, 5881 MUST_USE_RESULT MaybeObject* CopyAsElementsKind(ElementsKind kind,
5882 TransitionFlag flag); 5882 TransitionFlag flag);
5883
5884 static Handle<Map> CopyForObserved(Handle<Map> map);
5883 MUST_USE_RESULT MaybeObject* CopyForObserved(); 5885 MUST_USE_RESULT MaybeObject* CopyForObserved();
5884 5886
5885 static Handle<Map> CopyNormalized(Handle<Map> map, 5887 static Handle<Map> CopyNormalized(Handle<Map> map,
5886 PropertyNormalizationMode mode, 5888 PropertyNormalizationMode mode,
5887 NormalizedMapSharingMode sharing); 5889 NormalizedMapSharingMode sharing);
5888 MUST_USE_RESULT MaybeObject* CopyNormalized(PropertyNormalizationMode mode, 5890 MUST_USE_RESULT MaybeObject* CopyNormalized(PropertyNormalizationMode mode,
5889 NormalizedMapSharingMode sharing); 5891 NormalizedMapSharingMode sharing);
5890 5892
5891 inline void AppendDescriptor(Descriptor* desc, 5893 inline void AppendDescriptor(Descriptor* desc,
5892 const DescriptorArray::WhitenessWitness&); 5894 const DescriptorArray::WhitenessWitness&);
(...skipping 4417 matching lines...) Expand 10 before | Expand all | Expand 10 after
10310 } else { 10312 } else {
10311 value &= ~(1 << bit_position); 10313 value &= ~(1 << bit_position);
10312 } 10314 }
10313 return value; 10315 return value;
10314 } 10316 }
10315 }; 10317 };
10316 10318
10317 } } // namespace v8::internal 10319 } } // namespace v8::internal
10318 10320
10319 #endif // V8_OBJECTS_H_ 10321 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | src/runtime.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698