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

Unified Diff: samples/process.cc

Issue 345903004: Split out libplatform into a separate libary (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« BUILD.gn ('K') | « samples/lineprocessor.cc ('k') | samples/samples.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/process.cc
diff --git a/samples/process.cc b/samples/process.cc
index 76b178bc924c366253e6966fd97f167f849b9fc9..ce6d8e6beab14e158e30460a09de136ce26ede02 100644
--- a/samples/process.cc
+++ b/samples/process.cc
@@ -25,7 +25,9 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#include <v8.h>
+#include <include/v8.h>
+
+#include <include/libplatform/libplatform.h>
#include <map>
#include <string>
@@ -644,6 +646,8 @@ void PrintMap(map<string, string>* m) {
int main(int argc, char* argv[]) {
v8::V8::InitializeICU();
+ v8::Platform* platform = v8::platform::CreateDefaultPlatform(0);
+ v8::V8::InitializePlatform(platform);
Jakob Kummerow 2014/07/02 07:37:52 Is it intentional that this platform is never shut
jochen (gone - plz use gerrit) 2014/07/02 07:39:25 in this file, we also never dispose v8 (or the iso
map<string, string> options;
string file;
ParseOptions(argc, argv, &options, &file);
« BUILD.gn ('K') | « samples/lineprocessor.cc ('k') | samples/samples.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698