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/elements.h

Issue 854493004: Remove ForceDelete (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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/elements.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_ELEMENTS_H_ 5 #ifndef V8_ELEMENTS_H_
6 #define V8_ELEMENTS_H_ 6 #define V8_ELEMENTS_H_
7 7
8 #include "src/elements-kind.h" 8 #include "src/elements-kind.h"
9 #include "src/heap/heap.h" 9 #include "src/heap/heap.h"
10 #include "src/isolate.h" 10 #include "src/isolate.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // elements. This method should only be called for array expansion OR by 114 // elements. This method should only be called for array expansion OR by
115 // runtime JavaScript code that use InternalArrays and don't care about 115 // runtime JavaScript code that use InternalArrays and don't care about
116 // EcmaScript 5.1 semantics. 116 // EcmaScript 5.1 semantics.
117 virtual void SetCapacityAndLength( 117 virtual void SetCapacityAndLength(
118 Handle<JSArray> array, 118 Handle<JSArray> array,
119 int capacity, 119 int capacity,
120 int length) = 0; 120 int length) = 0;
121 121
122 // Deletes an element in an object, returning a new elements backing store. 122 // Deletes an element in an object, returning a new elements backing store.
123 MUST_USE_RESULT virtual MaybeHandle<Object> Delete( 123 MUST_USE_RESULT virtual MaybeHandle<Object> Delete(
124 Handle<JSObject> holder, 124 Handle<JSObject> holder, uint32_t key, StrictMode strict_mode) = 0;
125 uint32_t key,
126 JSReceiver::DeleteMode mode) = 0;
127 125
128 // If kCopyToEnd is specified as the copy_size to CopyElements, it copies all 126 // If kCopyToEnd is specified as the copy_size to CopyElements, it copies all
129 // of elements from source after source_start to the destination array. 127 // of elements from source after source_start to the destination array.
130 static const int kCopyToEnd = -1; 128 static const int kCopyToEnd = -1;
131 // If kCopyToEndAndInitializeToHole is specified as the copy_size to 129 // If kCopyToEndAndInitializeToHole is specified as the copy_size to
132 // CopyElements, it copies all of elements from source after source_start to 130 // CopyElements, it copies all of elements from source after source_start to
133 // destination array, padding any remaining uninitialized elements in the 131 // destination array, padding any remaining uninitialized elements in the
134 // destination array with the hole. 132 // destination array with the hole.
135 static const int kCopyToEndAndInitializeToHole = -2; 133 static const int kCopyToEndAndInitializeToHole = -2;
136 134
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 void CheckArrayAbuse(Handle<JSObject> obj, const char* op, uint32_t key, 212 void CheckArrayAbuse(Handle<JSObject> obj, const char* op, uint32_t key,
215 bool allow_appending = false); 213 bool allow_appending = false);
216 214
217 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( 215 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements(
218 Handle<JSArray> array, 216 Handle<JSArray> array,
219 Arguments* args); 217 Arguments* args);
220 218
221 } } // namespace v8::internal 219 } } // namespace v8::internal
222 220
223 #endif // V8_ELEMENTS_H_ 221 #endif // V8_ELEMENTS_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/elements.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698