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

Side by Side Diff: src/factory.cc

Issue 17064002: Refactor only: Rename JSGlobaPropertyCell to PropertyCell (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 484
485 Handle<Cell> Factory::NewCell(Handle<Object> value) { 485 Handle<Cell> Factory::NewCell(Handle<Object> value) {
486 AllowDeferredHandleDereference convert_to_cell; 486 AllowDeferredHandleDereference convert_to_cell;
487 CALL_HEAP_FUNCTION( 487 CALL_HEAP_FUNCTION(
488 isolate(), 488 isolate(),
489 isolate()->heap()->AllocateCell(*value), 489 isolate()->heap()->AllocateCell(*value),
490 Cell); 490 Cell);
491 } 491 }
492 492
493 493
494 Handle<JSGlobalPropertyCell> Factory::NewJSGlobalPropertyCell( 494 Handle<PropertyCell> Factory::NewPropertyCell(Handle<Object> value) {
495 Handle<Object> value) {
496 AllowDeferredHandleDereference convert_to_cell; 495 AllowDeferredHandleDereference convert_to_cell;
497 CALL_HEAP_FUNCTION( 496 CALL_HEAP_FUNCTION(
498 isolate(), 497 isolate(),
499 isolate()->heap()->AllocateJSGlobalPropertyCell(*value), 498 isolate()->heap()->AllocatePropertyCell(*value),
500 JSGlobalPropertyCell); 499 PropertyCell);
501 } 500 }
502 501
503 502
504 Handle<Map> Factory::NewMap(InstanceType type, 503 Handle<Map> Factory::NewMap(InstanceType type,
505 int instance_size, 504 int instance_size,
506 ElementsKind elements_kind) { 505 ElementsKind elements_kind) {
507 CALL_HEAP_FUNCTION( 506 CALL_HEAP_FUNCTION(
508 isolate(), 507 isolate(),
509 isolate()->heap()->AllocateMap(type, instance_size, elements_kind), 508 isolate()->heap()->AllocateMap(type, instance_size, elements_kind),
510 Map); 509 Map);
(...skipping 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after
1573 return Handle<Object>::null(); 1572 return Handle<Object>::null();
1574 } 1573 }
1575 1574
1576 1575
1577 Handle<Object> Factory::ToBoolean(bool value) { 1576 Handle<Object> Factory::ToBoolean(bool value) {
1578 return value ? true_value() : false_value(); 1577 return value ? true_value() : false_value();
1579 } 1578 }
1580 1579
1581 1580
1582 } } // namespace v8::internal 1581 } } // 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