Unreviewed. Fix the build after my attempted build fix broke the build.
authorsbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 May 2018 16:16:59 +0000 (16:16 +0000)
committersbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 May 2018 16:16:59 +0000 (16:16 +0000)
* builtins/BuiltinExecutables.cpp:
(JSC::BuiltinExecutables::defaultConstructorSourceCode):
(JSC::BuiltinExecutables::createDefaultConstructor):
* builtins/BuiltinExecutables.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231904 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/builtins/BuiltinExecutables.cpp
Source/JavaScriptCore/builtins/BuiltinExecutables.h

index b7238f4..aecdd49 100644 (file)
@@ -1,3 +1,12 @@
+2018-05-17  Saam Barati  <sbarati@apple.com>
+
+        Unreviewed. Fix the build after my attempted build fix broke the build.
+
+        * builtins/BuiltinExecutables.cpp:
+        (JSC::BuiltinExecutables::defaultConstructorSourceCode):
+        (JSC::BuiltinExecutables::createDefaultConstructor):
+        * builtins/BuiltinExecutables.h:
+
 2018-05-17  Yusuke Suzuki  <utatane.tea@gmail.com>
 
         [JSC] Remove reifyPropertyNameIfNeeded
index 9d47386..84d92a8 100644 (file)
@@ -42,7 +42,7 @@ BuiltinExecutables::BuiltinExecutables(VM& vm)
 {
 }
 
-const SourceCode& BuiltinExecutables::defaultConstructorSourceCode(ConstructorKind constructorKind)
+SourceCode BuiltinExecutables::defaultConstructorSourceCode(ConstructorKind constructorKind)
 {
     switch (constructorKind) {
     case ConstructorKind::None:
@@ -72,7 +72,6 @@ const SourceCode& BuiltinExecutables::defaultConstructorSourceCode(ConstructorKi
 
 UnlinkedFunctionExecutable* BuiltinExecutables::createDefaultConstructor(ConstructorKind constructorKind, const Identifier& name)
 {
-
     switch (constructorKind) {
     case ConstructorKind::None:
         break;
index a2440cc..438c60c 100644 (file)
@@ -49,7 +49,7 @@ const SourceCode& name##Source() { return m_##name##Source; }
     JSC_FOREACH_BUILTIN_CODE(EXPOSE_BUILTIN_EXECUTABLES)
 #undef EXPOSE_BUILTIN_SOURCES
 
-    static const SourceCode& defaultConstructorSourceCode(ConstructorKind);
+    static SourceCode defaultConstructorSourceCode(ConstructorKind);
     UnlinkedFunctionExecutable* createDefaultConstructor(ConstructorKind, const Identifier& name);
 
     static UnlinkedFunctionExecutable* createExecutable(VM&, const SourceCode&, const Identifier&, ConstructorKind, ConstructAbility);