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

Side by Side Diff: src/factory.h

Issue 101413006: Implement in-heap backing store for typed arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Self-review Created 7 years 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
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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 245
246 Handle<ByteArray> NewByteArray(int length, 246 Handle<ByteArray> NewByteArray(int length,
247 PretenureFlag pretenure = NOT_TENURED); 247 PretenureFlag pretenure = NOT_TENURED);
248 248
249 Handle<ExternalArray> NewExternalArray( 249 Handle<ExternalArray> NewExternalArray(
250 int length, 250 int length,
251 ExternalArrayType array_type, 251 ExternalArrayType array_type,
252 void* external_pointer, 252 void* external_pointer,
253 PretenureFlag pretenure = NOT_TENURED); 253 PretenureFlag pretenure = NOT_TENURED);
254 254
255 Handle<FixedTypedArrayBase> NewFixedTypedArray(
256 int length,
257 ExternalArrayType array_type,
258 PretenureFlag pretenure = NOT_TENURED);
259
255 Handle<Cell> NewCell(Handle<Object> value); 260 Handle<Cell> NewCell(Handle<Object> value);
256 261
257 Handle<PropertyCell> NewPropertyCellWithHole(); 262 Handle<PropertyCell> NewPropertyCellWithHole();
258 263
259 Handle<PropertyCell> NewPropertyCell(Handle<Object> value); 264 Handle<PropertyCell> NewPropertyCell(Handle<Object> value);
260 265
261 Handle<AllocationSite> NewAllocationSite(); 266 Handle<AllocationSite> NewAllocationSite();
262 267
263 Handle<Map> NewMap( 268 Handle<Map> NewMap(
264 InstanceType type, 269 InstanceType type,
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 isolate()); 593 isolate());
589 } else { 594 } else {
590 return NewNumber(static_cast<double>(value), pretenure); 595 return NewNumber(static_cast<double>(value), pretenure);
591 } 596 }
592 } 597 }
593 598
594 599
595 } } // namespace v8::internal 600 } } // namespace v8::internal
596 601
597 #endif // V8_FACTORY_H_ 602 #endif // V8_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698