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

Side by Side Diff: src/elements.h

Issue 210063004: Callers of ElementsAccessor::SetCapacityAndLength() handlified. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | « src/ast.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 // 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 MUST_USE_RESULT virtual Handle<Object> SetLength( 119 MUST_USE_RESULT virtual Handle<Object> SetLength(
120 Handle<JSArray> holder, 120 Handle<JSArray> holder,
121 Handle<Object> new_length) = 0; 121 Handle<Object> new_length) = 0;
122 122
123 // Modifies both the length and capacity of a JSArray, resizing the underlying 123 // Modifies both the length and capacity of a JSArray, resizing the underlying
124 // backing store as necessary. This method does NOT honor the semantics of 124 // backing store as necessary. This method does NOT honor the semantics of
125 // EcmaScript 5.1 15.4.5.2, arrays can be shrunk beyond non-deletable 125 // EcmaScript 5.1 15.4.5.2, arrays can be shrunk beyond non-deletable
126 // elements. This method should only be called for array expansion OR by 126 // elements. This method should only be called for array expansion OR by
127 // runtime JavaScript code that use InternalArrays and don't care about 127 // runtime JavaScript code that use InternalArrays and don't care about
128 // EcmaScript 5.1 semantics. 128 // EcmaScript 5.1 semantics.
129 MUST_USE_RESULT virtual MaybeObject* SetCapacityAndLength(JSArray* array, 129 virtual void SetCapacityAndLength(
130 int capacity, 130 Handle<JSArray> array,
131 int length) = 0; 131 int capacity,
132 int length) = 0;
132 133
133 // Deletes an element in an object, returning a new elements backing store. 134 // Deletes an element in an object, returning a new elements backing store.
134 MUST_USE_RESULT virtual Handle<Object> Delete( 135 MUST_USE_RESULT virtual Handle<Object> Delete(
135 Handle<JSObject> holder, 136 Handle<JSObject> holder,
136 uint32_t key, 137 uint32_t key,
137 JSReceiver::DeleteMode mode) = 0; 138 JSReceiver::DeleteMode mode) = 0;
138 139
139 // If kCopyToEnd is specified as the copy_size to CopyElements, it copies all 140 // If kCopyToEnd is specified as the copy_size to CopyElements, it copies all
140 // of elements from source after source_start to the destination array. 141 // of elements from source after source_start to the destination array.
141 static const int kCopyToEnd = -1; 142 static const int kCopyToEnd = -1;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 217
217 void CheckArrayAbuse(JSObject* obj, const char* op, uint32_t key, 218 void CheckArrayAbuse(JSObject* obj, const char* op, uint32_t key,
218 bool allow_appending = false); 219 bool allow_appending = false);
219 220
220 Handle<Object> ArrayConstructInitializeElements(Handle<JSArray> array, 221 Handle<Object> ArrayConstructInitializeElements(Handle<JSArray> array,
221 Arguments* args); 222 Arguments* args);
222 223
223 } } // namespace v8::internal 224 } } // namespace v8::internal
224 225
225 #endif // V8_ELEMENTS_H_ 226 #endif // V8_ELEMENTS_H_
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/elements.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698