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

Side by Side Diff: src/v8.cc

Issue 4090003: Allow forcing the use of a simulator from the build script... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 1 month 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/top.cc ('k') | no next file » | 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-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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 Logger::Setup(); 62 Logger::Setup();
63 63
64 CpuProfiler::Setup(); 64 CpuProfiler::Setup();
65 HeapProfiler::Setup(); 65 HeapProfiler::Setup();
66 66
67 // Setup the platform OS support. 67 // Setup the platform OS support.
68 OS::Setup(); 68 OS::Setup();
69 69
70 // Initialize other runtime facilities 70 // Initialize other runtime facilities
71 #if defined(USE_SIMULATOR) 71 #if defined(USE_SIMULATOR)
72 #if defined(V8_TARGET_ARCH_ARM)
72 ::assembler::arm::Simulator::Initialize(); 73 ::assembler::arm::Simulator::Initialize();
74 #elif defined(V8_TARGET_ARCH_MIPS)
75 ::assembler::mips::Simulator::Initialize();
76 #endif
73 #endif 77 #endif
74 78
75 { // NOLINT 79 { // NOLINT
76 // Ensure that the thread has a valid stack guard. The v8::Locker object 80 // Ensure that the thread has a valid stack guard. The v8::Locker object
77 // will ensure this too, but we don't have to use lockers if we are only 81 // will ensure this too, but we don't have to use lockers if we are only
78 // using one thread. 82 // using one thread.
79 ExecutionAccess lock; 83 ExecutionAccess lock;
80 StackGuard::InitThread(lock); 84 StackGuard::InitThread(lock);
81 } 85 }
82 86
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 // ( 1.(20 0s)(32 random bits) x 2^20 ) - (1.0 x 2^20)). 223 // ( 1.(20 0s)(32 random bits) x 2^20 ) - (1.0 x 2^20)).
220 const double binary_million = 1048576.0; 224 const double binary_million = 1048576.0;
221 r->double_value = binary_million; 225 r->double_value = binary_million;
222 r->uint64_t_value |= random_bits; 226 r->uint64_t_value |= random_bits;
223 r->double_value -= binary_million; 227 r->double_value -= binary_million;
224 228
225 return heap_number; 229 return heap_number;
226 } 230 }
227 231
228 } } // namespace v8::internal 232 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/top.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698