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

Side by Side Diff: src/isolate.cc

Issue 6709022: Re-establish mips basic infrastructure. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Rebased on bleeding_edge r7374 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/isolate.h ('k') | src/jsregexp.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 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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 result_constant_list_(0) { 375 result_constant_list_(0) {
376 TRACE_ISOLATE(constructor); 376 TRACE_ISOLATE(constructor);
377 377
378 memset(isolate_addresses_, 0, 378 memset(isolate_addresses_, 0,
379 sizeof(isolate_addresses_[0]) * (k_isolate_address_count + 1)); 379 sizeof(isolate_addresses_[0]) * (k_isolate_address_count + 1));
380 380
381 heap_.isolate_ = this; 381 heap_.isolate_ = this;
382 zone_.isolate_ = this; 382 zone_.isolate_ = this;
383 stack_guard_.isolate_ = this; 383 stack_guard_.isolate_ = this;
384 384
385 #if defined(V8_TARGET_ARCH_ARM) && !defined(__arm__) 385 #if defined(V8_TARGET_ARCH_ARM) && !defined(__arm__) || \
386 defined(V8_TARGET_ARCH_MIPS) && !defined(__mips__)
386 simulator_initialized_ = false; 387 simulator_initialized_ = false;
387 simulator_i_cache_ = NULL; 388 simulator_i_cache_ = NULL;
388 simulator_redirection_ = NULL; 389 simulator_redirection_ = NULL;
389 #endif 390 #endif
390 391
391 #ifdef DEBUG 392 #ifdef DEBUG
392 // heap_histograms_ initializes itself. 393 // heap_histograms_ initializes itself.
393 memset(&js_spill_information_, 0, sizeof(js_spill_information_)); 394 memset(&js_spill_information_, 0, sizeof(js_spill_information_));
394 memset(code_kind_statistics_, 0, 395 memset(code_kind_statistics_, 0,
395 sizeof(code_kind_statistics_[0]) * Code::NUMBER_OF_KINDS); 396 sizeof(code_kind_statistics_[0]) * Code::NUMBER_OF_KINDS);
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 logger_->Setup(); 652 logger_->Setup();
652 653
653 CpuProfiler::Setup(); 654 CpuProfiler::Setup();
654 HeapProfiler::Setup(); 655 HeapProfiler::Setup();
655 656
656 // Setup the platform OS support. 657 // Setup the platform OS support.
657 OS::Setup(); 658 OS::Setup();
658 659
659 // Initialize other runtime facilities 660 // Initialize other runtime facilities
660 #if defined(USE_SIMULATOR) 661 #if defined(USE_SIMULATOR)
661 #if defined(V8_TARGET_ARCH_ARM) 662 #if defined(V8_TARGET_ARCH_ARM) || defined(V8_TARGET_ARCH_MIPS)
662 Simulator::Initialize(); 663 Simulator::Initialize();
663 #elif defined(V8_TARGET_ARCH_MIPS)
664 ::assembler::mips::Simulator::Initialize();
665 #endif 664 #endif
666 #endif 665 #endif
667 666
668 { // NOLINT 667 { // NOLINT
669 // Ensure that the thread has a valid stack guard. The v8::Locker object 668 // Ensure that the thread has a valid stack guard. The v8::Locker object
670 // will ensure this too, but we don't have to use lockers if we are only 669 // will ensure this too, but we don't have to use lockers if we are only
671 // using one thread. 670 // using one thread.
672 ExecutionAccess lock(this); 671 ExecutionAccess lock(this);
673 stack_guard_.InitThread(lock); 672 stack_guard_.InitThread(lock);
674 } 673 }
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 815
817 #ifdef DEBUG 816 #ifdef DEBUG
818 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 817 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
819 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 818 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
820 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 819 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
821 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 820 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
822 #undef ISOLATE_FIELD_OFFSET 821 #undef ISOLATE_FIELD_OFFSET
823 #endif 822 #endif
824 823
825 } } // namespace v8::internal 824 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/jsregexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698