Reviewers: Søren Gjesse,

Description:
Fix the build after previous commit.

[email protected]

Please review this at http://codereview.chromium.org/605030

Affected files:
  M src/bootstrapper.cc
  M src/debug.cc
  M src/handles.cc
  M test/cctest/test-compiler.cc


Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 6dd9fc598a5fda7ea80ba65384a9c06ef059082b..727d4a6ef664cd37ce4006874002296d651683e2 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -824,7 +824,8 @@ bool Genesis::CompileScriptCached(Vector<const char> name,
     ASSERT(source->IsAsciiRepresentation());
     Handle<String> script_name = Factory::NewStringFromUtf8(name);
     boilerplate =
-        Compiler::Compile(source, script_name, 0, 0, extension, NULL);
+        Compiler::Compile(source, script_name, 0, 0, extension, NULL,
+                          Handle<String>::null());
     if (boilerplate.is_null()) return false;
     cache->Add(name, boilerplate);
   }
Index: src/debug.cc
diff --git a/src/debug.cc b/src/debug.cc
index 019081fb8bc0e7d66925e7b3e5aaf6b436b7d37a..8c4f51d95a2824c6c92abb2f505e0a76968e9e4c 100644
--- a/src/debug.cc
+++ b/src/debug.cc
@@ -683,7 +683,8 @@ bool Debug::CompileDebuggerScript(int index) {
   bool allow_natives_syntax = FLAG_allow_natives_syntax;
   FLAG_allow_natives_syntax = true;
   Handle<JSFunction> boilerplate;
- boilerplate = Compiler::Compile(source_code, script_name, 0, 0, NULL, NULL); + boilerplate = Compiler::Compile(source_code, script_name, 0, 0, NULL, NULL,
+                                  Handle<String>::null());
   FLAG_allow_natives_syntax = allow_natives_syntax;

   // Silently ignore stack overflows during compilation.
Index: src/handles.cc
diff --git a/src/handles.cc b/src/handles.cc
index ad366c3761d25b39a0d2b60baa5676e8bcae5fed..971c9164a26b76fb15196c32aab58738185617c8 100644
--- a/src/handles.cc
+++ b/src/handles.cc
@@ -770,7 +770,8 @@ void LoadLazy(Handle<JSObject> obj, bool* pending_exception) {
     Handle<String> script_name = Factory::NewStringFromAscii(name);
     bool allow_natives_syntax = FLAG_allow_natives_syntax;
     FLAG_allow_natives_syntax = true;
- boilerplate = Compiler::Compile(source_code, script_name, 0, 0, NULL, NULL); + boilerplate = Compiler::Compile(source_code, script_name, 0, 0, NULL, NULL,
+                                    Handle<String>::null());
     FLAG_allow_natives_syntax = allow_natives_syntax;
     // If the compilation failed (possibly due to stack overflows), we
     // should never enter the result in the natives cache. Instead we
Index: test/cctest/test-compiler.cc
diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc
index da675d741de6c6f09fcdbdcdd88aaa65e8efde14..a6b537790a0fe449108afaa505919c0949b54fbd 100644
--- a/test/cctest/test-compiler.cc
+++ b/test/cctest/test-compiler.cc
@@ -115,7 +115,8 @@ static void SetGlobalProperty(const char* name, Object* value) {
 static Handle<JSFunction> Compile(const char* source) {
Handle<String> source_code(Factory::NewStringFromUtf8(CStrVector(source)));
   Handle<JSFunction> boilerplate =
-      Compiler::Compile(source_code, Handle<String>(), 0, 0, NULL, NULL);
+      Compiler::Compile(source_code, Handle<String>(), 0, 0, NULL, NULL,
+                        Handle<String>::null());
   return Factory::NewFunctionFromBoilerplate(boilerplate,
                                              Top::global_context());
 }


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to