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

Side by Side Diff: src/v8.cc

Issue 385035: Restore info needed to register profile ticks in functions from... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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/objects-inl.h ('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 15 matching lines...) Expand all
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #include "v8.h" 28 #include "v8.h"
29 29
30 #include "bootstrapper.h" 30 #include "bootstrapper.h"
31 #include "debug.h" 31 #include "debug.h"
32 #include "serialize.h" 32 #include "serialize.h"
33 #include "simulator.h" 33 #include "simulator.h"
34 #include "stub-cache.h" 34 #include "stub-cache.h"
35 #include "oprofile-agent.h" 35 #include "oprofile-agent.h"
36 #include "log.h"
36 37
37 namespace v8 { 38 namespace v8 {
38 namespace internal { 39 namespace internal {
39 40
40 bool V8::is_running_ = false; 41 bool V8::is_running_ = false;
41 bool V8::has_been_setup_ = false; 42 bool V8::has_been_setup_ = false;
42 bool V8::has_been_disposed_ = false; 43 bool V8::has_been_disposed_ = false;
43 bool V8::has_fatal_error_ = false; 44 bool V8::has_fatal_error_ = false;
44 45
45 bool V8::Initialize(GenericDeserializer *des) { 46 bool V8::Initialize(GenericDeserializer *des) {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // stack guard. 108 // stack guard.
108 Heap::SetStackLimits(); 109 Heap::SetStackLimits();
109 110
110 // Setup the CPU support. Must be done after heap setup and after 111 // Setup the CPU support. Must be done after heap setup and after
111 // any deserialization because we have to have the initial heap 112 // any deserialization because we have to have the initial heap
112 // objects in place for creating the code object used for probing. 113 // objects in place for creating the code object used for probing.
113 CPU::Setup(); 114 CPU::Setup();
114 115
115 OProfileAgent::Initialize(); 116 OProfileAgent::Initialize();
116 117
118 if (FLAG_log_code) {
119 HandleScope scope;
120 Logger::LogCompiledFunctions();
121 }
122
117 return true; 123 return true;
118 } 124 }
119 125
120 126
121 void V8::SetFatalError() { 127 void V8::SetFatalError() {
122 is_running_ = false; 128 is_running_ = false;
123 has_fatal_error_ = true; 129 has_fatal_error_ = true;
124 } 130 }
125 131
126 132
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 185
180 Smi* V8::RandomPositiveSmi() { 186 Smi* V8::RandomPositiveSmi() {
181 uint32_t random = Random(); 187 uint32_t random = Random();
182 ASSERT(static_cast<uint32_t>(Smi::kMaxValue) >= kRandomPositiveSmiMax); 188 ASSERT(static_cast<uint32_t>(Smi::kMaxValue) >= kRandomPositiveSmiMax);
183 // kRandomPositiveSmiMax must match the value being divided 189 // kRandomPositiveSmiMax must match the value being divided
184 // by in math.js. 190 // by in math.js.
185 return Smi::FromInt(random & kRandomPositiveSmiMax); 191 return Smi::FromInt(random & kRandomPositiveSmiMax);
186 } 192 }
187 193
188 } } // namespace v8::internal 194 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698