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

Side by Side Diff: src/elements.h

Issue 230733003: ElementsAccessor::Delete() maybehandlified. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebasing on r20629 Created 6 years, 8 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/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 // 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // EcmaScript 5.1 15.4.5.2, arrays can be shrunk beyond non-deletable 154 // EcmaScript 5.1 15.4.5.2, arrays can be shrunk beyond non-deletable
155 // elements. This method should only be called for array expansion OR by 155 // elements. This method should only be called for array expansion OR by
156 // runtime JavaScript code that use InternalArrays and don't care about 156 // runtime JavaScript code that use InternalArrays and don't care about
157 // EcmaScript 5.1 semantics. 157 // EcmaScript 5.1 semantics.
158 virtual void SetCapacityAndLength( 158 virtual void SetCapacityAndLength(
159 Handle<JSArray> array, 159 Handle<JSArray> array,
160 int capacity, 160 int capacity,
161 int length) = 0; 161 int length) = 0;
162 162
163 // Deletes an element in an object, returning a new elements backing store. 163 // Deletes an element in an object, returning a new elements backing store.
164 MUST_USE_RESULT virtual Handle<Object> Delete( 164 MUST_USE_RESULT virtual MaybeHandle<Object> Delete(
165 Handle<JSObject> holder, 165 Handle<JSObject> holder,
166 uint32_t key, 166 uint32_t key,
167 JSReceiver::DeleteMode mode) = 0; 167 JSReceiver::DeleteMode mode) = 0;
168 168
169 // If kCopyToEnd is specified as the copy_size to CopyElements, it copies all 169 // If kCopyToEnd is specified as the copy_size to CopyElements, it copies all
170 // of elements from source after source_start to the destination array. 170 // of elements from source after source_start to the destination array.
171 static const int kCopyToEnd = -1; 171 static const int kCopyToEnd = -1;
172 // If kCopyToEndAndInitializeToHole is specified as the copy_size to 172 // If kCopyToEndAndInitializeToHole is specified as the copy_size to
173 // CopyElements, it copies all of elements from source after source_start to 173 // CopyElements, it copies all of elements from source after source_start to
174 // destination array, padding any remaining uninitialized elements in the 174 // destination array, padding any remaining uninitialized elements in the
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 void CheckArrayAbuse(Handle<JSObject> obj, const char* op, uint32_t key, 257 void CheckArrayAbuse(Handle<JSObject> obj, const char* op, uint32_t key,
258 bool allow_appending = false); 258 bool allow_appending = false);
259 259
260 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( 260 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements(
261 Handle<JSArray> array, 261 Handle<JSArray> array,
262 Arguments* args); 262 Arguments* args);
263 263
264 } } // namespace v8::internal 264 } } // namespace v8::internal
265 265
266 #endif // V8_ELEMENTS_H_ 266 #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