| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 if (bz2_result != BZ_OK) { | 286 if (bz2_result != BZ_OK) { |
| 287 fprintf(stderr, "bzip error code: %d\n", bz2_result); | 287 fprintf(stderr, "bzip error code: %d\n", bz2_result); |
| 288 exit(1); | 288 exit(1); |
| 289 } | 289 } |
| 290 #endif | 290 #endif |
| 291 i::FLAG_logfile_per_isolate = false; | 291 i::FLAG_logfile_per_isolate = false; |
| 292 | 292 |
| 293 Isolate* isolate = v8::Isolate::New(); | 293 Isolate* isolate = v8::Isolate::New(); |
| 294 isolate->Enter(); | 294 isolate->Enter(); |
| 295 i::Isolate* internal_isolate = reinterpret_cast<i::Isolate*>(isolate); | 295 i::Isolate* internal_isolate = reinterpret_cast<i::Isolate*>(isolate); |
| 296 i::Serializer::Enable(internal_isolate); | 296 i::Serializer::RequestEnable(internal_isolate); |
| 297 Persistent<Context> context; | 297 Persistent<Context> context; |
| 298 { | 298 { |
| 299 HandleScope handle_scope(isolate); | 299 HandleScope handle_scope(isolate); |
| 300 context.Reset(isolate, Context::New(isolate)); | 300 context.Reset(isolate, Context::New(isolate)); |
| 301 } | 301 } |
| 302 | 302 |
| 303 if (context.IsEmpty()) { | 303 if (context.IsEmpty()) { |
| 304 fprintf(stderr, | 304 fprintf(stderr, |
| 305 "\nException thrown while compiling natives - see above.\n\n"); | 305 "\nException thrown while compiling natives - see above.\n\n"); |
| 306 exit(1); | 306 exit(1); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 ser.CurrentAllocationAddress(i::OLD_DATA_SPACE), | 397 ser.CurrentAllocationAddress(i::OLD_DATA_SPACE), |
| 398 ser.CurrentAllocationAddress(i::CODE_SPACE), | 398 ser.CurrentAllocationAddress(i::CODE_SPACE), |
| 399 ser.CurrentAllocationAddress(i::MAP_SPACE), | 399 ser.CurrentAllocationAddress(i::MAP_SPACE), |
| 400 ser.CurrentAllocationAddress(i::CELL_SPACE), | 400 ser.CurrentAllocationAddress(i::CELL_SPACE), |
| 401 ser.CurrentAllocationAddress(i::PROPERTY_CELL_SPACE)); | 401 ser.CurrentAllocationAddress(i::PROPERTY_CELL_SPACE)); |
| 402 isolate->Exit(); | 402 isolate->Exit(); |
| 403 isolate->Dispose(); | 403 isolate->Dispose(); |
| 404 V8::Dispose(); | 404 V8::Dispose(); |
| 405 return 0; | 405 return 0; |
| 406 } | 406 } |
| OLD | NEW |