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

Side by Side Diff: src/elements.h

Issue 894683003: Introduce LanguageMode, drop StrictMode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased (w/ conflicts) Created 5 years, 10 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/contexts.h ('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, uint32_t key, StrictMode strict_mode) = 0; 124 Handle<JSObject> holder, uint32_t key, LanguageMode language_mode) = 0;
125 125
126 // 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
127 // of elements from source after source_start to the destination array. 127 // of elements from source after source_start to the destination array.
128 static const int kCopyToEnd = -1; 128 static const int kCopyToEnd = -1;
129 // If kCopyToEndAndInitializeToHole is specified as the copy_size to 129 // If kCopyToEndAndInitializeToHole is specified as the copy_size to
130 // 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
131 // destination array, padding any remaining uninitialized elements in the 131 // destination array, padding any remaining uninitialized elements in the
132 // destination array with the hole. 132 // destination array with the hole.
133 static const int kCopyToEndAndInitializeToHole = -2; 133 static const int kCopyToEndAndInitializeToHole = -2;
134 134
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 void CheckArrayAbuse(Handle<JSObject> obj, const char* op, uint32_t key, 212 void CheckArrayAbuse(Handle<JSObject> obj, const char* op, uint32_t key,
213 bool allow_appending = false); 213 bool allow_appending = false);
214 214
215 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements( 215 MUST_USE_RESULT MaybeHandle<Object> ArrayConstructInitializeElements(
216 Handle<JSArray> array, 216 Handle<JSArray> array,
217 Arguments* args); 217 Arguments* args);
218 218
219 } } // namespace v8::internal 219 } } // namespace v8::internal
220 220
221 #endif // V8_ELEMENTS_H_ 221 #endif // V8_ELEMENTS_H_
OLDNEW
« no previous file with comments | « src/contexts.h ('k') | src/elements.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698