OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 bool use_runtime_context); | 309 bool use_runtime_context); |
310 | 310 |
311 Handle<Context> result_; | 311 Handle<Context> result_; |
312 }; | 312 }; |
313 | 313 |
314 Genesis* Genesis::current_ = NULL; | 314 Genesis* Genesis::current_ = NULL; |
315 | 315 |
316 | 316 |
317 void Bootstrapper::Iterate(ObjectVisitor* v) { | 317 void Bootstrapper::Iterate(ObjectVisitor* v) { |
318 natives_cache.Iterate(v); | 318 natives_cache.Iterate(v); |
| 319 v->Synchronize("NativesCache"); |
319 extensions_cache.Iterate(v); | 320 extensions_cache.Iterate(v); |
| 321 v->Synchronize("Extensions"); |
320 PendingFixups::Iterate(v); | 322 PendingFixups::Iterate(v); |
| 323 v->Synchronize("PendingFixups"); |
321 } | 324 } |
322 | 325 |
323 | 326 |
324 // While setting up the environment, we collect code positions that | 327 // While setting up the environment, we collect code positions that |
325 // need to be patched before we can run any code in the environment. | 328 // need to be patched before we can run any code in the environment. |
326 void Bootstrapper::AddFixup(Code* code, MacroAssembler* masm) { | 329 void Bootstrapper::AddFixup(Code* code, MacroAssembler* masm) { |
327 PendingFixups::Add(code, masm); | 330 PendingFixups::Add(code, masm); |
328 } | 331 } |
329 | 332 |
330 | 333 |
(...skipping 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1599 } | 1602 } |
1600 | 1603 |
1601 | 1604 |
1602 // Restore statics that are thread local. | 1605 // Restore statics that are thread local. |
1603 char* Genesis::RestoreState(char* from) { | 1606 char* Genesis::RestoreState(char* from) { |
1604 current_ = *reinterpret_cast<Genesis**>(from); | 1607 current_ = *reinterpret_cast<Genesis**>(from); |
1605 return from + sizeof(current_); | 1608 return from + sizeof(current_); |
1606 } | 1609 } |
1607 | 1610 |
1608 } } // namespace v8::internal | 1611 } } // namespace v8::internal |
OLD | NEW |