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

Side by Side Diff: src/elements.h

Issue 1218813012: Cleanup Delete backend implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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/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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 } 55 }
56 56
57 // Modifies the length data property as specified for JSArrays and resizes the 57 // Modifies the length data property as specified for JSArrays and resizes the
58 // underlying backing store accordingly. The method honors the semantics of 58 // underlying backing store accordingly. The method honors the semantics of
59 // changing array sizes as defined in EcmaScript 5.1 15.4.5.2, i.e. array that 59 // changing array sizes as defined in EcmaScript 5.1 15.4.5.2, i.e. array that
60 // have non-deletable elements can only be shrunk to the size of highest 60 // have non-deletable elements can only be shrunk to the size of highest
61 // element that is non-deletable. 61 // element that is non-deletable.
62 virtual void SetLength(Handle<JSArray> holder, uint32_t new_length) = 0; 62 virtual void SetLength(Handle<JSArray> holder, uint32_t new_length) = 0;
63 63
64 // Deletes an element in an object. 64 // Deletes an element in an object.
65 virtual void Delete(Handle<JSObject> holder, uint32_t key, 65 virtual void Delete(Handle<JSObject> holder, uint32_t index) = 0;
66 LanguageMode language_mode) = 0;
67 66
68 // If kCopyToEnd is specified as the copy_size to CopyElements, it copies all 67 // If kCopyToEnd is specified as the copy_size to CopyElements, it copies all
69 // of elements from source after source_start to the destination array. 68 // of elements from source after source_start to the destination array.
70 static const int kCopyToEnd = -1; 69 static const int kCopyToEnd = -1;
71 // If kCopyToEndAndInitializeToHole is specified as the copy_size to 70 // If kCopyToEndAndInitializeToHole is specified as the copy_size to
72 // CopyElements, it copies all of elements from source after source_start to 71 // CopyElements, it copies all of elements from source after source_start to
73 // destination array, padding any remaining uninitialized elements in the 72 // destination array, padding any remaining uninitialized elements in the
74 // destination array with the hole. 73 // destination array with the hole.
75 static const int kCopyToEndAndInitializeToHole = -2; 74 static const int kCopyToEndAndInitializeToHole = -2;
76 75
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 void CheckArrayAbuse(Handle<JSObject> obj, const char* op, uint32_t key, 168 void CheckArrayAbuse(Handle<JSObject> obj, const char* op, uint32_t key,
170 bool allow_appending = false); 169 bool allow_appending = false);
171 170
172 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( 171 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements(
173 Handle<JSArray> array, 172 Handle<JSArray> array,
174 Arguments* args); 173 Arguments* args);
175 174
176 } } // namespace v8::internal 175 } } // namespace v8::internal
177 176
178 #endif // V8_ELEMENTS_H_ 177 #endif // V8_ELEMENTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/elements.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698