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

Side by Side Diff: src/v8.cc

Issue 6709022: Re-establish mips basic infrastructure. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: 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
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Enable logging before setting up the heap 74 // Enable logging before setting up the heap
75 Logger::Setup(); 75 Logger::Setup();
76 76
77 CpuProfiler::Setup(); 77 CpuProfiler::Setup();
78 HeapProfiler::Setup(); 78 HeapProfiler::Setup();
79 79
80 // Setup the platform OS support. 80 // Setup the platform OS support.
81 OS::Setup(); 81 OS::Setup();
82 82
83 // Initialize other runtime facilities 83 // Initialize other runtime facilities
84 #if defined(USE_SIMULATOR) 84
85 #if defined(V8_TARGET_ARCH_ARM) 85 #if defined(USE_SIMULATOR) && \
86 (defined(V8_TARGET_ARCH_ARM) || defined(V8_TARGET_ARCH_MIPS))
86 Simulator::Initialize(); 87 Simulator::Initialize();
87 #elif defined(V8_TARGET_ARCH_MIPS)
88 ::assembler::mips::Simulator::Initialize();
89 #endif
90 #endif 88 #endif
91 89
92 { // NOLINT 90 { // NOLINT
93 // Ensure that the thread has a valid stack guard. The v8::Locker object 91 // Ensure that the thread has a valid stack guard. The v8::Locker object
94 // will ensure this too, but we don't have to use lockers if we are only 92 // will ensure this too, but we don't have to use lockers if we are only
95 // using one thread. 93 // using one thread.
96 ExecutionAccess lock; 94 ExecutionAccess lock;
97 StackGuard::InitThread(lock); 95 StackGuard::InitThread(lock);
98 } 96 }
99 97
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 // ( 1.(20 0s)(32 random bits) x 2^20 ) - (1.0 x 2^20)). 259 // ( 1.(20 0s)(32 random bits) x 2^20 ) - (1.0 x 2^20)).
262 const double binary_million = 1048576.0; 260 const double binary_million = 1048576.0;
263 r->double_value = binary_million; 261 r->double_value = binary_million;
264 r->uint64_t_value |= random_bits; 262 r->uint64_t_value |= random_bits;
265 r->double_value -= binary_million; 263 r->double_value -= binary_million;
266 264
267 return heap_number; 265 return heap_number;
268 } 266 }
269 267
270 } } // namespace v8::internal 268 } } // namespace v8::internal
OLDNEW
« src/objects-inl.h ('K') | « src/top.cc ('k') | src/v8globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698