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

Side by Side Diff: src/isolate.cc

Issue 7491089: Make experimental/gc compilable on Mac OS. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 4 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after
1693 #endif 1693 #endif
1694 1694
1695 if (state_ == UNINITIALIZED && !PreInit()) return false; 1695 if (state_ == UNINITIALIZED && !PreInit()) return false;
1696 1696
1697 // Enable logging before setting up the heap 1697 // Enable logging before setting up the heap
1698 logger_->Setup(); 1698 logger_->Setup();
1699 1699
1700 CpuProfiler::Setup(); 1700 CpuProfiler::Setup();
1701 HeapProfiler::Setup(); 1701 HeapProfiler::Setup();
1702 1702
1703 // If the serializer is enabled we will use only the platform to determine
1704 // the CPU. We can do that without generating probe code, so we don't need
1705 // the heap to be set up first. We move up the detection to here so that
1706 // the builtins can make use of the information.
1707 if (Serializer::enabled()) CPU::Setup();
1708
1709 // Initialize other runtime facilities 1703 // Initialize other runtime facilities
1710 #if defined(USE_SIMULATOR) 1704 #if defined(USE_SIMULATOR)
1711 #if defined(V8_TARGET_ARCH_ARM) || defined(V8_TARGET_ARCH_MIPS) 1705 #if defined(V8_TARGET_ARCH_ARM) || defined(V8_TARGET_ARCH_MIPS)
1712 Simulator::Initialize(this); 1706 Simulator::Initialize(this);
1713 #endif 1707 #endif
1714 #endif 1708 #endif
1715 1709
1716 { // NOLINT 1710 { // NOLINT
1717 // Ensure that the thread has a valid stack guard. The v8::Locker object 1711 // Ensure that the thread has a valid stack guard. The v8::Locker object
1718 // will ensure this too, but we don't have to use lockers if we are only 1712 // will ensure this too, but we don't have to use lockers if we are only
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1854 1848
1855 #ifdef DEBUG 1849 #ifdef DEBUG
1856 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 1850 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
1857 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 1851 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
1858 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 1852 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
1859 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 1853 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
1860 #undef ISOLATE_FIELD_OFFSET 1854 #undef ISOLATE_FIELD_OFFSET
1861 #endif 1855 #endif
1862 1856
1863 } } // namespace v8::internal 1857 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/platform-linux.cc » ('j') | src/platform-macos.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698