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

Side by Side Diff: src/isolate.cc

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/isolate.h ('k') | src/isolate-inl.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 2161 matching lines...) Expand 10 before | Expand all | Expand 10 after
2172 2172
2173 #define ASSIGN_ELEMENT(CamelName, hacker_name) \ 2173 #define ASSIGN_ELEMENT(CamelName, hacker_name) \
2174 isolate_addresses_[Isolate::k##CamelName##Address] = \ 2174 isolate_addresses_[Isolate::k##CamelName##Address] = \
2175 reinterpret_cast<Address>(hacker_name##_address()); 2175 reinterpret_cast<Address>(hacker_name##_address());
2176 FOR_EACH_ISOLATE_ADDRESS_NAME(ASSIGN_ELEMENT) 2176 FOR_EACH_ISOLATE_ADDRESS_NAME(ASSIGN_ELEMENT)
2177 #undef ASSIGN_ELEMENT 2177 #undef ASSIGN_ELEMENT
2178 2178
2179 string_tracker_ = new StringTracker(); 2179 string_tracker_ = new StringTracker();
2180 string_tracker_->isolate_ = this; 2180 string_tracker_->isolate_ = this;
2181 compilation_cache_ = new CompilationCache(this); 2181 compilation_cache_ = new CompilationCache(this);
2182 transcendental_cache_ = new TranscendentalCache(); 2182 transcendental_cache_ = new TranscendentalCache(this);
2183 keyed_lookup_cache_ = new KeyedLookupCache(); 2183 keyed_lookup_cache_ = new KeyedLookupCache();
2184 context_slot_cache_ = new ContextSlotCache(); 2184 context_slot_cache_ = new ContextSlotCache();
2185 descriptor_lookup_cache_ = new DescriptorLookupCache(); 2185 descriptor_lookup_cache_ = new DescriptorLookupCache();
2186 unicode_cache_ = new UnicodeCache(); 2186 unicode_cache_ = new UnicodeCache();
2187 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this); 2187 inner_pointer_to_code_cache_ = new InnerPointerToCodeCache(this);
2188 write_iterator_ = new ConsStringIteratorOp(); 2188 write_iterator_ = new ConsStringIteratorOp();
2189 global_handles_ = new GlobalHandles(this); 2189 global_handles_ = new GlobalHandles(this);
2190 eternal_handles_ = new EternalHandles(); 2190 eternal_handles_ = new EternalHandles();
2191 bootstrapper_ = new Bootstrapper(this); 2191 bootstrapper_ = new Bootstrapper(this);
2192 handle_scope_implementer_ = new HandleScopeImplementer(this); 2192 handle_scope_implementer_ = new HandleScopeImplementer(this);
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
2528 2528
2529 #ifdef DEBUG 2529 #ifdef DEBUG
2530 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2530 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2531 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2531 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2532 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2532 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2533 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2533 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2534 #undef ISOLATE_FIELD_OFFSET 2534 #undef ISOLATE_FIELD_OFFSET
2535 #endif 2535 #endif
2536 2536
2537 } } // namespace v8::internal 2537 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/isolate-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698