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

Side by Side Diff: src/v8.cc

Issue 345048: Fix issue 493: Infinite loop when debug break is set when entering function.apply (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/serialize.cc ('k') | src/x64/builtins-x64.cc » ('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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 StubCache::Initialize(create_heap_objects); 101 StubCache::Initialize(create_heap_objects);
102 102
103 // If we are deserializing, read the state into the now-empty heap. 103 // If we are deserializing, read the state into the now-empty heap.
104 if (des != NULL) { 104 if (des != NULL) {
105 des->Deserialize(); 105 des->Deserialize();
106 StubCache::Clear(); 106 StubCache::Clear();
107 } 107 }
108 108
109 // Deserializing may put strange things in the root array's copy of the 109 // Deserializing may put strange things in the root array's copy of the
110 // stack guard. 110 // stack guard.
111 Heap::SetStackLimit(StackGuard::jslimit()); 111 Heap::SetStackLimits();
112 112
113 // Setup the CPU support. Must be done after heap setup and after 113 // Setup the CPU support. Must be done after heap setup and after
114 // any deserialization because we have to have the initial heap 114 // any deserialization because we have to have the initial heap
115 // objects in place for creating the code object used for probing. 115 // objects in place for creating the code object used for probing.
116 CPU::Setup(); 116 CPU::Setup();
117 117
118 OProfileAgent::Initialize(); 118 OProfileAgent::Initialize();
119 119
120 return true; 120 return true;
121 } 121 }
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 Smi* V8::RandomPositiveSmi() { 183 Smi* V8::RandomPositiveSmi() {
184 uint32_t random = Random(); 184 uint32_t random = Random();
185 ASSERT(static_cast<uint32_t>(Smi::kMaxValue) >= kRandomPositiveSmiMax); 185 ASSERT(static_cast<uint32_t>(Smi::kMaxValue) >= kRandomPositiveSmiMax);
186 // kRandomPositiveSmiMax must match the value being divided 186 // kRandomPositiveSmiMax must match the value being divided
187 // by in math.js. 187 // by in math.js.
188 return Smi::FromInt(random & kRandomPositiveSmiMax); 188 return Smi::FromInt(random & kRandomPositiveSmiMax);
189 } 189 }
190 190
191 } } // namespace v8::internal 191 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/serialize.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698