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

Side by Side Diff: src/isolate.cc

Issue 131383004: [not for landing] Diff between a64 and r19234 for no-a64 files. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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
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 1564 matching lines...) Expand 10 before | Expand all | Expand 10 after
1575 1575
1576 heap_.isolate_ = this; 1576 heap_.isolate_ = this;
1577 stack_guard_.isolate_ = this; 1577 stack_guard_.isolate_ = this;
1578 1578
1579 // ThreadManager is initialized early to support locking an isolate 1579 // ThreadManager is initialized early to support locking an isolate
1580 // before it is entered. 1580 // before it is entered.
1581 thread_manager_ = new ThreadManager(); 1581 thread_manager_ = new ThreadManager();
1582 thread_manager_->isolate_ = this; 1582 thread_manager_->isolate_ = this;
1583 1583
1584 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \ 1584 #if V8_TARGET_ARCH_ARM && !defined(__arm__) || \
1585 V8_TARGET_ARCH_A64 && !defined(__aarch64__) || \
1585 V8_TARGET_ARCH_MIPS && !defined(__mips__) 1586 V8_TARGET_ARCH_MIPS && !defined(__mips__)
1586 simulator_initialized_ = false; 1587 simulator_initialized_ = false;
1587 simulator_i_cache_ = NULL; 1588 simulator_i_cache_ = NULL;
1588 simulator_redirection_ = NULL; 1589 simulator_redirection_ = NULL;
1589 #endif 1590 #endif
1590 1591
1591 #ifdef DEBUG 1592 #ifdef DEBUG
1592 // heap_histograms_ initializes itself. 1593 // heap_histograms_ initializes itself.
1593 memset(&js_spill_information_, 0, sizeof(js_spill_information_)); 1594 memset(&js_spill_information_, 0, sizeof(js_spill_information_));
1594 memset(code_kind_statistics_, 0, 1595 memset(code_kind_statistics_, 0,
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
1960 call_descriptors_ = 1961 call_descriptors_ =
1961 new CallInterfaceDescriptor[NUMBER_OF_CALL_DESCRIPTORS]; 1962 new CallInterfaceDescriptor[NUMBER_OF_CALL_DESCRIPTORS];
1962 cpu_profiler_ = new CpuProfiler(this); 1963 cpu_profiler_ = new CpuProfiler(this);
1963 heap_profiler_ = new HeapProfiler(heap()); 1964 heap_profiler_ = new HeapProfiler(heap());
1964 1965
1965 // Enable logging before setting up the heap 1966 // Enable logging before setting up the heap
1966 logger_->SetUp(this); 1967 logger_->SetUp(this);
1967 1968
1968 // Initialize other runtime facilities 1969 // Initialize other runtime facilities
1969 #if defined(USE_SIMULATOR) 1970 #if defined(USE_SIMULATOR)
1970 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_MIPS 1971 #if V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_A64 || V8_TARGET_ARCH_MIPS
1971 Simulator::Initialize(this); 1972 Simulator::Initialize(this);
1972 #endif 1973 #endif
1973 #endif 1974 #endif
1974 1975
1975 { // NOLINT 1976 { // NOLINT
1976 // Ensure that the thread has a valid stack guard. The v8::Locker object 1977 // Ensure that the thread has a valid stack guard. The v8::Locker object
1977 // will ensure this too, but we don't have to use lockers if we are only 1978 // will ensure this too, but we don't have to use lockers if we are only
1978 // using one thread. 1979 // using one thread.
1979 ExecutionAccess lock(this); 1980 ExecutionAccess lock(this);
1980 stack_guard_.InitThread(lock); 1981 stack_guard_.InitThread(lock);
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
2312 2313
2313 #ifdef DEBUG 2314 #ifdef DEBUG
2314 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2315 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2315 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2316 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2316 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2317 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2317 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2318 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2318 #undef ISOLATE_FIELD_OFFSET 2319 #undef ISOLATE_FIELD_OFFSET
2319 #endif 2320 #endif
2320 2321
2321 } } // namespace v8::internal 2322 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698