Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (206532 => 206533)
--- trunk/Source/_javascript_Core/ChangeLog 2016-09-28 19:32:36 UTC (rev 206532)
+++ trunk/Source/_javascript_Core/ChangeLog 2016-09-28 19:34:27 UTC (rev 206533)
@@ -1,3 +1,41 @@
+2016-09-28 Joseph Pecoraro <[email protected]>
+
+ Adopt #pragma once in some generated resources
+ https://bugs.webkit.org/show_bug.cgi?id=162666
+
+ Reviewed by Alex Christensen.
+
+ * Scripts/builtins/builtins_generate_combined_header.py:
+ * Scripts/builtins/builtins_generate_internals_wrapper_header.py:
+ * Scripts/builtins/builtins_generate_internals_wrapper_implementation.py:
+ * Scripts/builtins/builtins_generate_separate_header.py:
+ * Scripts/builtins/builtins_generate_wrapper_header.py:
+ * Scripts/builtins/builtins_generate_wrapper_implementation.py:
+ Remove headerGuard attribute unused by templates.
+
+ * Scripts/tests/builtins/expected/_javascript_Core-Operations.Promise-Combined.js-result: Removed.
+ No such test exists. It was likely renamed.
+
+ * generate-bytecode-files:
+ Simplify header guard output.
+
+ * inspector/scripts/codegen/generate_objc_backend_dispatcher_header.py:
+ (ObjCBackendDispatcherHeaderGenerator.generate_output):
+ * replay/scripts/CodeGeneratorReplayInputs.py:
+ (Generator.generate_header):
+ * replay/scripts/CodeGeneratorReplayInputsTemplates.py:
+ Simplify header guard output.
+
+ * replay/scripts/tests/expected/generate-enum-encoding-helpers-with-guarded-values.json-TestReplayInputs.h:
+ * replay/scripts/tests/expected/generate-enum-encoding-helpers.json-TestReplayInputs.h:
+ * replay/scripts/tests/expected/generate-enum-with-guard.json-TestReplayInputs.h:
+ * replay/scripts/tests/expected/generate-enums-with-same-base-name.json-TestReplayInputs.h:
+ * replay/scripts/tests/expected/generate-input-with-guard.json-TestReplayInputs.h:
+ * replay/scripts/tests/expected/generate-input-with-vector-members.json-TestReplayInputs.h:
+ * replay/scripts/tests/expected/generate-inputs-with-flags.json-TestReplayInputs.h:
+ * replay/scripts/tests/expected/generate-memoized-type-modes.json-TestReplayInputs.h:
+ Rebaseline.
+
2016-09-28 Filip Pizlo <[email protected]>
Store-load fences should be a lot cheaper on ARM
Modified: trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_combined_header.py (206532 => 206533)
--- trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_combined_header.py 2016-09-28 19:32:36 UTC (rev 206532)
+++ trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_combined_header.py 2016-09-28 19:34:27 UTC (rev 206533)
@@ -46,7 +46,6 @@
def generate_output(self):
args = {
'namespace': self.model().framework.setting('namespace'),
- 'headerGuard': self.output_filename().replace('.', '_'),
'macroPrefix': self.model().framework.setting('macro_prefix'),
}
Property changes on: trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_combined_header.py
___________________________________________________________________
Added: svn:executable
+*
\ No newline at end of property
Modified: trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_internals_wrapper_header.py (206532 => 206533)
--- trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_internals_wrapper_header.py 2016-09-28 19:32:36 UTC (rev 206532)
+++ trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_internals_wrapper_header.py 2016-09-28 19:34:27 UTC (rev 206533)
@@ -44,7 +44,6 @@
def generate_output(self):
args = {
'namespace': self.model().framework.setting('namespace'),
- 'headerGuard': self.output_filename().replace('.', '_'),
}
sections = []
Property changes on: trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_internals_wrapper_header.py
___________________________________________________________________
Added: svn:executable
+*
\ No newline at end of property
Modified: trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_internals_wrapper_implementation.py (206532 => 206533)
--- trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_internals_wrapper_implementation.py 2016-09-28 19:32:36 UTC (rev 206532)
+++ trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_internals_wrapper_implementation.py 2016-09-28 19:34:27 UTC (rev 206533)
@@ -44,7 +44,6 @@
def generate_output(self):
args = {
'namespace': self.model().framework.setting('namespace'),
- 'headerGuard': self.output_filename().replace('.', '_'),
}
sections = []
Property changes on: trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_internals_wrapper_implementation.py
___________________________________________________________________
Added: svn:executable
+*
\ No newline at end of property
Modified: trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_separate_header.py (206532 => 206533)
--- trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_separate_header.py 2016-09-28 19:32:36 UTC (rev 206532)
+++ trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_separate_header.py 2016-09-28 19:34:27 UTC (rev 206533)
@@ -51,7 +51,6 @@
def generate_output(self):
args = {
'namespace': self.model().framework.setting('namespace'),
- 'headerGuard': self.output_filename().replace('.', '_'),
'macroPrefix': self.macro_prefix(),
'objectName': self.object.object_name,
'objectMacro': self.object.object_name.upper(),
Property changes on: trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_separate_header.py
___________________________________________________________________
Added: svn:executable
+*
\ No newline at end of property
Modified: trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_wrapper_header.py (206532 => 206533)
--- trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_wrapper_header.py 2016-09-28 19:32:36 UTC (rev 206532)
+++ trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_wrapper_header.py 2016-09-28 19:34:27 UTC (rev 206533)
@@ -43,7 +43,6 @@
def generate_output(self):
args = {
'namespace': self.model().framework.setting('namespace'),
- 'headerGuard': self.output_filename().replace('.', '_'),
}
sections = []
Property changes on: trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_wrapper_header.py
___________________________________________________________________
Added: svn:executable
+*
\ No newline at end of property
Modified: trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_wrapper_implementation.py (206532 => 206533)
--- trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_wrapper_implementation.py 2016-09-28 19:32:36 UTC (rev 206532)
+++ trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_wrapper_implementation.py 2016-09-28 19:34:27 UTC (rev 206533)
@@ -43,7 +43,6 @@
def generate_output(self):
args = {
'namespace': self.model().framework.setting('namespace'),
- 'headerGuard': self.output_filename().replace('.', '_'),
}
sections = []
Property changes on: trunk/Source/_javascript_Core/Scripts/builtins/builtins_generate_wrapper_implementation.py
___________________________________________________________________
Added: svn:executable
+*
\ No newline at end of property
Deleted: trunk/Source/_javascript_Core/Scripts/tests/builtins/expected/_javascript_Core-Operations.Promise-Combined.js-result (206532 => 206533)
--- trunk/Source/_javascript_Core/Scripts/tests/builtins/expected/_javascript_Core-Operations.Promise-Combined.js-result 2016-09-28 19:32:36 UTC (rev 206532)
+++ trunk/Source/_javascript_Core/Scripts/tests/builtins/expected/_javascript_Core-Operations.Promise-Combined.js-result 2016-09-28 19:34:27 UTC (rev 206533)
@@ -1,415 +0,0 @@
-### Begin File: JSCBuiltins.h
-/*
- * Copyright (c) 2015 Yusuke Suzuki <[email protected]>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- *
- */
-
-// DO NOT EDIT THIS FILE. It is automatically generated from _javascript_ files for
-// builtins by the script: Source/_javascript_Core/Scripts/generate-js-builtins.py
-
-#ifndef JSCBuiltins_h
-#define JSCBuiltins_h
-
-namespace JSC {
-class FunctionExecutable;
-class VM;
-
-enum class ConstructAbility : unsigned;
-}
-
-namespace JSC {
-
-/* Operations.Promise */
-extern const char* s_operationsPromiseIsPromiseCode;
-extern const int s_operationsPromiseIsPromiseCodeLength;
-extern const JSC::ConstructAbility s_operationsPromiseIsPromiseCodeConstructAbility;
-extern const char* s_operationsPromiseNewPromiseReactionCode;
-extern const int s_operationsPromiseNewPromiseReactionCodeLength;
-extern const JSC::ConstructAbility s_operationsPromiseNewPromiseReactionCodeConstructAbility;
-extern const char* s_operationsPromiseNewPromiseCapabilityCode;
-extern const int s_operationsPromiseNewPromiseCapabilityCodeLength;
-extern const JSC::ConstructAbility s_operationsPromiseNewPromiseCapabilityCodeConstructAbility;
-extern const char* s_operationsPromiseTriggerPromiseReactionsCode;
-extern const int s_operationsPromiseTriggerPromiseReactionsCodeLength;
-extern const JSC::ConstructAbility s_operationsPromiseTriggerPromiseReactionsCodeConstructAbility;
-extern const char* s_operationsPromiseRejectPromiseCode;
-extern const int s_operationsPromiseRejectPromiseCodeLength;
-extern const JSC::ConstructAbility s_operationsPromiseRejectPromiseCodeConstructAbility;
-extern const char* s_operationsPromiseFulfillPromiseCode;
-extern const int s_operationsPromiseFulfillPromiseCodeLength;
-extern const JSC::ConstructAbility s_operationsPromiseFulfillPromiseCodeConstructAbility;
-extern const char* s_operationsPromiseCreateResolvingFunctionsCode;
-extern const int s_operationsPromiseCreateResolvingFunctionsCodeLength;
-extern const JSC::ConstructAbility s_operationsPromiseCreateResolvingFunctionsCodeConstructAbility;
-extern const char* s_operationsPromisePromiseReactionJobCode;
-extern const int s_operationsPromisePromiseReactionJobCodeLength;
-extern const JSC::ConstructAbility s_operationsPromisePromiseReactionJobCodeConstructAbility;
-extern const char* s_operationsPromisePromiseResolveThenableJobCode;
-extern const int s_operationsPromisePromiseResolveThenableJobCodeLength;
-extern const JSC::ConstructAbility s_operationsPromisePromiseResolveThenableJobCodeConstructAbility;
-extern const char* s_operationsPromiseInitializePromiseCode;
-extern const int s_operationsPromiseInitializePromiseCodeLength;
-extern const JSC::ConstructAbility s_operationsPromiseInitializePromiseCodeConstructAbility;
-
-#define JSC_FOREACH_OPERATIONSPROMISE_BUILTIN_DATA(macro) \
- macro(isPromise, operationsPromiseIsPromise, 1) \
- macro(newPromiseReaction, operationsPromiseNewPromiseReaction, 2) \
- macro(newPromiseCapability, operationsPromiseNewPromiseCapability, 1) \
- macro(triggerPromiseReactions, operationsPromiseTriggerPromiseReactions, 2) \
- macro(rejectPromise, operationsPromiseRejectPromise, 2) \
- macro(fulfillPromise, operationsPromiseFulfillPromise, 2) \
- macro(createResolvingFunctions, operationsPromiseCreateResolvingFunctions, 1) \
- macro(promiseReactionJob, operationsPromisePromiseReactionJob, 2) \
- macro(promiseResolveThenableJob, operationsPromisePromiseResolveThenableJob, 3) \
- macro(initializePromise, operationsPromiseInitializePromise, 1) \
-
-#define JSC_BUILTIN_OPERATIONSPROMISE_ISPROMISE 1
-#define JSC_BUILTIN_OPERATIONSPROMISE_NEWPROMISEREACTION 1
-#define JSC_BUILTIN_OPERATIONSPROMISE_NEWPROMISECAPABILITY 1
-#define JSC_BUILTIN_OPERATIONSPROMISE_TRIGGERPROMISEREACTIONS 1
-#define JSC_BUILTIN_OPERATIONSPROMISE_REJECTPROMISE 1
-#define JSC_BUILTIN_OPERATIONSPROMISE_FULFILLPROMISE 1
-#define JSC_BUILTIN_OPERATIONSPROMISE_CREATERESOLVINGFUNCTIONS 1
-#define JSC_BUILTIN_OPERATIONSPROMISE_PROMISEREACTIONJOB 1
-#define JSC_BUILTIN_OPERATIONSPROMISE_PROMISERESOLVETHENABLEJOB 1
-#define JSC_BUILTIN_OPERATIONSPROMISE_INITIALIZEPROMISE 1
-
-#define JSC_FOREACH_BUILTIN_CODE(macro) \
- macro(operationsPromiseIsPromiseCode, isPromise, s_operationsPromiseIsPromiseCodeLength) \
- macro(operationsPromiseNewPromiseReactionCode, newPromiseReaction, s_operationsPromiseNewPromiseReactionCodeLength) \
- macro(operationsPromiseNewPromiseCapabilityCode, newPromiseCapability, s_operationsPromiseNewPromiseCapabilityCodeLength) \
- macro(operationsPromiseTriggerPromiseReactionsCode, triggerPromiseReactions, s_operationsPromiseTriggerPromiseReactionsCodeLength) \
- macro(operationsPromiseRejectPromiseCode, rejectPromise, s_operationsPromiseRejectPromiseCodeLength) \
- macro(operationsPromiseFulfillPromiseCode, fulfillPromise, s_operationsPromiseFulfillPromiseCodeLength) \
- macro(operationsPromiseCreateResolvingFunctionsCode, createResolvingFunctions, s_operationsPromiseCreateResolvingFunctionsCodeLength) \
- macro(operationsPromisePromiseReactionJobCode, promiseReactionJob, s_operationsPromisePromiseReactionJobCodeLength) \
- macro(operationsPromisePromiseResolveThenableJobCode, promiseResolveThenableJob, s_operationsPromisePromiseResolveThenableJobCodeLength) \
- macro(operationsPromiseInitializePromiseCode, initializePromise, s_operationsPromiseInitializePromiseCodeLength) \
-
-#define JSC_FOREACH_BUILTIN_FUNCTION_NAME(macro) \
- macro(createResolvingFunctions) \
- macro(fulfillPromise) \
- macro(initializePromise) \
- macro(isPromise) \
- macro(newPromiseCapability) \
- macro(newPromiseReaction) \
- macro(promiseReactionJob) \
- macro(promiseResolveThenableJob) \
- macro(rejectPromise) \
- macro(triggerPromiseReactions) \
-
-#define DECLARE_BUILTIN_GENERATOR(codeName, functionName, argumentCount) \
- JSC::FunctionExecutable* codeName##Generator(JSC::VM&);
-
-JSC_FOREACH_BUILTIN_CODE(DECLARE_BUILTIN_GENERATOR)
-#undef DECLARE_BUILTIN_GENERATOR
-
-#define JSC_BUILTIN_EXISTS(object, func) defined JSC_BUILTIN_ ## object ## _ ## func
-
-} // namespace JSC
-
-#endif // JSCBuiltins_h
-
-### End File: JSCBuiltins.h
-
-### Begin File: JSCBuiltins.cpp
-/*
- * Copyright (c) 2015 Yusuke Suzuki <[email protected]>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- *
- */
-
-// DO NOT EDIT THIS FILE. It is automatically generated from _javascript_ files for
-// builtins by the script: Source/_javascript_Core/Scripts/generate-js-builtins.py
-
-#include "config.h"
-#include "JSCBuiltins.h"
-
-#include "BuiltinExecutables.h"
-#include "Executable.h"
-#include "JSCellInlines.h"
-#include "VM.h"
-
-namespace JSC {
-
-const JSC::ConstructAbility s_operationsPromiseIsPromiseCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
-const int s_operationsPromiseIsPromiseCodeLength = 158;
-const char* s_operationsPromiseIsPromiseCode =
- "(function (promise)\n" \
- "{\n" \
- " \"use strict\";\n" \
- "\n" \
- " return @isObject(promise) && !!promise.@promiseState;\n" \
- "})\n" \
-;
-
-const JSC::ConstructAbility s_operationsPromiseNewPromiseReactionCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
-const int s_operationsPromiseNewPromiseReactionCodeLength = 220;
-const char* s_operationsPromiseNewPromiseReactionCode =
- "(function (capability, handler)\n" \
- "{\n" \
- " \"use strict\";\n" \
- "\n" \
- " return {\n" \
- " @capabilities: capability,\n" \
- " @handler: handler\n" \
- " };\n" \
- "})\n" \
-;
-
-const JSC::ConstructAbility s_operationsPromiseNewPromiseCapabilityCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
-const int s_operationsPromiseNewPromiseCapabilityCodeLength = 1427;
-const char* s_operationsPromiseNewPromiseCapabilityCode =
- "(function (constructor)\n" \
- "{\n" \
- " \"use strict\";\n" \
- "\n" \
- " //\n" \
- " if (typeof constructor !== \"function\")\n" \
- " throw new @TypeError(\"promise capability requires a constructor function\");\n" \
- "\n" \
- " var promiseCapability = {\n" \
- " @promise: undefined,\n" \
- " @resolve: undefined,\n" \
- " @reject: undefined\n" \
- " };\n" \
- "\n" \
- " function executor(resolve, reject)\n" \
- " {\n" \
- " if (promiseCapability.@resolve !== undefined)\n" \
- " throw new @TypeError(\"resolve function is already set\");\n" \
- " if (promiseCapability.@reject !== undefined)\n" \
- " throw new @TypeError(\"reject function is already set\");\n" \
- "\n" \
- " promiseCapability.@resolve = resolve;\n" \
- " promiseCapability.@reject = reject;\n" \
- " }\n" \
- "\n" \
- " var promise = new constructor(executor);\n" \
- "\n" \
- " if (typeof promiseCapability.@resolve !== \"function\")\n" \
- " throw new @TypeError(\"executor did not take a resolve function\");\n" \
- "\n" \
- " if (typeof promiseCapability.@reject !== \"function\")\n" \
- " throw new @TypeError(\"executor did not take a reject function\");\n" \
- "\n" \
- " promiseCapability.@promise = promise;\n" \
- "\n" \
- " return promiseCapability;\n" \
- "})\n" \
-;
-
-const JSC::ConstructAbility s_operationsPromiseTriggerPromiseReactionsCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
-const int s_operationsPromiseTriggerPromiseReactionsCodeLength = 269;
-const char* s_operationsPromiseTriggerPromiseReactionsCode =
- "(function (reactions, argument)\n" \
- "{\n" \
- " \"use strict\";\n" \
- "\n" \
- " for (var index = 0, length = reactions.length; index < length; ++index)\n" \
- " @enqueueJob(@promiseReactionJob, [reactions[index], argument]);\n" \
- "})\n" \
-;
-
-const JSC::ConstructAbility s_operationsPromiseRejectPromiseCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
-const int s_operationsPromiseRejectPromiseCodeLength = 541;
-const char* s_operationsPromiseRejectPromiseCode =
- "(function (promise, reason)\n" \
- "{\n" \
- " \"use strict\";\n" \
- "\n" \
- " var reactions = promise.@promiseRejectReactions;\n" \
- " promise.@promiseResult = reason;\n" \
- " promise.@promiseFulfillReactions = undefined;\n" \
- " promise.@promiseRejectReactions = undefined;\n" \
- " promise.@promiseState = @promiseRejected;\n" \
- "\n" \
- " @InspectorInstrumentation.promiseRejected(promise, reason, reactions);\n" \
- "\n" \
- " @triggerPromiseReactions(reactions, reason);\n" \
- "})\n" \
-;
-
-const JSC::ConstructAbility s_operationsPromiseFulfillPromiseCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
-const int s_operationsPromiseFulfillPromiseCodeLength = 540;
-const char* s_operationsPromiseFulfillPromiseCode =
- "(function (promise, value)\n" \
- "{\n" \
- " \"use strict\";\n" \
- "\n" \
- " var reactions = promise.@promiseFulfillReactions;\n" \
- " promise.@promiseResult = value;\n" \
- " promise.@promiseFulfillReactions = undefined;\n" \
- " promise.@promiseRejectReactions = undefined;\n" \
- " promise.@promiseState = @promiseFulfilled;\n" \
- "\n" \
- " @InspectorInstrumentation.promiseFulfilled(promise, value, reactions);\n" \
- "\n" \
- " @triggerPromiseReactions(reactions, value);\n" \
- "})\n" \
-;
-
-const JSC::ConstructAbility s_operationsPromiseCreateResolvingFunctionsCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
-const int s_operationsPromiseCreateResolvingFunctionsCodeLength = 1468;
-const char* s_operationsPromiseCreateResolvingFunctionsCode =
- "(function (promise)\n" \
- "{\n" \
- " \"use strict\";\n" \
- "\n" \
- " var alreadyResolved = false;\n" \
- "\n" \
- " var resolve = function (resolution) {\n" \
- " if (alreadyResolved)\n" \
- " return undefined;\n" \
- " alreadyResolved = true;\n" \
- "\n" \
- " if (resolution === promise)\n" \
- " return @rejectPromise(promise, new @TypeError(\"Resolve a promise with itself\"));\n" \
- "\n" \
- " if (!@isObject(resolution))\n" \
- " return @fulfillPromise(promise, resolution);\n" \
- "\n" \
- " var then;\n" \
- " try {\n" \
- " then = resolution.then;\n" \
- " } catch (error) {\n" \
- " return @rejectPromise(promise, error);\n" \
- " }\n" \
- "\n" \
- " if (typeof then !== 'function')\n" \
- " return @fulfillPromise(promise, resolution);\n" \
- "\n" \
- " @enqueueJob(@promiseResolveThenableJob, [promise, resolution, then]);\n" \
- "\n" \
- " return undefined;\n" \
- " };\n" \
- "\n" \
- " var reject = function (reason) {\n" \
- " if (alreadyResolved)\n" \
- " return undefined;\n" \
- " alreadyResolved = true;\n" \
- "\n" \
- " return @rejectPromise(promise, reason);\n" \
- " };\n" \
- "\n" \
- " return {\n" \
- " @resolve: resolve,\n" \
- " @reject: reject\n" \
- " };\n" \
- "})\n" \
-;
-
-const JSC::ConstructAbility s_operationsPromisePromiseReactionJobCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
-const int s_operationsPromisePromiseReactionJobCodeLength = 493;
-const char* s_operationsPromisePromiseReactionJobCode =
- "(function (reaction, argument)\n" \
- "{\n" \
- " \"use strict\";\n" \
- "\n" \
- " var promiseCapability = reaction.@capabilities;\n" \
- "\n" \
- " var result;\n" \
- " try {\n" \
- " result = reaction.@handler.@call(undefined, argument);\n" \
- " } catch (error) {\n" \
- " return promiseCapability.@reject.@call(undefined, error);\n" \
- " }\n" \
- "\n" \
- " return promiseCapability.@resolve.@call(undefined, result);\n" \
- "})\n" \
-;
-
-const JSC::ConstructAbility s_operationsPromisePromiseResolveThenableJobCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
-const int s_operationsPromisePromiseResolveThenableJobCodeLength = 453;
-const char* s_operationsPromisePromiseResolveThenableJobCode =
- "(function (promiseToResolve, thenable, then)\n" \
- "{\n" \
- " \"use strict\";\n" \
- "\n" \
- " var resolvingFunctions = @createResolvingFunctions(promiseToResolve);\n" \
- "\n" \
- " try {\n" \
- " return then.@call(thenable, resolvingFunctions.@resolve, resolvingFunctions.@reject);\n" \
- " } catch (error) {\n" \
- " return resolvingFunctions.@reject.@call(undefined, error);\n" \
- " }\n" \
- "})\n" \
-;
-
-const JSC::ConstructAbility s_operationsPromiseInitializePromiseCodeConstructAbility = JSC::ConstructAbility::CannotConstruct;
-const int s_operationsPromiseInitializePromiseCodeLength = 731;
-const char* s_operationsPromiseInitializePromiseCode =
- "(function (executor)\n" \
- "{\n" \
- " \"use strict\";\n" \
- "\n" \
- " if (typeof executor !== 'function')\n" \
- " throw new @TypeError(\"Promise constructor takes a function argument\");\n" \
- "\n" \
- " this.@promiseState = @promisePending;\n" \
- " this.@promiseFulfillReactions = [];\n" \
- " this.@promiseRejectReactions = [];\n" \
- "\n" \
- " var resolvingFunctions = @createResolvingFunctions(this);\n" \
- " try {\n" \
- " executor(resolvingFunctions.@resolve, resolvingFunctions.@reject);\n" \
- " } catch (error) {\n" \
- " return resolvingFunctions.@reject.@call(undefined, error);\n" \
- " }\n" \
- "\n" \
- " return this;\n" \
- "})\n" \
-;
-
-
-#define DEFINE_BUILTIN_GENERATOR(codeName, functionName, argumentCount) \
-JSC::FunctionExecutable* codeName##Generator(JSC::VM& vm) \
-{\
- return vm.builtinExecutables()->codeName##Executable()->link(vm, vm.builtinExecutables()->codeName##Source()); }
-JSC_FOREACH_BUILTIN_CODE(DEFINE_BUILTIN_GENERATOR)
-#undef DEFINE_BUILTIN_GENERATOR
-
-
-} // namespace JSC
-### End File: JSCBuiltins.cpp
Modified: trunk/Source/_javascript_Core/generate-bytecode-files (206532 => 206533)
--- trunk/Source/_javascript_Core/generate-bytecode-files 2016-09-28 19:32:36 UTC (rev 206532)
+++ trunk/Source/_javascript_Core/generate-bytecode-files 2016-09-28 19:34:27 UTC (rev 206533)
@@ -170,8 +170,7 @@
if bytecodeHFilename:
bytecodeHFile.write(hFileHashString)
bytecodeHFile.write(cCopyrightMsg % bytecodeJSONFile)
- bytecodeHFile.write("#ifndef Bytecodes_h\n")
- bytecodeHFile.write("#define Bytecodes_h\n\n")
+ bytecodeHFile.write("#pragma once\n\n")
if initASMFileName:
initBytecodesFile.write(asmFileHashString)
@@ -211,7 +210,6 @@
initASMBytecodeNum = initASMBytecodeNum + 1
if bytecodeHFilename:
- bytecodeHFile.write("#endif // Bytecodes_h\n")
bytecodeHFile.close()
if initASMFileName:
Modified: trunk/Source/_javascript_Core/inspector/scripts/codegen/generate_objc_backend_dispatcher_header.py (206532 => 206533)
--- trunk/Source/_javascript_Core/inspector/scripts/codegen/generate_objc_backend_dispatcher_header.py 2016-09-28 19:32:36 UTC (rev 206532)
+++ trunk/Source/_javascript_Core/inspector/scripts/codegen/generate_objc_backend_dispatcher_header.py 2016-09-28 19:34:27 UTC (rev 206533)
@@ -56,7 +56,6 @@
]
header_args = {
- 'headerGuardString': re.sub('\W+', '_', self.output_filename()),
'includes': '\n'.join(['#include ' + header for header in headers]),
'forwardDeclarations': self._generate_objc_forward_declarations(),
}
Modified: trunk/Source/_javascript_Core/replay/scripts/CodeGeneratorReplayInputs.py (206532 => 206533)
--- trunk/Source/_javascript_Core/replay/scripts/CodeGeneratorReplayInputs.py 2016-09-28 19:32:36 UTC (rev 206532)
+++ trunk/Source/_javascript_Core/replay/scripts/CodeGeneratorReplayInputs.py 2016-09-28 19:34:27 UTC (rev 206533)
@@ -614,7 +614,6 @@
template_arguments = {
'licenseBlock': self.generate_license(),
- 'headerGuard': re.sub('[-./]', '_', self.output_filename() + ".h"),
'filename': self.output_filename(),
'guardCondition': self.setting('guardCondition'),
'traitsNamespace': self.traits_framework.setting('namespace'),
Property changes on: trunk/Source/_javascript_Core/replay/scripts/CodeGeneratorReplayInputs.py
___________________________________________________________________
Added: svn:executable
+*
\ No newline at end of property
Modified: trunk/Source/_javascript_Core/replay/scripts/CodeGeneratorReplayInputsTemplates.py (206532 => 206533)
--- trunk/Source/_javascript_Core/replay/scripts/CodeGeneratorReplayInputsTemplates.py 2016-09-28 19:32:36 UTC (rev 206532)
+++ trunk/Source/_javascript_Core/replay/scripts/CodeGeneratorReplayInputsTemplates.py 2016-09-28 19:34:27 UTC (rev 206533)
@@ -67,8 +67,7 @@
HeaderSkeleton = (
"""${licenseBlock}
-#ifndef ${headerGuard}
-#define ${headerGuard}
+#pragma once
#if ${guardCondition}
${includes}
@@ -93,8 +92,6 @@
${forEachMacro}
#endif // ${guardCondition}
-
-#endif // ${filename}_h
""")
InputTraitsDeclaration = (
Modified: trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-enum-encoding-helpers-with-guarded-values.json-TestReplayInputs.h (206532 => 206533)
--- trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-enum-encoding-helpers-with-guarded-values.json-TestReplayInputs.h 2016-09-28 19:32:36 UTC (rev 206532)
+++ trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-enum-encoding-helpers-with-guarded-values.json-TestReplayInputs.h 2016-09-28 19:34:27 UTC (rev 206533)
@@ -27,8 +27,7 @@
// DO NOT EDIT THIS FILE. It is automatically generated from generate-enum-encoding-helpers-with-guarded-values.json
// by the script: _javascript_Core/replay/scripts/CodeGeneratorReplayInputs.py
-#ifndef generate_enum_encoding_helpers_with_guarded_values_json_TestReplayInputs_h
-#define generate_enum_encoding_helpers_with_guarded_values_json_TestReplayInputs_h
+#pragma once
#if ENABLE(WEB_REPLAY)
#include "InternalNamespaceHeaderIncludeDummy.h"
@@ -76,5 +75,3 @@
// end of TEST_REPLAY_INPUT_NAMES_FOR_EACH
#endif // ENABLE(WEB_REPLAY)
-
-#endif // generate-enum-encoding-helpers-with-guarded-values.json-TestReplayInputs_h
Modified: trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-enum-encoding-helpers.json-TestReplayInputs.h (206532 => 206533)
--- trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-enum-encoding-helpers.json-TestReplayInputs.h 2016-09-28 19:32:36 UTC (rev 206532)
+++ trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-enum-encoding-helpers.json-TestReplayInputs.h 2016-09-28 19:34:27 UTC (rev 206533)
@@ -27,8 +27,7 @@
// DO NOT EDIT THIS FILE. It is automatically generated from generate-enum-encoding-helpers.json
// by the script: _javascript_Core/replay/scripts/CodeGeneratorReplayInputs.py
-#ifndef generate_enum_encoding_helpers_json_TestReplayInputs_h
-#define generate_enum_encoding_helpers_json_TestReplayInputs_h
+#pragma once
#if ENABLE(WEB_REPLAY)
#include "InternalNamespaceHeaderIncludeDummy.h"
@@ -104,5 +103,3 @@
// end of TEST_REPLAY_INPUT_NAMES_FOR_EACH
#endif // ENABLE(WEB_REPLAY)
-
-#endif // generate-enum-encoding-helpers.json-TestReplayInputs_h
Modified: trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-enum-with-guard.json-TestReplayInputs.h (206532 => 206533)
--- trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-enum-with-guard.json-TestReplayInputs.h 2016-09-28 19:32:36 UTC (rev 206532)
+++ trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-enum-with-guard.json-TestReplayInputs.h 2016-09-28 19:34:27 UTC (rev 206533)
@@ -27,8 +27,7 @@
// DO NOT EDIT THIS FILE. It is automatically generated from generate-enum-with-guard.json
// by the script: _javascript_Core/replay/scripts/CodeGeneratorReplayInputs.py
-#ifndef generate_enum_with_guard_json_TestReplayInputs_h
-#define generate_enum_with_guard_json_TestReplayInputs_h
+#pragma once
#if ENABLE(WEB_REPLAY)
#include "InternalNamespaceHeaderIncludeDummy.h"
@@ -91,5 +90,3 @@
// end of TEST_REPLAY_INPUT_NAMES_FOR_EACH
#endif // ENABLE(WEB_REPLAY)
-
-#endif // generate-enum-with-guard.json-TestReplayInputs_h
Modified: trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-enums-with-same-base-name.json-TestReplayInputs.h (206532 => 206533)
--- trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-enums-with-same-base-name.json-TestReplayInputs.h 2016-09-28 19:32:36 UTC (rev 206532)
+++ trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-enums-with-same-base-name.json-TestReplayInputs.h 2016-09-28 19:34:27 UTC (rev 206533)
@@ -27,8 +27,7 @@
// DO NOT EDIT THIS FILE. It is automatically generated from generate-enums-with-same-base-name.json
// by the script: _javascript_Core/replay/scripts/CodeGeneratorReplayInputs.py
-#ifndef generate_enums_with_same_base_name_json_TestReplayInputs_h
-#define generate_enums_with_same_base_name_json_TestReplayInputs_h
+#pragma once
#if ENABLE(WEB_REPLAY)
#include "FormData1.h"
@@ -94,5 +93,3 @@
// end of TEST_REPLAY_INPUT_NAMES_FOR_EACH
#endif // ENABLE(WEB_REPLAY)
-
-#endif // generate-enums-with-same-base-name.json-TestReplayInputs_h
Modified: trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-input-with-guard.json-TestReplayInputs.h (206532 => 206533)
--- trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-input-with-guard.json-TestReplayInputs.h 2016-09-28 19:32:36 UTC (rev 206532)
+++ trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-input-with-guard.json-TestReplayInputs.h 2016-09-28 19:34:27 UTC (rev 206533)
@@ -27,8 +27,7 @@
// DO NOT EDIT THIS FILE. It is automatically generated from generate-input-with-guard.json
// by the script: _javascript_Core/replay/scripts/CodeGeneratorReplayInputs.py
-#ifndef generate_input_with_guard_json_TestReplayInputs_h
-#define generate_input_with_guard_json_TestReplayInputs_h
+#pragma once
#if ENABLE(WEB_REPLAY)
#include "InternalNamespaceHeaderIncludeDummy.h"
@@ -105,5 +104,3 @@
// end of TEST_REPLAY_INPUT_NAMES_FOR_EACH
#endif // ENABLE(WEB_REPLAY)
-
-#endif // generate-input-with-guard.json-TestReplayInputs_h
Modified: trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-input-with-vector-members.json-TestReplayInputs.h (206532 => 206533)
--- trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-input-with-vector-members.json-TestReplayInputs.h 2016-09-28 19:32:36 UTC (rev 206532)
+++ trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-input-with-vector-members.json-TestReplayInputs.h 2016-09-28 19:34:27 UTC (rev 206533)
@@ -27,8 +27,7 @@
// DO NOT EDIT THIS FILE. It is automatically generated from generate-input-with-vector-members.json
// by the script: _javascript_Core/replay/scripts/CodeGeneratorReplayInputs.py
-#ifndef generate_input_with_vector_members_json_TestReplayInputs_h
-#define generate_input_with_vector_members_json_TestReplayInputs_h
+#pragma once
#if ENABLE(WEB_REPLAY)
#include "InternalNamespaceHeaderIncludeDummy.h"
@@ -105,5 +104,3 @@
// end of TEST_REPLAY_INPUT_NAMES_FOR_EACH
#endif // ENABLE(WEB_REPLAY)
-
-#endif // generate-input-with-vector-members.json-TestReplayInputs_h
Modified: trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-inputs-with-flags.json-TestReplayInputs.h (206532 => 206533)
--- trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-inputs-with-flags.json-TestReplayInputs.h 2016-09-28 19:32:36 UTC (rev 206532)
+++ trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-inputs-with-flags.json-TestReplayInputs.h 2016-09-28 19:34:27 UTC (rev 206533)
@@ -27,8 +27,7 @@
// DO NOT EDIT THIS FILE. It is automatically generated from generate-inputs-with-flags.json
// by the script: _javascript_Core/replay/scripts/CodeGeneratorReplayInputs.py
-#ifndef generate_inputs_with_flags_json_TestReplayInputs_h
-#define generate_inputs_with_flags_json_TestReplayInputs_h
+#pragma once
#if ENABLE(WEB_REPLAY)
#include "InternalNamespaceHeaderIncludeDummy.h"
@@ -97,5 +96,3 @@
// end of TEST_REPLAY_INPUT_NAMES_FOR_EACH
#endif // ENABLE(WEB_REPLAY)
-
-#endif // generate-inputs-with-flags.json-TestReplayInputs_h
Modified: trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-memoized-type-modes.json-TestReplayInputs.h (206532 => 206533)
--- trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-memoized-type-modes.json-TestReplayInputs.h 2016-09-28 19:32:36 UTC (rev 206532)
+++ trunk/Source/_javascript_Core/replay/scripts/tests/expected/generate-memoized-type-modes.json-TestReplayInputs.h 2016-09-28 19:34:27 UTC (rev 206533)
@@ -27,8 +27,7 @@
// DO NOT EDIT THIS FILE. It is automatically generated from generate-memoized-type-modes.json
// by the script: _javascript_Core/replay/scripts/CodeGeneratorReplayInputs.py
-#ifndef generate_memoized_type_modes_json_TestReplayInputs_h
-#define generate_memoized_type_modes_json_TestReplayInputs_h
+#pragma once
#if ENABLE(WEB_REPLAY)
#include "InternalNamespaceHeaderIncludeDummy.h"
@@ -97,5 +96,3 @@
// end of TEST_REPLAY_INPUT_NAMES_FOR_EACH
#endif // ENABLE(WEB_REPLAY)
-
-#endif // generate-memoized-type-modes.json-TestReplayInputs_h