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

Side by Side Diff: src/factory.h

Issue 142693005: A64: Synchronize with r16918. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/d8-readline.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 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 Handle<FixedArrayBase> elements, 321 Handle<FixedArrayBase> elements,
322 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, 322 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND,
323 PretenureFlag pretenure = NOT_TENURED); 323 PretenureFlag pretenure = NOT_TENURED);
324 324
325 void SetElementsCapacityAndLength(Handle<JSArray> array, 325 void SetElementsCapacityAndLength(Handle<JSArray> array,
326 int capacity, 326 int capacity,
327 int length); 327 int length);
328 328
329 void SetContent(Handle<JSArray> array, Handle<FixedArrayBase> elements); 329 void SetContent(Handle<JSArray> array, Handle<FixedArrayBase> elements);
330 330
331 void EnsureCanContainElements(Handle<JSArray> array,
332 Handle<FixedArrayBase> elements,
333 uint32_t length,
334 EnsureElementsMode mode);
335
336 Handle<JSArrayBuffer> NewJSArrayBuffer(); 331 Handle<JSArrayBuffer> NewJSArrayBuffer();
337 332
338 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type); 333 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type);
339 334
340 Handle<JSDataView> NewJSDataView(); 335 Handle<JSDataView> NewJSDataView();
341 336
342 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); 337 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype);
343 338
344 // Change the type of the argument into a JS object/function and reinitialize. 339 // Change the type of the argument into a JS object/function and reinitialize.
345 void BecomeJSObject(Handle<JSReceiver> object); 340 void BecomeJSObject(Handle<JSReceiver> object);
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 void ConfigureInstance(Handle<FunctionTemplateInfo> desc, 450 void ConfigureInstance(Handle<FunctionTemplateInfo> desc,
456 Handle<JSObject> instance, 451 Handle<JSObject> instance,
457 bool* pending_exception); 452 bool* pending_exception);
458 453
459 #define ROOT_ACCESSOR(type, name, camel_name) \ 454 #define ROOT_ACCESSOR(type, name, camel_name) \
460 inline Handle<type> name() { \ 455 inline Handle<type> name() { \
461 return Handle<type>(BitCast<type**>( \ 456 return Handle<type>(BitCast<type**>( \
462 &isolate()->heap()->roots_[Heap::k##camel_name##RootIndex])); \ 457 &isolate()->heap()->roots_[Heap::k##camel_name##RootIndex])); \
463 } 458 }
464 ROOT_LIST(ROOT_ACCESSOR) 459 ROOT_LIST(ROOT_ACCESSOR)
465 #undef ROOT_ACCESSOR_ACCESSOR 460 #undef ROOT_ACCESSOR
461
462 #define STRUCT_MAP_ACCESSOR(NAME, Name, name) \
463 inline Handle<Map> name##_map() { \
464 return Handle<Map>(BitCast<Map**>( \
465 &isolate()->heap()->roots_[Heap::k##Name##MapRootIndex])); \
466 }
467 STRUCT_LIST(STRUCT_MAP_ACCESSOR)
468 #undef STRUCT_MAP_ACCESSOR
466 469
467 #define STRING_ACCESSOR(name, str) \ 470 #define STRING_ACCESSOR(name, str) \
468 inline Handle<String> name() { \ 471 inline Handle<String> name() { \
469 return Handle<String>(BitCast<String**>( \ 472 return Handle<String>(BitCast<String**>( \
470 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \ 473 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \
471 } 474 }
472 INTERNALIZED_STRING_LIST(STRING_ACCESSOR) 475 INTERNALIZED_STRING_LIST(STRING_ACCESSOR)
473 #undef STRING_ACCESSOR 476 #undef STRING_ACCESSOR
474 477
475 Handle<String> hidden_string() { 478 Handle<String> hidden_string() {
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 } 661 }
659 662
660 private: 663 private:
661 Isolate* isolate_; 664 Isolate* isolate_;
662 }; 665 };
663 666
664 667
665 } } // namespace v8::internal 668 } } // namespace v8::internal
666 669
667 #endif // V8_FACTORY_H_ 670 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/d8-readline.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698