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

Side by Side Diff: src/objects.h

Issue 2915863004: [runtime] PreventExtensionsWithTransition: before adding the new (Closed)
Patch Set: [runtime] fix memory leak in PreventExtensionsWithTransition Created 3 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 | « 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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #include <memory> 9 #include <memory>
10 10
(...skipping 2462 matching lines...) Expand 10 before | Expand all | Expand 10 after
2473 // the caller to initialize object header. Fill the pre-allocated fields with 2473 // the caller to initialize object header. Fill the pre-allocated fields with
2474 // pre_allocated_value and the rest with filler_value. 2474 // pre_allocated_value and the rest with filler_value.
2475 // Note: this call does not update write barrier, the caller is responsible 2475 // Note: this call does not update write barrier, the caller is responsible
2476 // to ensure that |filler_value| can be collected without WB here. 2476 // to ensure that |filler_value| can be collected without WB here.
2477 inline void InitializeBody(Map* map, int start_offset, 2477 inline void InitializeBody(Map* map, int start_offset,
2478 Object* pre_allocated_value, Object* filler_value); 2478 Object* pre_allocated_value, Object* filler_value);
2479 2479
2480 // Check whether this object references another object 2480 // Check whether this object references another object
2481 bool ReferencesObject(Object* obj); 2481 bool ReferencesObject(Object* obj);
2482 2482
2483 MUST_USE_RESULT static Maybe<bool> TestIntegrityLevel(Handle<JSObject> object,
2484 IntegrityLevel lvl);
2485
2483 MUST_USE_RESULT static Maybe<bool> PreventExtensions( 2486 MUST_USE_RESULT static Maybe<bool> PreventExtensions(
2484 Handle<JSObject> object, ShouldThrow should_throw); 2487 Handle<JSObject> object, ShouldThrow should_throw);
2485 2488
2486 static bool IsExtensible(Handle<JSObject> object); 2489 static bool IsExtensible(Handle<JSObject> object);
2487 2490
2488 // Copy object. 2491 // Copy object.
2489 enum DeepCopyHints { kNoHints = 0, kObjectIsShallow = 1 }; 2492 enum DeepCopyHints { kNoHints = 0, kObjectIsShallow = 1 };
2490 2493
2491 MUST_USE_RESULT static MaybeHandle<JSObject> DeepCopy( 2494 MUST_USE_RESULT static MaybeHandle<JSObject> DeepCopy(
2492 Handle<JSObject> object, 2495 Handle<JSObject> object,
(...skipping 4774 matching lines...) Expand 10 before | Expand all | Expand 10 after
7267 } 7270 }
7268 }; 7271 };
7269 7272
7270 7273
7271 } // NOLINT, false-positive due to second-order macros. 7274 } // NOLINT, false-positive due to second-order macros.
7272 } // NOLINT, false-positive due to second-order macros. 7275 } // NOLINT, false-positive due to second-order macros.
7273 7276
7274 #include "src/objects/object-macros-undef.h" 7277 #include "src/objects/object-macros-undef.h"
7275 7278
7276 #endif // V8_OBJECTS_H_ 7279 #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