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

Unified Diff: preparser/preparser-process.cc

Issue 13880018: Remove preparser library; link preparser executable against full V8 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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
« no previous file with comments | « preparser/preparser.gyp ('k') | src/preparser-api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: preparser/preparser-process.cc
diff --git a/preparser/preparser-process.cc b/preparser/preparser-process.cc
index 1bcc80492325ba8e0811d486fdee43a1aeb5f027..b816744303984ce307e301f244c276015957ef3d 100644
--- a/preparser/preparser-process.cc
+++ b/preparser/preparser-process.cc
@@ -30,6 +30,7 @@
#include <stdio.h>
#include <string.h>
+#include "../include/v8.h"
#include "../include/v8stdint.h"
#include "../include/v8-preparser.h"
@@ -37,8 +38,7 @@
namespace i = v8::internal;
-// This file is only used for testing the stand-alone preparser
-// library.
+// This file is only used for testing the preparser.
// The first argument must be the path of a JavaScript source file, or
// the flags "-e" and the next argument is then the source of a JavaScript
// program.
@@ -320,6 +320,8 @@ int main(int argc, const char* argv[]) {
ExceptionExpectation expects =
ParseExpectation(argc - arg_index, argv + arg_index);
+ v8::V8::Initialize();
+
ScopedPointer<uint8_t> buffer;
size_t length;
« no previous file with comments | « preparser/preparser.gyp ('k') | src/preparser-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698