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

Side by Side Diff: src/heap.cc

Issue 255543003: CodeStubs contain their corresponding Isolate* now. (part 2) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
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 2762 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(isolate()); 2782 JSEntryStub stub(isolate());
2783 set_js_entry_code(*stub.GetCode(isolate())); 2783 set_js_entry_code(*stub.GetCode());
2784 } 2784 }
2785 2785
2786 2786
2787 void Heap::CreateJSConstructEntryStub() { 2787 void Heap::CreateJSConstructEntryStub() {
2788 JSConstructEntryStub stub(isolate()); 2788 JSConstructEntryStub stub(isolate());
2789 set_js_construct_entry_code(*stub.GetCode(isolate())); 2789 set_js_construct_entry_code(*stub.GetCode());
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());
2799 2799
(...skipping 3882 matching lines...) Expand 10 before | Expand all | Expand 10 after
6682 static_cast<int>(object_sizes_last_time_[index])); 6682 static_cast<int>(object_sizes_last_time_[index]));
6683 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 6683 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
6684 #undef ADJUST_LAST_TIME_OBJECT_COUNT 6684 #undef ADJUST_LAST_TIME_OBJECT_COUNT
6685 6685
6686 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 6686 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
6687 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 6687 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
6688 ClearObjectStats(); 6688 ClearObjectStats();
6689 } 6689 }
6690 6690
6691 } } // namespace v8::internal 6691 } } // namespace v8::internal
OLDNEW
« src/arm/macro-assembler-arm.cc ('K') | « src/frames.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698