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

Side by Side Diff: src/heap.cc

Issue 3083016: Fix GCC 4.4.4 build.... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 10 years, 4 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 | « no previous file | src/heap-gcchack.cc » ('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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 1697 matching lines...) Expand 10 before | Expand all | Expand 10 after
1708 Object* elements = AllocateFixedArray(2); 1708 Object* elements = AllocateFixedArray(2);
1709 if (elements->IsFailure()) return false; 1709 if (elements->IsFailure()) return false;
1710 FixedArray::cast(elements)->set(0, Smi::FromInt(0)); 1710 FixedArray::cast(elements)->set(0, Smi::FromInt(0));
1711 JSObject::cast(obj)->set_elements(FixedArray::cast(elements)); 1711 JSObject::cast(obj)->set_elements(FixedArray::cast(elements));
1712 set_message_listeners(JSObject::cast(obj)); 1712 set_message_listeners(JSObject::cast(obj));
1713 1713
1714 return true; 1714 return true;
1715 } 1715 }
1716 1716
1717 1717
1718 void Heap::CreateCEntryStub() {
1719 CEntryStub stub(1);
1720 set_c_entry_code(*stub.GetCode());
1721 }
1722
1723
1724 #if V8_TARGET_ARCH_ARM && !V8_INTERPRETED_REGEXP
1725 void Heap::CreateRegExpCEntryStub() {
1726 RegExpCEntryStub stub;
1727 set_re_c_entry_code(*stub.GetCode());
1728 }
1729 #endif
1730
1731
1732 void Heap::CreateJSEntryStub() {
1733 JSEntryStub stub;
1734 set_js_entry_code(*stub.GetCode());
1735 }
1736
1737
1738 void Heap::CreateJSConstructEntryStub() {
1739 JSConstructEntryStub stub;
1740 set_js_construct_entry_code(*stub.GetCode());
1741 }
1742
1743
1744 void Heap::CreateFixedStubs() { 1718 void Heap::CreateFixedStubs() {
1745 // Here we create roots for fixed stubs. They are needed at GC 1719 // Here we create roots for fixed stubs. They are needed at GC
1746 // for cooking and uncooking (check out frames.cc). 1720 // for cooking and uncooking (check out frames.cc).
1747 // The eliminates the need for doing dictionary lookup in the 1721 // The eliminates the need for doing dictionary lookup in the
1748 // stub cache for these stubs. 1722 // stub cache for these stubs.
1749 HandleScope scope; 1723 HandleScope scope;
1750 // gcc-4.4 has problem generating correct code of following snippet: 1724 // gcc-4.4 has problem generating correct code of following snippet:
1751 // { CEntryStub stub; 1725 // { CEntryStub stub;
1752 // c_entry_code_ = *stub.GetCode(); 1726 // c_entry_code_ = *stub.GetCode();
1753 // } 1727 // }
(...skipping 3231 matching lines...) Expand 10 before | Expand all | Expand 10 after
4985 void ExternalStringTable::TearDown() { 4959 void ExternalStringTable::TearDown() {
4986 new_space_strings_.Free(); 4960 new_space_strings_.Free();
4987 old_space_strings_.Free(); 4961 old_space_strings_.Free();
4988 } 4962 }
4989 4963
4990 4964
4991 List<Object*> ExternalStringTable::new_space_strings_; 4965 List<Object*> ExternalStringTable::new_space_strings_;
4992 List<Object*> ExternalStringTable::old_space_strings_; 4966 List<Object*> ExternalStringTable::old_space_strings_;
4993 4967
4994 } } // namespace v8::internal 4968 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/heap-gcchack.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698