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

Side by Side Diff: src/factory.cc

Issue 141363005: A64: Synchronize with r15204. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 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/factory.h ('k') | src/flag-definitions.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 CALL_HEAP_FUNCTION( 475 CALL_HEAP_FUNCTION(
476 isolate(), 476 isolate(),
477 isolate()->heap()->AllocateExternalArray(length, 477 isolate()->heap()->AllocateExternalArray(length,
478 array_type, 478 array_type,
479 external_pointer, 479 external_pointer,
480 pretenure), 480 pretenure),
481 ExternalArray); 481 ExternalArray);
482 } 482 }
483 483
484 484
485 Handle<JSGlobalPropertyCell> Factory::NewJSGlobalPropertyCell( 485 Handle<Cell> Factory::NewCell(Handle<Object> value) {
486 Handle<Object> value) {
487 AllowDeferredHandleDereference convert_to_cell; 486 AllowDeferredHandleDereference convert_to_cell;
488 CALL_HEAP_FUNCTION( 487 CALL_HEAP_FUNCTION(
489 isolate(), 488 isolate(),
490 isolate()->heap()->AllocateJSGlobalPropertyCell(*value), 489 isolate()->heap()->AllocateCell(*value),
491 JSGlobalPropertyCell); 490 Cell);
492 } 491 }
493 492
494 493
494 Handle<PropertyCell> Factory::NewPropertyCell(Handle<Object> value) {
495 AllowDeferredHandleDereference convert_to_cell;
496 CALL_HEAP_FUNCTION(
497 isolate(),
498 isolate()->heap()->AllocatePropertyCell(*value),
499 PropertyCell);
500 }
501
502
495 Handle<Map> Factory::NewMap(InstanceType type, 503 Handle<Map> Factory::NewMap(InstanceType type,
496 int instance_size, 504 int instance_size,
497 ElementsKind elements_kind) { 505 ElementsKind elements_kind) {
498 CALL_HEAP_FUNCTION( 506 CALL_HEAP_FUNCTION(
499 isolate(), 507 isolate(),
500 isolate()->heap()->AllocateMap(type, instance_size, elements_kind), 508 isolate()->heap()->AllocateMap(type, instance_size, elements_kind),
501 Map); 509 Map);
502 } 510 }
503 511
504 512
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after
1564 return Handle<Object>::null(); 1572 return Handle<Object>::null();
1565 } 1573 }
1566 1574
1567 1575
1568 Handle<Object> Factory::ToBoolean(bool value) { 1576 Handle<Object> Factory::ToBoolean(bool value) {
1569 return value ? true_value() : false_value(); 1577 return value ? true_value() : false_value();
1570 } 1578 }
1571 1579
1572 1580
1573 } } // namespace v8::internal 1581 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698