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

Side by Side Diff: src/heap-inl.h

Issue 23886002: remove Isolate::Current from most files starting with 'f' through 'i' (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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.cc ('k') | src/heap-snapshot-generator.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 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 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 759
760 void Heap::CompletelyClearInstanceofCache() { 760 void Heap::CompletelyClearInstanceofCache() {
761 set_instanceof_cache_map(the_hole_value()); 761 set_instanceof_cache_map(the_hole_value());
762 set_instanceof_cache_function(the_hole_value()); 762 set_instanceof_cache_function(the_hole_value());
763 } 763 }
764 764
765 765
766 MaybeObject* TranscendentalCache::Get(Type type, double input) { 766 MaybeObject* TranscendentalCache::Get(Type type, double input) {
767 SubCache* cache = caches_[type]; 767 SubCache* cache = caches_[type];
768 if (cache == NULL) { 768 if (cache == NULL) {
769 caches_[type] = cache = new SubCache(type); 769 caches_[type] = cache = new SubCache(isolate_, type);
770 } 770 }
771 return cache->Get(input); 771 return cache->Get(input);
772 } 772 }
773 773
774 774
775 Address TranscendentalCache::cache_array_address() { 775 Address TranscendentalCache::cache_array_address() {
776 return reinterpret_cast<Address>(caches_); 776 return reinterpret_cast<Address>(caches_);
777 } 777 }
778 778
779 779
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 DisallowAllocationFailure::~DisallowAllocationFailure() { 881 DisallowAllocationFailure::~DisallowAllocationFailure() {
882 #ifdef DEBUG 882 #ifdef DEBUG
883 HEAP->disallow_allocation_failure_ = old_state_; 883 HEAP->disallow_allocation_failure_ = old_state_;
884 #endif 884 #endif
885 } 885 }
886 886
887 887
888 } } // namespace v8::internal 888 } } // namespace v8::internal
889 889
890 #endif // V8_HEAP_INL_H_ 890 #endif // V8_HEAP_INL_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/heap-snapshot-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698