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

Side by Side Diff: src/factory.h

Issue 1257223002: Revert of Remove ExternalArray, derived types, and element kinds (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/elements-kind.cc ('k') | src/factory.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_FACTORY_H_ 5 #ifndef V8_FACTORY_H_
6 #define V8_FACTORY_H_ 6 #define V8_FACTORY_H_
7 7
8 #include "src/isolate.h" 8 #include "src/isolate.h"
9 #include "src/messages.h" 9 #include "src/messages.h"
10 10
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // Allocate a new foreign object. The foreign is pretenured (allocated 279 // Allocate a new foreign object. The foreign is pretenured (allocated
280 // directly in the old generation). 280 // directly in the old generation).
281 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign); 281 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign);
282 282
283 Handle<ByteArray> NewByteArray(int length, 283 Handle<ByteArray> NewByteArray(int length,
284 PretenureFlag pretenure = NOT_TENURED); 284 PretenureFlag pretenure = NOT_TENURED);
285 285
286 Handle<BytecodeArray> NewBytecodeArray(int length, const byte* raw_bytecodes, 286 Handle<BytecodeArray> NewBytecodeArray(int length, const byte* raw_bytecodes,
287 int frame_size); 287 int frame_size);
288 288
289 Handle<FixedTypedArrayBase> NewFixedTypedArrayWithExternalPointer( 289 Handle<ExternalArray> NewExternalArray(
290 int length, ExternalArrayType array_type, void* external_pointer, 290 int length,
291 ExternalArrayType array_type,
292 void* external_pointer,
291 PretenureFlag pretenure = NOT_TENURED); 293 PretenureFlag pretenure = NOT_TENURED);
292 294
293 Handle<FixedTypedArrayBase> NewFixedTypedArray( 295 Handle<FixedTypedArrayBase> NewFixedTypedArray(
294 int length, ExternalArrayType array_type, bool initialize, 296 int length, ExternalArrayType array_type, bool initialize,
295 PretenureFlag pretenure = NOT_TENURED); 297 PretenureFlag pretenure = NOT_TENURED);
296 298
297 Handle<Cell> NewCell(Handle<Object> value); 299 Handle<Cell> NewCell(Handle<Object> value);
298 300
299 Handle<PropertyCell> NewPropertyCell(); 301 Handle<PropertyCell> NewPropertyCell();
300 302
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 // Reinitialize a JSProxy into an (empty) JS object of respective type and 739 // Reinitialize a JSProxy into an (empty) JS object of respective type and
738 // size, but keeping the original prototype. The receiver must have at least 740 // size, but keeping the original prototype. The receiver must have at least
739 // the size of the new object. The object is reinitialized and behaves as an 741 // the size of the new object. The object is reinitialized and behaves as an
740 // object that has been freshly allocated. 742 // object that has been freshly allocated.
741 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); 743 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size);
742 }; 744 };
743 745
744 } } // namespace v8::internal 746 } } // namespace v8::internal
745 747
746 #endif // V8_FACTORY_H_ 748 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/elements-kind.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698