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

Side by Side Diff: src/bootstrapper.cc

Issue 113121: Changed the flags that indicate the status of running vs dead... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 7 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
OLDNEW
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 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after
1502 Genesis::Genesis(Handle<Object> global_object, 1502 Genesis::Genesis(Handle<Object> global_object,
1503 v8::Handle<v8::ObjectTemplate> global_template, 1503 v8::Handle<v8::ObjectTemplate> global_template,
1504 v8::ExtensionConfiguration* extensions) { 1504 v8::ExtensionConfiguration* extensions) {
1505 // Link this genesis object into the stacked genesis chain. This 1505 // Link this genesis object into the stacked genesis chain. This
1506 // must be done before any early exits because the destructor 1506 // must be done before any early exits because the destructor
1507 // will always do unlinking. 1507 // will always do unlinking.
1508 previous_ = current_; 1508 previous_ = current_;
1509 current_ = this; 1509 current_ = this;
1510 result_ = NULL; 1510 result_ = NULL;
1511 1511
1512 // If V8 hasn't been and cannot be initialized, just return. 1512 // If V8 isn't running and cannot be initialized, just return.
1513 if (!V8::HasBeenSetup() && !V8::Initialize(NULL)) return; 1513 if (!V8::IsRunning() && !V8::Initialize(NULL)) return;
1514 1514
1515 // Before creating the roots we must save the context and restore it 1515 // Before creating the roots we must save the context and restore it
1516 // on all function exits. 1516 // on all function exits.
1517 HandleScope scope; 1517 HandleScope scope;
1518 SaveContext context; 1518 SaveContext context;
1519 1519
1520 CreateRoots(global_template, global_object); 1520 CreateRoots(global_template, global_object);
1521 if (!InstallNatives()) return; 1521 if (!InstallNatives()) return;
1522 1522
1523 MakeFunctionInstancePrototypeWritable(); 1523 MakeFunctionInstancePrototypeWritable();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1567 } 1567 }
1568 1568
1569 1569
1570 // Restore statics that are thread local. 1570 // Restore statics that are thread local.
1571 char* Genesis::RestoreState(char* from) { 1571 char* Genesis::RestoreState(char* from) {
1572 current_ = *reinterpret_cast<Genesis**>(from); 1572 current_ = *reinterpret_cast<Genesis**>(from);
1573 return from + sizeof(current_); 1573 return from + sizeof(current_);
1574 } 1574 }
1575 1575
1576 } } // namespace v8::internal 1576 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698