| OLD | NEW |
| 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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 int inobject_properties = | 489 int inobject_properties = |
| 490 copy->inobject_properties() + extra_inobject_properties; | 490 copy->inobject_properties() + extra_inobject_properties; |
| 491 copy->set_inobject_properties(inobject_properties); | 491 copy->set_inobject_properties(inobject_properties); |
| 492 copy->set_unused_property_fields(inobject_properties); | 492 copy->set_unused_property_fields(inobject_properties); |
| 493 copy->set_instance_size(copy->instance_size() + instance_size_delta); | 493 copy->set_instance_size(copy->instance_size() + instance_size_delta); |
| 494 copy->set_visitor_id(StaticVisitorBase::GetVisitorId(*copy)); | 494 copy->set_visitor_id(StaticVisitorBase::GetVisitorId(*copy)); |
| 495 return copy; | 495 return copy; |
| 496 } | 496 } |
| 497 | 497 |
| 498 | 498 |
| 499 Handle<Map> Factory::CopyMapDropTransitions(Handle<Map> src) { | 499 Handle<Map> Factory::CopyMap(Handle<Map> src) { |
| 500 CALL_HEAP_FUNCTION(isolate(), | 500 CALL_HEAP_FUNCTION(isolate(), src->Copy(DescriptorArray::MAY_BE_SHARED), Map); |
| 501 src->CopyDropTransitions(DescriptorArray::MAY_BE_SHARED), | |
| 502 Map); | |
| 503 } | 501 } |
| 504 | 502 |
| 505 | 503 |
| 506 Handle<Map> Factory::GetElementsTransitionMap( | 504 Handle<Map> Factory::GetElementsTransitionMap( |
| 507 Handle<JSObject> src, | 505 Handle<JSObject> src, |
| 508 ElementsKind elements_kind) { | 506 ElementsKind elements_kind) { |
| 509 Isolate* i = isolate(); | 507 Isolate* i = isolate(); |
| 510 CALL_HEAP_FUNCTION(i, | 508 CALL_HEAP_FUNCTION(i, |
| 511 src->GetElementsTransitionMap(i, elements_kind), | 509 src->GetElementsTransitionMap(i, elements_kind), |
| 512 Map); | 510 Map); |
| (...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1492 | 1490 |
| 1493 | 1491 |
| 1494 Handle<Object> Factory::ToBoolean(bool value) { | 1492 Handle<Object> Factory::ToBoolean(bool value) { |
| 1495 return Handle<Object>(value | 1493 return Handle<Object>(value |
| 1496 ? isolate()->heap()->true_value() | 1494 ? isolate()->heap()->true_value() |
| 1497 : isolate()->heap()->false_value()); | 1495 : isolate()->heap()->false_value()); |
| 1498 } | 1496 } |
| 1499 | 1497 |
| 1500 | 1498 |
| 1501 } } // namespace v8::internal | 1499 } } // namespace v8::internal |
| OLD | NEW |