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

Side by Side Diff: src/isolate.cc

Issue 6688065: Clean up Isolate usages in compilation cache. (Closed)
Patch Set: Created 9 years, 9 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
« no previous file with comments | « src/compilation-cache.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2010 the V8 project authors. All rights reserved. 1 // Copyright 2006-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
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 #define C(name) isolate_addresses_[Isolate::k_##name] = \ 591 #define C(name) isolate_addresses_[Isolate::k_##name] = \
592 reinterpret_cast<Address>(name()); 592 reinterpret_cast<Address>(name());
593 ISOLATE_ADDRESS_LIST(C) 593 ISOLATE_ADDRESS_LIST(C)
594 ISOLATE_ADDRESS_LIST_PROF(C) 594 ISOLATE_ADDRESS_LIST_PROF(C)
595 #undef C 595 #undef C
596 596
597 string_tracker_ = new StringTracker(); 597 string_tracker_ = new StringTracker();
598 string_tracker_->isolate_ = this; 598 string_tracker_->isolate_ = this;
599 thread_manager_ = new ThreadManager(); 599 thread_manager_ = new ThreadManager();
600 thread_manager_->isolate_ = this; 600 thread_manager_->isolate_ = this;
601 compilation_cache_ = new CompilationCache(); 601 compilation_cache_ = new CompilationCache(this);
602 transcendental_cache_ = new TranscendentalCache(); 602 transcendental_cache_ = new TranscendentalCache();
603 keyed_lookup_cache_ = new KeyedLookupCache(); 603 keyed_lookup_cache_ = new KeyedLookupCache();
604 context_slot_cache_ = new ContextSlotCache(); 604 context_slot_cache_ = new ContextSlotCache();
605 descriptor_lookup_cache_ = new DescriptorLookupCache(); 605 descriptor_lookup_cache_ = new DescriptorLookupCache();
606 scanner_constants_ = new ScannerConstants(); 606 scanner_constants_ = new ScannerConstants();
607 pc_to_code_cache_ = new PcToCodeCache(this); 607 pc_to_code_cache_ = new PcToCodeCache(this);
608 write_input_buffer_ = new StringInputBuffer(); 608 write_input_buffer_ = new StringInputBuffer();
609 global_handles_ = new GlobalHandles(this); 609 global_handles_ = new GlobalHandles(this);
610 bootstrapper_ = new Bootstrapper(); 610 bootstrapper_ = new Bootstrapper();
611 cpu_features_ = new CpuFeatures(); 611 cpu_features_ = new CpuFeatures();
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 816
817 #ifdef DEBUG 817 #ifdef DEBUG
818 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 818 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
819 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 819 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
820 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 820 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
821 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 821 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
822 #undef ISOLATE_FIELD_OFFSET 822 #undef ISOLATE_FIELD_OFFSET
823 #endif 823 #endif
824 824
825 } } // namespace v8::internal 825 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compilation-cache.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698