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

Side by Side Diff: src/isolate.cc

Issue 2864032: [Isolates] Statics 7: ExternalReference*/Simulator/dtoa... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: rebase Created 10 years, 5 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.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 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 regexp_stack_(NULL), 259 regexp_stack_(NULL),
260 frame_element_constant_list_(0), 260 frame_element_constant_list_(0),
261 result_constant_list_(0) { 261 result_constant_list_(0) {
262 memset(isolate_addresses_, 0, 262 memset(isolate_addresses_, 0,
263 sizeof(isolate_addresses_[0]) * (k_isolate_address_count + 1)); 263 sizeof(isolate_addresses_[0]) * (k_isolate_address_count + 1));
264 264
265 heap_.isolate_ = this; 265 heap_.isolate_ = this;
266 zone_.isolate_ = this; 266 zone_.isolate_ = this;
267 stack_guard_.isolate_ = this; 267 stack_guard_.isolate_ = this;
268 268
269 #if defined(V8_TARGET_ARCH_ARM) && !defined(__arm__)
270 simulator_initialized_ = false;
271 simulator_i_cache_ = NULL;
272 simulator_key_ = Thread::CreateThreadLocalKey();
273 simulator_redirection_ = NULL;
274 #endif
275
269 #ifdef DEBUG 276 #ifdef DEBUG
270 // heap_histograms_ initializes itself. 277 // heap_histograms_ initializes itself.
271 memset(&js_spill_information_, 0, sizeof(js_spill_information_)); 278 memset(&js_spill_information_, 0, sizeof(js_spill_information_));
272 memset(code_kind_statistics_, 0, 279 memset(code_kind_statistics_, 0,
273 sizeof(code_kind_statistics_[0]) * Code::NUMBER_OF_KINDS); 280 sizeof(code_kind_statistics_[0]) * Code::NUMBER_OF_KINDS);
274 #endif 281 #endif
275 282
276 #ifdef ENABLE_DEBUGGER_SUPPORT 283 #ifdef ENABLE_DEBUGGER_SUPPORT
277 debug_ = NULL; 284 debug_ = NULL;
278 debugger_ = NULL; 285 debugger_ = NULL;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 delete global_handles_; 399 delete global_handles_;
393 global_handles_ = NULL; 400 global_handles_ = NULL;
394 401
395 #ifdef ENABLE_DEBUGGER_SUPPORT 402 #ifdef ENABLE_DEBUGGER_SUPPORT
396 delete debugger_; 403 delete debugger_;
397 debugger_ = NULL; 404 debugger_ = NULL;
398 delete debug_; 405 delete debug_;
399 debug_ = NULL; 406 debug_ = NULL;
400 #endif 407 #endif
401 408
409 #if defined(V8_TARGET_ARCH_ARM) && !defined(__arm__)
410 Thread::DeleteThreadLocalKey(simulator_key_);
411 #endif
412
402 if (state_ == INITIALIZED) --number_of_isolates_; 413 if (state_ == INITIALIZED) --number_of_isolates_;
403 } 414 }
404 415
405 416
406 bool Isolate::PreInit() { 417 bool Isolate::PreInit() {
407 if (state_ != UNINITIALIZED) return true; 418 if (state_ != UNINITIALIZED) return true;
408 ASSERT(global_isolate_ == this); 419 ASSERT(global_isolate_ == this);
409 420
410 #ifdef ENABLE_DEBUGGER_SUPPORT 421 #ifdef ENABLE_DEBUGGER_SUPPORT
411 debug_ = new Debug(this); 422 debug_ = new Debug(this);
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 LOG(LogCodeObjects()); 583 LOG(LogCodeObjects());
573 LOG(LogCompiledFunctions()); 584 LOG(LogCompiledFunctions());
574 } 585 }
575 586
576 state_ = INITIALIZED; 587 state_ = INITIALIZED;
577 return true; 588 return true;
578 } 589 }
579 590
580 591
581 } } // namespace v8::internal 592 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/serialize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698