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

Side by Side Diff: src/heap.cc

Issue 246643014: CodeStubs contain their corresponding Isolate* now. (part 1) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Feedback. Rebased. Created 6 years, 8 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/frames.cc ('k') | src/hydrogen.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 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 2761 matching lines...) Expand 10 before | Expand all | Expand 10 after
2772 } 2772 }
2773 FixedArray::cast(elements)->set(0, Smi::FromInt(0)); 2773 FixedArray::cast(elements)->set(0, Smi::FromInt(0));
2774 JSObject::cast(obj)->set_elements(FixedArray::cast(elements)); 2774 JSObject::cast(obj)->set_elements(FixedArray::cast(elements));
2775 set_message_listeners(JSObject::cast(obj)); 2775 set_message_listeners(JSObject::cast(obj));
2776 2776
2777 return true; 2777 return true;
2778 } 2778 }
2779 2779
2780 2780
2781 void Heap::CreateJSEntryStub() { 2781 void Heap::CreateJSEntryStub() {
2782 JSEntryStub stub; 2782 JSEntryStub stub(isolate());
2783 set_js_entry_code(*stub.GetCode(isolate())); 2783 set_js_entry_code(*stub.GetCode(isolate()));
2784 } 2784 }
2785 2785
2786 2786
2787 void Heap::CreateJSConstructEntryStub() { 2787 void Heap::CreateJSConstructEntryStub() {
2788 JSConstructEntryStub stub; 2788 JSConstructEntryStub stub(isolate());
2789 set_js_construct_entry_code(*stub.GetCode(isolate())); 2789 set_js_construct_entry_code(*stub.GetCode(isolate()));
2790 } 2790 }
2791 2791
2792 2792
2793 void Heap::CreateFixedStubs() { 2793 void Heap::CreateFixedStubs() {
2794 // Here we create roots for fixed stubs. They are needed at GC 2794 // Here we create roots for fixed stubs. They are needed at GC
2795 // for cooking and uncooking (check out frames.cc). 2795 // for cooking and uncooking (check out frames.cc).
2796 // The eliminates the need for doing dictionary lookup in the 2796 // The eliminates the need for doing dictionary lookup in the
2797 // stub cache for these stubs. 2797 // stub cache for these stubs.
2798 HandleScope scope(isolate()); 2798 HandleScope scope(isolate());
(...skipping 3876 matching lines...) Expand 10 before | Expand all | Expand 10 after
6675 static_cast<int>(object_sizes_last_time_[index])); 6675 static_cast<int>(object_sizes_last_time_[index]));
6676 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 6676 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
6677 #undef ADJUST_LAST_TIME_OBJECT_COUNT 6677 #undef ADJUST_LAST_TIME_OBJECT_COUNT
6678 6678
6679 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 6679 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
6680 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 6680 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
6681 ClearObjectStats(); 6681 ClearObjectStats();
6682 } 6682 }
6683 6683
6684 } } // namespace v8::internal 6684 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/frames.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698