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

Side by Side Diff: src/runtime.cc

Issue 25478003: Handlify Runtime_GetPrototype and Runtime_GetOwnProperty. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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
« src/isolate.h ('K') | « src/isolate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after
1557 RUNTIME_FUNCTION(MaybeObject*, Runtime_ClassOf) { 1557 RUNTIME_FUNCTION(MaybeObject*, Runtime_ClassOf) {
1558 SealHandleScope shs(isolate); 1558 SealHandleScope shs(isolate);
1559 ASSERT(args.length() == 1); 1559 ASSERT(args.length() == 1);
1560 Object* obj = args[0]; 1560 Object* obj = args[0];
1561 if (!obj->IsJSObject()) return isolate->heap()->null_value(); 1561 if (!obj->IsJSObject()) return isolate->heap()->null_value();
1562 return JSObject::cast(obj)->class_name(); 1562 return JSObject::cast(obj)->class_name();
1563 } 1563 }
1564 1564
1565 1565
1566 RUNTIME_FUNCTION(MaybeObject*, Runtime_GetPrototype) { 1566 RUNTIME_FUNCTION(MaybeObject*, Runtime_GetPrototype) {
1567 SealHandleScope shs(isolate); 1567 HandleScope scope(isolate);
1568 ASSERT(args.length() == 1); 1568 ASSERT(args.length() == 1);
1569 CONVERT_ARG_CHECKED(Object, obj, 0); 1569 CONVERT_ARG_HANDLE_CHECKED(Object, obj, 0);
1570 // We don't expect access checks to be needed on JSProxy objects. 1570 // We don't expect access checks to be needed on JSProxy objects.
1571 ASSERT(!obj->IsAccessCheckNeeded() || obj->IsJSObject()); 1571 ASSERT(!obj->IsAccessCheckNeeded() || obj->IsJSObject());
1572 do { 1572 do {
1573 if (obj->IsAccessCheckNeeded() && 1573 if (obj->IsAccessCheckNeeded() &&
1574 !isolate->MayNamedAccess(JSObject::cast(obj), 1574 !isolate->MayNamedAccess(JSObject::cast(*obj),
Michael Starzinger 2013/10/01 14:46:19 We could use the handlified version here by using
1575 isolate->heap()->proto_string(), 1575 isolate->heap()->proto_string(),
1576 v8::ACCESS_GET)) { 1576 v8::ACCESS_GET)) {
1577 isolate->ReportFailedAccessCheck(JSObject::cast(obj), v8::ACCESS_GET); 1577 isolate->ReportFailedAccessCheck(JSObject::cast(*obj), v8::ACCESS_GET);
1578 RETURN_IF_SCHEDULED_EXCEPTION(isolate); 1578 RETURN_IF_SCHEDULED_EXCEPTION(isolate);
1579 return isolate->heap()->undefined_value(); 1579 return isolate->heap()->undefined_value();
1580 } 1580 }
1581 obj = obj->GetPrototype(isolate); 1581 obj = handle(obj->GetPrototype(isolate), isolate);
1582 } while (obj->IsJSObject() && 1582 } while (obj->IsJSObject() &&
1583 JSObject::cast(obj)->map()->is_hidden_prototype()); 1583 JSObject::cast(*obj)->map()->is_hidden_prototype());
1584 return obj; 1584 return *obj;
1585 } 1585 }
1586 1586
1587 1587
1588 static inline Object* GetPrototypeSkipHiddenPrototypes(Isolate* isolate, 1588 static inline Object* GetPrototypeSkipHiddenPrototypes(Isolate* isolate,
1589 Object* receiver) { 1589 Object* receiver) {
1590 Object* current = receiver->GetPrototype(isolate); 1590 Object* current = receiver->GetPrototype(isolate);
1591 while (current->IsJSObject() && 1591 while (current->IsJSObject() &&
1592 JSObject::cast(current)->map()->is_hidden_prototype()) { 1592 JSObject::cast(current)->map()->is_hidden_prototype()) {
1593 current = current->GetPrototype(isolate); 1593 current = current->GetPrototype(isolate);
1594 } 1594 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1633 Object* prototype = V->GetPrototype(isolate); 1633 Object* prototype = V->GetPrototype(isolate);
1634 if (prototype->IsNull()) return isolate->heap()->false_value(); 1634 if (prototype->IsNull()) return isolate->heap()->false_value();
1635 if (O == prototype) return isolate->heap()->true_value(); 1635 if (O == prototype) return isolate->heap()->true_value();
1636 V = prototype; 1636 V = prototype;
1637 } 1637 }
1638 } 1638 }
1639 1639
1640 1640
1641 static bool CheckAccessException(Object* callback, 1641 static bool CheckAccessException(Object* callback,
1642 v8::AccessType access_type) { 1642 v8::AccessType access_type) {
1643 DisallowHeapAllocation no_gc;
1643 if (callback->IsAccessorInfo()) { 1644 if (callback->IsAccessorInfo()) {
1644 AccessorInfo* info = AccessorInfo::cast(callback); 1645 AccessorInfo* info = AccessorInfo::cast(callback);
1645 return 1646 return
1646 (access_type == v8::ACCESS_HAS && 1647 (access_type == v8::ACCESS_HAS &&
1647 (info->all_can_read() || info->all_can_write())) || 1648 (info->all_can_read() || info->all_can_write())) ||
1648 (access_type == v8::ACCESS_GET && info->all_can_read()) || 1649 (access_type == v8::ACCESS_GET && info->all_can_read()) ||
1649 (access_type == v8::ACCESS_SET && info->all_can_write()); 1650 (access_type == v8::ACCESS_SET && info->all_can_write());
1650 } 1651 }
1651 if (callback->IsAccessorPair()) { 1652 if (callback->IsAccessorPair()) {
1652 AccessorPair* info = AccessorPair::cast(callback); 1653 AccessorPair* info = AccessorPair::cast(callback);
1653 return 1654 return
1654 (access_type == v8::ACCESS_HAS && 1655 (access_type == v8::ACCESS_HAS &&
1655 (info->all_can_read() || info->all_can_write())) || 1656 (info->all_can_read() || info->all_can_write())) ||
1656 (access_type == v8::ACCESS_GET && info->all_can_read()) || 1657 (access_type == v8::ACCESS_GET && info->all_can_read()) ||
1657 (access_type == v8::ACCESS_SET && info->all_can_write()); 1658 (access_type == v8::ACCESS_SET && info->all_can_write());
1658 } 1659 }
1659 return false; 1660 return false;
1660 } 1661 }
1661 1662
1662 1663
1663 template<class Key> 1664 template<class Key>
1664 static bool CheckGenericAccess( 1665 static bool CheckGenericAccess(
1665 JSObject* receiver, 1666 Handle<JSObject> receiver,
1666 JSObject* holder, 1667 Handle<JSObject> holder,
1667 Key key, 1668 Key key,
1668 v8::AccessType access_type, 1669 v8::AccessType access_type,
1669 bool (Isolate::*mayAccess)(JSObject*, Key, v8::AccessType)) { 1670 bool (Isolate::*mayAccess)(Handle<JSObject>, Key, v8::AccessType)) {
1670 Isolate* isolate = receiver->GetIsolate(); 1671 Isolate* isolate = receiver->GetIsolate();
1671 for (JSObject* current = receiver; 1672 for (Handle<JSObject> current = receiver;
1672 true; 1673 true;
1673 current = JSObject::cast(current->GetPrototype())) { 1674 current = handle(JSObject::cast(current->GetPrototype()), isolate)) {
1674 if (current->IsAccessCheckNeeded() && 1675 if (current->IsAccessCheckNeeded() &&
1675 !(isolate->*mayAccess)(current, key, access_type)) { 1676 !(isolate->*mayAccess)(current, key, access_type)) {
1676 return false; 1677 return false;
1677 } 1678 }
1678 if (current == holder) break; 1679 if (current.is_identical_to(holder)) break;
1679 } 1680 }
1680 return true; 1681 return true;
1681 } 1682 }
1682 1683
1683 1684
1684 enum AccessCheckResult { 1685 enum AccessCheckResult {
1685 ACCESS_FORBIDDEN, 1686 ACCESS_FORBIDDEN,
1686 ACCESS_ALLOWED, 1687 ACCESS_ALLOWED,
1687 ACCESS_ABSENT 1688 ACCESS_ABSENT
1688 }; 1689 };
1689 1690
1690 1691
1691 static AccessCheckResult CheckPropertyAccess( 1692 static AccessCheckResult CheckPropertyAccess(Handle<JSObject> obj,
1692 JSObject* obj, 1693 Handle<Name> name,
1693 Name* name, 1694 v8::AccessType access_type) {
1694 v8::AccessType access_type) {
1695 uint32_t index; 1695 uint32_t index;
1696 if (name->AsArrayIndex(&index)) { 1696 if (name->AsArrayIndex(&index)) {
1697 // TODO(1095): we should traverse hidden prototype hierachy as well. 1697 // TODO(1095): we should traverse hidden prototype hierachy as well.
1698 if (CheckGenericAccess( 1698 if (CheckGenericAccess(
1699 obj, obj, index, access_type, &Isolate::MayIndexedAccess)) { 1699 obj, obj, index, access_type, &Isolate::MayIndexedAccessWrapper)) {
1700 return ACCESS_ALLOWED; 1700 return ACCESS_ALLOWED;
1701 } 1701 }
1702 1702
1703 obj->GetIsolate()->ReportFailedAccessCheck(obj, access_type); 1703 obj->GetIsolate()->ReportFailedAccessCheck(*obj, access_type);
1704 return ACCESS_FORBIDDEN; 1704 return ACCESS_FORBIDDEN;
1705 } 1705 }
1706 1706
1707 LookupResult lookup(obj->GetIsolate()); 1707 Isolate* isolate = obj->GetIsolate();
1708 obj->LocalLookup(name, &lookup, true); 1708 LookupResult lookup(isolate);
1709 obj->LocalLookup(*name, &lookup, true);
1709 1710
1710 if (!lookup.IsProperty()) return ACCESS_ABSENT; 1711 if (!lookup.IsProperty()) return ACCESS_ABSENT;
1711 if (CheckGenericAccess<Object*>( 1712 Handle<JSObject> holder(lookup.holder(), isolate);
1712 obj, lookup.holder(), name, access_type, &Isolate::MayNamedAccess)) { 1713 if (CheckGenericAccess<Handle<Object> >(
1714 obj, holder, name, access_type, &Isolate::MayNamedAccessWrapper)) {
1713 return ACCESS_ALLOWED; 1715 return ACCESS_ALLOWED;
1714 } 1716 }
1715 1717
1716 // Access check callback denied the access, but some properties 1718 // Access check callback denied the access, but some properties
1717 // can have a special permissions which override callbacks descision 1719 // can have a special permissions which override callbacks descision
1718 // (currently see v8::AccessControl). 1720 // (currently see v8::AccessControl).
1719 // API callbacks can have per callback access exceptions. 1721 // API callbacks can have per callback access exceptions.
1720 switch (lookup.type()) { 1722 switch (lookup.type()) {
1721 case CALLBACKS: 1723 case CALLBACKS:
1722 if (CheckAccessException(lookup.GetCallbackObject(), access_type)) { 1724 if (CheckAccessException(lookup.GetCallbackObject(), access_type)) {
1723 return ACCESS_ALLOWED; 1725 return ACCESS_ALLOWED;
1724 } 1726 }
1725 break; 1727 break;
1726 case INTERCEPTOR: 1728 case INTERCEPTOR:
1727 // If the object has an interceptor, try real named properties. 1729 // If the object has an interceptor, try real named properties.
1728 // Overwrite the result to fetch the correct property later. 1730 // Overwrite the result to fetch the correct property later.
1729 lookup.holder()->LookupRealNamedProperty(name, &lookup); 1731 holder->LookupRealNamedProperty(*name, &lookup);
1730 if (lookup.IsProperty() && lookup.IsPropertyCallbacks()) { 1732 if (lookup.IsProperty() && lookup.IsPropertyCallbacks()) {
1731 if (CheckAccessException(lookup.GetCallbackObject(), access_type)) { 1733 if (CheckAccessException(lookup.GetCallbackObject(), access_type)) {
1732 return ACCESS_ALLOWED; 1734 return ACCESS_ALLOWED;
1733 } 1735 }
1734 } 1736 }
1735 break; 1737 break;
1736 default: 1738 default:
1737 break; 1739 break;
1738 } 1740 }
1739 1741
1740 obj->GetIsolate()->ReportFailedAccessCheck(obj, access_type); 1742 obj->GetIsolate()->ReportFailedAccessCheck(*obj, access_type);
Michael Starzinger 2013/10/01 14:46:19 nit: s/obj->GetIsolate()/isolate/
1741 return ACCESS_FORBIDDEN; 1743 return ACCESS_FORBIDDEN;
1742 } 1744 }
1743 1745
1744 1746
1745 // Enumerator used as indices into the array returned from GetOwnProperty 1747 // Enumerator used as indices into the array returned from GetOwnProperty
1746 enum PropertyDescriptorIndices { 1748 enum PropertyDescriptorIndices {
1747 IS_ACCESSOR_INDEX, 1749 IS_ACCESSOR_INDEX,
1748 VALUE_INDEX, 1750 VALUE_INDEX,
1749 GETTER_INDEX, 1751 GETTER_INDEX,
1750 SETTER_INDEX, 1752 SETTER_INDEX,
1751 WRITABLE_INDEX, 1753 WRITABLE_INDEX,
1752 ENUMERABLE_INDEX, 1754 ENUMERABLE_INDEX,
1753 CONFIGURABLE_INDEX, 1755 CONFIGURABLE_INDEX,
1754 DESCRIPTOR_SIZE 1756 DESCRIPTOR_SIZE
1755 }; 1757 };
1756 1758
1757 1759
1758 static MaybeObject* GetOwnProperty(Isolate* isolate, 1760 static Handle<Object> GetOwnProperty(Isolate* isolate,
1759 Handle<JSObject> obj, 1761 Handle<JSObject> obj,
1760 Handle<Name> name) { 1762 Handle<Name> name) {
1761 Heap* heap = isolate->heap(); 1763 Heap* heap = isolate->heap();
1764 Factory* factory = isolate->factory();
1762 // Due to some WebKit tests, we want to make sure that we do not log 1765 // Due to some WebKit tests, we want to make sure that we do not log
1763 // more than one access failure here. 1766 // more than one access failure here.
1764 AccessCheckResult access_check_result = 1767 AccessCheckResult access_check_result =
1765 CheckPropertyAccess(*obj, *name, v8::ACCESS_HAS); 1768 CheckPropertyAccess(obj, name, v8::ACCESS_HAS);
1766 RETURN_IF_SCHEDULED_EXCEPTION(isolate); 1769 RETURN_HANDLE_IF_SCHEDULED_EXCEPTION(isolate, Object);
1767 switch (access_check_result) { 1770 switch (access_check_result) {
1768 case ACCESS_FORBIDDEN: return heap->false_value(); 1771 case ACCESS_FORBIDDEN: return factory->false_value();
1769 case ACCESS_ALLOWED: break; 1772 case ACCESS_ALLOWED: break;
1770 case ACCESS_ABSENT: return heap->undefined_value(); 1773 case ACCESS_ABSENT: return factory->undefined_value();
1771 } 1774 }
1772 1775
1773 PropertyAttributes attrs = obj->GetLocalPropertyAttribute(*name); 1776 PropertyAttributes attrs = obj->GetLocalPropertyAttribute(*name);
1774 if (attrs == ABSENT) { 1777 if (attrs == ABSENT) {
1775 RETURN_IF_SCHEDULED_EXCEPTION(isolate); 1778 RETURN_HANDLE_IF_SCHEDULED_EXCEPTION(isolate, Object);
1776 return heap->undefined_value(); 1779 return factory->undefined_value();
1777 } 1780 }
1778 ASSERT(!isolate->has_scheduled_exception()); 1781 ASSERT(!isolate->has_scheduled_exception());
1779 AccessorPair* raw_accessors = obj->GetLocalPropertyAccessorPair(*name); 1782 AccessorPair* raw_accessors = obj->GetLocalPropertyAccessorPair(*name);
1780 Handle<AccessorPair> accessors(raw_accessors, isolate); 1783 Handle<AccessorPair> accessors(raw_accessors, isolate);
1781
1782 Handle<FixedArray> elms = isolate->factory()->NewFixedArray(DESCRIPTOR_SIZE); 1784 Handle<FixedArray> elms = isolate->factory()->NewFixedArray(DESCRIPTOR_SIZE);
1783 elms->set(ENUMERABLE_INDEX, heap->ToBoolean((attrs & DONT_ENUM) == 0)); 1785 elms->set(ENUMERABLE_INDEX, heap->ToBoolean((attrs & DONT_ENUM) == 0));
1784 elms->set(CONFIGURABLE_INDEX, heap->ToBoolean((attrs & DONT_DELETE) == 0)); 1786 elms->set(CONFIGURABLE_INDEX, heap->ToBoolean((attrs & DONT_DELETE) == 0));
1785 elms->set(IS_ACCESSOR_INDEX, heap->ToBoolean(raw_accessors != NULL)); 1787 elms->set(IS_ACCESSOR_INDEX, heap->ToBoolean(raw_accessors != NULL));
1786 1788
1787 if (raw_accessors == NULL) { 1789 if (raw_accessors == NULL) {
1788 elms->set(WRITABLE_INDEX, heap->ToBoolean((attrs & READ_ONLY) == 0)); 1790 elms->set(WRITABLE_INDEX, heap->ToBoolean((attrs & READ_ONLY) == 0));
1789 // GetProperty does access check. 1791 // GetProperty does access check.
1790 Handle<Object> value = GetProperty(isolate, obj, name); 1792 Handle<Object> value = GetProperty(isolate, obj, name);
1791 RETURN_IF_EMPTY_HANDLE(isolate, value); 1793 RETURN_IF_EMPTY_HANDLE_VALUE(isolate, value, Handle<Object>::null());
1792 elms->set(VALUE_INDEX, *value); 1794 elms->set(VALUE_INDEX, *value);
1793 } else { 1795 } else {
1794 // Access checks are performed for both accessors separately. 1796 // Access checks are performed for both accessors separately.
1795 // When they fail, the respective field is not set in the descriptor. 1797 // When they fail, the respective field is not set in the descriptor.
1796 Object* getter = accessors->GetComponent(ACCESSOR_GETTER); 1798 Handle<Object> getter(accessors->GetComponent(ACCESSOR_GETTER), isolate);
1797 Object* setter = accessors->GetComponent(ACCESSOR_SETTER); 1799 Handle<Object> setter(accessors->GetComponent(ACCESSOR_SETTER), isolate);
1798 if (!getter->IsMap() && CheckPropertyAccess(*obj, *name, v8::ACCESS_GET)) { 1800
1801 if (!getter->IsMap() && CheckPropertyAccess(obj, name, v8::ACCESS_GET)) {
1799 ASSERT(!isolate->has_scheduled_exception()); 1802 ASSERT(!isolate->has_scheduled_exception());
1800 elms->set(GETTER_INDEX, getter); 1803 elms->set(GETTER_INDEX, *getter);
1801 } else { 1804 } else {
1802 RETURN_IF_SCHEDULED_EXCEPTION(isolate); 1805 RETURN_HANDLE_IF_SCHEDULED_EXCEPTION(isolate, Object);
1803 } 1806 }
1804 if (!setter->IsMap() && CheckPropertyAccess(*obj, *name, v8::ACCESS_SET)) { 1807
1808 if (!setter->IsMap() && CheckPropertyAccess(obj, name, v8::ACCESS_SET)) {
1805 ASSERT(!isolate->has_scheduled_exception()); 1809 ASSERT(!isolate->has_scheduled_exception());
1806 elms->set(SETTER_INDEX, setter); 1810 elms->set(SETTER_INDEX, *setter);
1807 } else { 1811 } else {
1808 RETURN_IF_SCHEDULED_EXCEPTION(isolate); 1812 RETURN_HANDLE_IF_SCHEDULED_EXCEPTION(isolate, Object);
1809 } 1813 }
1810 } 1814 }
1811 1815
1812 return *isolate->factory()->NewJSArrayWithElements(elms); 1816 return isolate->factory()->NewJSArrayWithElements(elms);
1813 } 1817 }
1814 1818
1815 1819
1816 // Returns an array with the property description: 1820 // Returns an array with the property description:
1817 // if args[1] is not a property on args[0] 1821 // if args[1] is not a property on args[0]
1818 // returns undefined 1822 // returns undefined
1819 // if args[1] is a data property on args[0] 1823 // if args[1] is a data property on args[0]
1820 // [false, value, Writeable, Enumerable, Configurable] 1824 // [false, value, Writeable, Enumerable, Configurable]
1821 // if args[1] is an accessor on args[0] 1825 // if args[1] is an accessor on args[0]
1822 // [true, GetFunction, SetFunction, Enumerable, Configurable] 1826 // [true, GetFunction, SetFunction, Enumerable, Configurable]
1823 RUNTIME_FUNCTION(MaybeObject*, Runtime_GetOwnProperty) { 1827 RUNTIME_FUNCTION(MaybeObject*, Runtime_GetOwnProperty) {
1824 HandleScope scope(isolate); 1828 HandleScope scope(isolate);
1825 ASSERT(args.length() == 2); 1829 ASSERT(args.length() == 2);
1826 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); 1830 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
1827 CONVERT_ARG_HANDLE_CHECKED(Name, name, 1); 1831 CONVERT_ARG_HANDLE_CHECKED(Name, name, 1);
1828 return GetOwnProperty(isolate, obj, name); 1832 Handle<Object> result = GetOwnProperty(isolate, obj, name);
1833 RETURN_IF_EMPTY_HANDLE(isolate, result);
1834 return *result;
1829 } 1835 }
1830 1836
1831 1837
1832 RUNTIME_FUNCTION(MaybeObject*, Runtime_PreventExtensions) { 1838 RUNTIME_FUNCTION(MaybeObject*, Runtime_PreventExtensions) {
1833 HandleScope scope(isolate); 1839 HandleScope scope(isolate);
1834 ASSERT(args.length() == 1); 1840 ASSERT(args.length() == 1);
1835 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); 1841 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
1836 Handle<Object> result = JSObject::PreventExtensions(obj); 1842 Handle<Object> result = JSObject::PreventExtensions(obj);
1837 RETURN_IF_EMPTY_HANDLE(isolate, result); 1843 RETURN_IF_EMPTY_HANDLE(isolate, result);
1838 return *result; 1844 return *result;
(...skipping 12958 matching lines...) Expand 10 before | Expand all | Expand 10 after
14797 // Handle last resort GC and make sure to allow future allocations 14803 // Handle last resort GC and make sure to allow future allocations
14798 // to grow the heap without causing GCs (if possible). 14804 // to grow the heap without causing GCs (if possible).
14799 isolate->counters()->gc_last_resort_from_js()->Increment(); 14805 isolate->counters()->gc_last_resort_from_js()->Increment();
14800 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, 14806 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
14801 "Runtime::PerformGC"); 14807 "Runtime::PerformGC");
14802 } 14808 }
14803 } 14809 }
14804 14810
14805 14811
14806 } } // namespace v8::internal 14812 } } // namespace v8::internal
OLDNEW
« src/isolate.h ('K') | « src/isolate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698