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

Side by Side Diff: src/factory.cc

Issue 15094018: Create AllocationSite objects, pointed to by AllocationSiteInfo. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comment response Created 7 years, 5 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/heap.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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 512
513 Handle<PropertyCell> Factory::NewPropertyCell(Handle<Object> value) { 513 Handle<PropertyCell> Factory::NewPropertyCell(Handle<Object> value) {
514 AllowDeferredHandleDereference convert_to_cell; 514 AllowDeferredHandleDereference convert_to_cell;
515 CALL_HEAP_FUNCTION( 515 CALL_HEAP_FUNCTION(
516 isolate(), 516 isolate(),
517 isolate()->heap()->AllocatePropertyCell(*value), 517 isolate()->heap()->AllocatePropertyCell(*value),
518 PropertyCell); 518 PropertyCell);
519 } 519 }
520 520
521 521
522 Handle<AllocationSite> Factory::NewAllocationSite() {
523 CALL_HEAP_FUNCTION(
524 isolate(),
525 isolate()->heap()->AllocateAllocationSite(),
526 AllocationSite);
527 }
528
529
522 Handle<Map> Factory::NewMap(InstanceType type, 530 Handle<Map> Factory::NewMap(InstanceType type,
523 int instance_size, 531 int instance_size,
524 ElementsKind elements_kind) { 532 ElementsKind elements_kind) {
525 CALL_HEAP_FUNCTION( 533 CALL_HEAP_FUNCTION(
526 isolate(), 534 isolate(),
527 isolate()->heap()->AllocateMap(type, instance_size, elements_kind), 535 isolate()->heap()->AllocateMap(type, instance_size, elements_kind),
528 Map); 536 Map);
529 } 537 }
530 538
531 539
(...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after
1603 return Handle<Object>::null(); 1611 return Handle<Object>::null();
1604 } 1612 }
1605 1613
1606 1614
1607 Handle<Object> Factory::ToBoolean(bool value) { 1615 Handle<Object> Factory::ToBoolean(bool value) {
1608 return value ? true_value() : false_value(); 1616 return value ? true_value() : false_value();
1609 } 1617 }
1610 1618
1611 1619
1612 } } // namespace v8::internal 1620 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698