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

Side by Side Diff: src/v8.cc

Issue 6274009: ARM: Merging constants in simulator and assembler header files and other clea... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 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
« src/arm/assembler-arm.cc ('K') | « 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 CpuProfiler::Setup(); 73 CpuProfiler::Setup();
74 HeapProfiler::Setup(); 74 HeapProfiler::Setup();
75 75
76 // Setup the platform OS support. 76 // Setup the platform OS support.
77 OS::Setup(); 77 OS::Setup();
78 78
79 // Initialize other runtime facilities 79 // Initialize other runtime facilities
80 #if defined(USE_SIMULATOR) 80 #if defined(USE_SIMULATOR)
81 #if defined(V8_TARGET_ARCH_ARM) 81 #if defined(V8_TARGET_ARCH_ARM)
82 ::assembler::arm::Simulator::Initialize(); 82 Simulator::Initialize();
83 #elif defined(V8_TARGET_ARCH_MIPS) 83 #elif defined(V8_TARGET_ARCH_MIPS)
84 ::assembler::mips::Simulator::Initialize(); 84 ::assembler::mips::Simulator::Initialize();
85 #endif 85 #endif
86 #endif 86 #endif
87 87
88 { // NOLINT 88 { // NOLINT
89 // Ensure that the thread has a valid stack guard. The v8::Locker object 89 // Ensure that the thread has a valid stack guard. The v8::Locker object
90 // will ensure this too, but we don't have to use lockers if we are only 90 // will ensure this too, but we don't have to use lockers if we are only
91 // using one thread. 91 // using one thread.
92 ExecutionAccess lock; 92 ExecutionAccess lock;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // ( 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)).
260 const double binary_million = 1048576.0; 260 const double binary_million = 1048576.0;
261 r->double_value = binary_million; 261 r->double_value = binary_million;
262 r->uint64_t_value |= random_bits; 262 r->uint64_t_value |= random_bits;
263 r->double_value -= binary_million; 263 r->double_value -= binary_million;
264 264
265 return heap_number; 265 return heap_number;
266 } 266 }
267 267
268 } } // namespace v8::internal 268 } } // namespace v8::internal
OLDNEW
« src/arm/assembler-arm.cc ('K') | « src/top.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698