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

Side by Side Diff: src/factory.cc

Issue 16631002: Separate Cell and PropertyCell spaces (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove Mips changes Created 7 years, 6 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/full-codegen.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<Cell> Factory::NewCell(Handle<Object> value) {
486 AllowDeferredHandleDereference convert_to_cell;
487 CALL_HEAP_FUNCTION(
488 isolate(),
489 isolate()->heap()->AllocateCell(*value),
490 Cell);
491 }
492
493
485 Handle<JSGlobalPropertyCell> Factory::NewJSGlobalPropertyCell( 494 Handle<JSGlobalPropertyCell> Factory::NewJSGlobalPropertyCell(
486 Handle<Object> value) { 495 Handle<Object> value) {
487 AllowDeferredHandleDereference convert_to_cell; 496 AllowDeferredHandleDereference convert_to_cell;
488 CALL_HEAP_FUNCTION( 497 CALL_HEAP_FUNCTION(
489 isolate(), 498 isolate(),
490 isolate()->heap()->AllocateJSGlobalPropertyCell(*value), 499 isolate()->heap()->AllocateJSGlobalPropertyCell(*value),
491 JSGlobalPropertyCell); 500 JSGlobalPropertyCell);
492 } 501 }
493 502
494 503
(...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after
1564 return Handle<Object>::null(); 1573 return Handle<Object>::null();
1565 } 1574 }
1566 1575
1567 1576
1568 Handle<Object> Factory::ToBoolean(bool value) { 1577 Handle<Object> Factory::ToBoolean(bool value) {
1569 return value ? true_value() : false_value(); 1578 return value ? true_value() : false_value();
1570 } 1579 }
1571 1580
1572 1581
1573 } } // namespace v8::internal 1582 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698