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

Side by Side Diff: src/isolate.cc

Issue 240213002: Removed Isolate::EnterDefaultIsolate. (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
« no previous file with comments | « src/isolate.h ('k') | src/serialize.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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 } 206 }
207 } 207 }
208 208
209 struct StaticInitializer { 209 struct StaticInitializer {
210 StaticInitializer() { 210 StaticInitializer() {
211 Isolate::EnsureDefaultIsolate(); 211 Isolate::EnsureDefaultIsolate();
212 } 212 }
213 } static_initializer; 213 } static_initializer;
214 214
215 215
216 void Isolate::EnterDefaultIsolate() {
217 EnsureDefaultIsolate();
218 ASSERT(default_isolate_ != NULL);
219
220 PerIsolateThreadData* data = CurrentPerIsolateThreadData();
221 // If not yet in default isolate - enter it.
222 if (data == NULL || data->isolate() != default_isolate_) {
223 default_isolate_->Enter();
224 }
225 }
226
227
228 Address Isolate::get_address_from_id(Isolate::AddressId id) { 216 Address Isolate::get_address_from_id(Isolate::AddressId id) {
229 return isolate_addresses_[id]; 217 return isolate_addresses_[id];
230 } 218 }
231 219
232 220
233 char* Isolate::Iterate(ObjectVisitor* v, char* thread_storage) { 221 char* Isolate::Iterate(ObjectVisitor* v, char* thread_storage) {
234 ThreadLocalTop* thread = reinterpret_cast<ThreadLocalTop*>(thread_storage); 222 ThreadLocalTop* thread = reinterpret_cast<ThreadLocalTop*>(thread_storage);
235 Iterate(v, thread); 223 Iterate(v, thread);
236 return thread_storage + sizeof(ThreadLocalTop); 224 return thread_storage + sizeof(ThreadLocalTop);
237 } 225 }
(...skipping 2024 matching lines...) Expand 10 before | Expand all | Expand 10 after
2262 Handle<JSObject> obj = factory()->NewJSObjectFromMap(map); 2250 Handle<JSObject> obj = factory()->NewJSObjectFromMap(map);
2263 JSObject::NormalizeProperties(obj, KEEP_INOBJECT_PROPERTIES, 8); 2251 JSObject::NormalizeProperties(obj, KEEP_INOBJECT_PROPERTIES, 8);
2264 JSObject::SetProperty(registry, name, obj, NONE, STRICT).Assert(); 2252 JSObject::SetProperty(registry, name, obj, NONE, STRICT).Assert();
2265 } 2253 }
2266 } 2254 }
2267 return Handle<JSObject>::cast(factory()->symbol_registry()); 2255 return Handle<JSObject>::cast(factory()->symbol_registry());
2268 } 2256 }
2269 2257
2270 2258
2271 } } // namespace v8::internal 2259 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698