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

Side by Side Diff: src/v8.cc

Issue 4044003: Clean up definitions in simulator. ... (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') | src/x64/simulator-x64.h » ('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 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // Enable logging before setting up the heap 61 // Enable logging before setting up the heap
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) || !V8_HOST_ARCH_ARM) && V8_TARGET_ARCH_ARM 71 #if defined(USE_SIMULATOR)
72 ::assembler::arm::Simulator::Initialize(); 72 ::assembler::arm::Simulator::Initialize();
73 #endif 73 #endif
74 74
75 { // NOLINT 75 { // NOLINT
76 // Ensure that the thread has a valid stack guard. The v8::Locker object 76 // 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 77 // will ensure this too, but we don't have to use lockers if we are only
78 // using one thread. 78 // using one thread.
79 ExecutionAccess lock; 79 ExecutionAccess lock;
80 StackGuard::InitThread(lock); 80 StackGuard::InitThread(lock);
81 } 81 }
(...skipping 137 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)). 219 // ( 1.(20 0s)(32 random bits) x 2^20 ) - (1.0 x 2^20)).
220 const double binary_million = 1048576.0; 220 const double binary_million = 1048576.0;
221 r->double_value = binary_million; 221 r->double_value = binary_million;
222 r->uint64_t_value |= random_bits; 222 r->uint64_t_value |= random_bits;
223 r->double_value -= binary_million; 223 r->double_value -= binary_million;
224 224
225 return heap_number; 225 return heap_number;
226 } 226 }
227 227
228 } } // namespace v8::internal 228 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/top.cc ('k') | src/x64/simulator-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698