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

Side by Side Diff: src/objects.h

Issue 229943006: ElementsAccessor::SetLength() maybehandlified. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | « src/ic.cc ('k') | src/objects.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 10222 matching lines...) Expand 10 before | Expand all | Expand 10 after
10233 Object* value); 10233 Object* value);
10234 10234
10235 // Initialize the array with the given capacity. The function may 10235 // Initialize the array with the given capacity. The function may
10236 // fail due to out-of-memory situations, but only if the requested 10236 // fail due to out-of-memory situations, but only if the requested
10237 // capacity is non-zero. 10237 // capacity is non-zero.
10238 static void Initialize(Handle<JSArray> array, int capacity, int length = 0); 10238 static void Initialize(Handle<JSArray> array, int capacity, int length = 0);
10239 10239
10240 // Initializes the array to a certain length. 10240 // Initializes the array to a certain length.
10241 inline bool AllowsSetElementsLength(); 10241 inline bool AllowsSetElementsLength();
10242 // Can cause GC. 10242 // Can cause GC.
10243 static Handle<Object> SetElementsLength(Handle<JSArray> array, 10243 MUST_USE_RESULT static MaybeHandle<Object> SetElementsLength(
10244 Handle<Object> length); 10244 Handle<JSArray> array,
10245 Handle<Object> length);
10245 10246
10246 // Set the content of the array to the content of storage. 10247 // Set the content of the array to the content of storage.
10247 static inline void SetContent(Handle<JSArray> array, 10248 static inline void SetContent(Handle<JSArray> array,
10248 Handle<FixedArrayBase> storage); 10249 Handle<FixedArrayBase> storage);
10249 10250
10250 // Casting. 10251 // Casting.
10251 static inline JSArray* cast(Object* obj); 10252 static inline JSArray* cast(Object* obj);
10252 10253
10253 // Ensures that the fixed array backing the JSArray has at 10254 // Ensures that the fixed array backing the JSArray has at
10254 // least the stated size. 10255 // least the stated size.
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
11013 } else { 11014 } else {
11014 value &= ~(1 << bit_position); 11015 value &= ~(1 << bit_position);
11015 } 11016 }
11016 return value; 11017 return value;
11017 } 11018 }
11018 }; 11019 };
11019 11020
11020 } } // namespace v8::internal 11021 } } // namespace v8::internal
11021 11022
11022 #endif // V8_OBJECTS_H_ 11023 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698