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

Side by Side Diff: src/isolate.cc

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