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

Side by Side Diff: src/objects.h

Issue 1154233003: Introduce v8::Object::CreateDataProperty (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 6 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
« no previous file with comments | « src/api.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 2125 matching lines...) Expand 10 before | Expand all | Expand 10 after
2136 // pre_allocated_value and the rest with filler_value. 2136 // pre_allocated_value and the rest with filler_value.
2137 // Note: this call does not update write barrier, the caller is responsible 2137 // Note: this call does not update write barrier, the caller is responsible
2138 // to ensure that |filler_value| can be collected without WB here. 2138 // to ensure that |filler_value| can be collected without WB here.
2139 inline void InitializeBody(Map* map, 2139 inline void InitializeBody(Map* map,
2140 Object* pre_allocated_value, 2140 Object* pre_allocated_value,
2141 Object* filler_value); 2141 Object* filler_value);
2142 2142
2143 // Check whether this object references another object 2143 // Check whether this object references another object
2144 bool ReferencesObject(Object* obj); 2144 bool ReferencesObject(Object* obj);
2145 2145
2146 // Disalow further properties to be added to the object. 2146 // Disalow further properties to be added to the oject.
2147 MUST_USE_RESULT static MaybeHandle<Object> PreventExtensions( 2147 MUST_USE_RESULT static MaybeHandle<Object> PreventExtensions(
2148 Handle<JSObject> object); 2148 Handle<JSObject> object);
2149 2149
2150 bool IsExtensible();
2151
2150 // ES5 Object.seal 2152 // ES5 Object.seal
2151 MUST_USE_RESULT static MaybeHandle<Object> Seal(Handle<JSObject> object); 2153 MUST_USE_RESULT static MaybeHandle<Object> Seal(Handle<JSObject> object);
2152 2154
2153 // ES5 Object.freeze 2155 // ES5 Object.freeze
2154 MUST_USE_RESULT static MaybeHandle<Object> Freeze(Handle<JSObject> object); 2156 MUST_USE_RESULT static MaybeHandle<Object> Freeze(Handle<JSObject> object);
2155 2157
2156 // Called the first time an object is observed with ES7 Object.observe. 2158 // Called the first time an object is observed with ES7 Object.observe.
2157 static void SetObserved(Handle<JSObject> object); 2159 static void SetObserved(Handle<JSObject> object);
2158 2160
2159 // Copy object. 2161 // Copy object.
(...skipping 8994 matching lines...) Expand 10 before | Expand all | Expand 10 after
11154 } else { 11156 } else {
11155 value &= ~(1 << bit_position); 11157 value &= ~(1 << bit_position);
11156 } 11158 }
11157 return value; 11159 return value;
11158 } 11160 }
11159 }; 11161 };
11160 11162
11161 } } // namespace v8::internal 11163 } } // namespace v8::internal
11162 11164
11163 #endif // V8_OBJECTS_H_ 11165 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698