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

Side by Side Diff: src/heap.cc

Issue 3293002: Move inlined function declarations and support from codegen.* to runtime.*. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 3 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/heap.h ('k') | src/ia32/codegen-ia32.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2010 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
11 // with the distribution. 11 // with the distribution.
(...skipping 1815 matching lines...) Expand 10 before | Expand all | Expand 10 after
1827 obj = NumberDictionary::Allocate(64); 1827 obj = NumberDictionary::Allocate(64);
1828 if (obj->IsFailure()) return false; 1828 if (obj->IsFailure()) return false;
1829 set_non_monomorphic_cache(NumberDictionary::cast(obj)); 1829 set_non_monomorphic_cache(NumberDictionary::cast(obj));
1830 1830
1831 set_instanceof_cache_function(Smi::FromInt(0)); 1831 set_instanceof_cache_function(Smi::FromInt(0));
1832 set_instanceof_cache_map(Smi::FromInt(0)); 1832 set_instanceof_cache_map(Smi::FromInt(0));
1833 set_instanceof_cache_answer(Smi::FromInt(0)); 1833 set_instanceof_cache_answer(Smi::FromInt(0));
1834 1834
1835 CreateFixedStubs(); 1835 CreateFixedStubs();
1836 1836
1837 // Allocate the dictionary of intrinsic function names.
1838 obj = StringDictionary::Allocate(Runtime::kNumFunctions);
1839 if (obj->IsFailure()) return false;
1840 obj = Runtime::InitializeIntrinsicFunctionNames(obj);
1841 if (obj->IsFailure()) return false;
1842 set_intrinsic_function_names(StringDictionary::cast(obj));
1843
1837 if (InitializeNumberStringCache()->IsFailure()) return false; 1844 if (InitializeNumberStringCache()->IsFailure()) return false;
1838 1845
1839 // Allocate cache for single character ASCII strings. 1846 // Allocate cache for single character ASCII strings.
1840 obj = AllocateFixedArray(String::kMaxAsciiCharCode + 1, TENURED); 1847 obj = AllocateFixedArray(String::kMaxAsciiCharCode + 1, TENURED);
1841 if (obj->IsFailure()) return false; 1848 if (obj->IsFailure()) return false;
1842 set_single_character_string_cache(FixedArray::cast(obj)); 1849 set_single_character_string_cache(FixedArray::cast(obj));
1843 1850
1844 // Allocate cache for external strings pointing to native source code. 1851 // Allocate cache for external strings pointing to native source code.
1845 obj = AllocateFixedArray(Natives::GetBuiltinsCount()); 1852 obj = AllocateFixedArray(Natives::GetBuiltinsCount());
1846 if (obj->IsFailure()) return false; 1853 if (obj->IsFailure()) return false;
(...skipping 3056 matching lines...) Expand 10 before | Expand all | Expand 10 after
4903 void ExternalStringTable::TearDown() { 4910 void ExternalStringTable::TearDown() {
4904 new_space_strings_.Free(); 4911 new_space_strings_.Free();
4905 old_space_strings_.Free(); 4912 old_space_strings_.Free();
4906 } 4913 }
4907 4914
4908 4915
4909 List<Object*> ExternalStringTable::new_space_strings_; 4916 List<Object*> ExternalStringTable::new_space_strings_;
4910 List<Object*> ExternalStringTable::old_space_strings_; 4917 List<Object*> ExternalStringTable::old_space_strings_;
4911 4918
4912 } } // namespace v8::internal 4919 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.h ('k') | src/ia32/codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698