From c2868bb3f11c973f6f49437ae1ac3517aaf958c6 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Thu, 2 Feb 2012 17:34:49 +0000 Subject: Revert "Remove option to build WebKit with JSC" This reverts commit c7a3e9f1af3485e19dee3ea3897580d33c1b9ffe. This broke the full_x86-eng build, as V8 does not support x86. Bug: 5495373 --- Source/JavaScriptCore/Android.mk | 251 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 251 insertions(+) create mode 100644 Source/JavaScriptCore/Android.mk (limited to 'Source/JavaScriptCore') diff --git a/Source/JavaScriptCore/Android.mk b/Source/JavaScriptCore/Android.mk new file mode 100644 index 0000000..48f326a --- /dev/null +++ b/Source/JavaScriptCore/Android.mk @@ -0,0 +1,251 @@ +## +## Copyright 2009, The Android Open Source Project +## +## Redistribution and use in source and binary forms, with or without +## modification, are permitted provided that the following conditions +## are met: +## * Redistributions of source code must retain the above copyright +## notice, this list of conditions and the following disclaimer. +## * 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 THE COPYRIGHT HOLDERS ``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 THE COPYRIGHT OWNER OR +## 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. +## + +LOCAL_SRC_FILES := \ + API/JSValueRef.cpp \ + API/JSCallbackConstructor.cpp \ + API/JSCallbackFunction.cpp \ + API/JSCallbackObject.cpp \ + API/JSClassRef.cpp \ + API/JSObjectRef.cpp \ + API/JSStringRef.cpp \ + API/OpaqueJSString.cpp \ + \ + assembler/ARMv7Assembler.cpp \ + \ + bytecode/CodeBlock.cpp \ + bytecode/JumpTable.cpp \ + bytecode/Opcode.cpp \ + bytecode/SamplingTool.cpp \ + bytecode/StructureStubInfo.cpp \ + \ + bytecompiler/BytecodeGenerator.cpp \ + bytecompiler/NodesCodegen.cpp \ + \ + debugger/Debugger.cpp \ + debugger/DebuggerActivation.cpp \ + debugger/DebuggerCallFrame.cpp \ + \ + heap/ConservativeRoots.cpp \ + heap/HandleHeap.cpp \ + heap/HandleStack.cpp \ + heap/Heap.cpp \ + heap/MachineStackMarker.cpp \ + heap/MarkStack.cpp \ + heap/MarkStackPosix.cpp \ + heap/MarkedBlock.cpp \ + heap/MarkedSpace.cpp \ + \ + interpreter/CallFrame.cpp \ + interpreter/Interpreter.cpp \ + interpreter/RegisterFile.cpp \ + \ + jit/ExecutableAllocator.cpp\ + jit/ExecutableAllocatorFixedVMPool.cpp \ + jit/JIT.cpp \ + jit/JITArithmetic.cpp \ + jit/JITArithmetic32_64.cpp \ + jit/JITCall.cpp \ + jit/JITCall32_64.cpp \ + jit/JITOpcodes.cpp \ + jit/JITPropertyAccess.cpp \ + jit/JITStubs.cpp \ + jit/ThunkGenerators.cpp \ + \ + parser/JSParser.cpp \ + parser/Lexer.cpp \ + parser/Nodes.cpp \ + parser/Parser.cpp \ + parser/ParserArena.cpp \ + parser/SourceProviderCache.cpp \ + \ + profiler/Profile.cpp \ + profiler/ProfileGenerator.cpp \ + profiler/ProfileNode.cpp \ + profiler/Profiler.cpp \ + \ + runtime/ArgList.cpp \ + runtime/Arguments.cpp \ + runtime/ArrayConstructor.cpp \ + runtime/ArrayPrototype.cpp \ + runtime/BooleanConstructor.cpp \ + runtime/BooleanObject.cpp \ + runtime/BooleanPrototype.cpp \ + runtime/CallData.cpp \ + runtime/CommonIdentifiers.cpp \ + runtime/Completion.cpp \ + runtime/ConstructData.cpp \ + runtime/DateConstructor.cpp \ + runtime/DateConversion.cpp \ + runtime/DateInstance.cpp \ + runtime/DatePrototype.cpp \ + runtime/Error.cpp \ + runtime/ErrorConstructor.cpp \ + runtime/ErrorInstance.cpp \ + runtime/ErrorPrototype.cpp \ + runtime/ExceptionHelpers.cpp \ + runtime/Executable.cpp \ + runtime/FunctionConstructor.cpp \ + runtime/FunctionPrototype.cpp \ + runtime/GCActivityCallback.cpp \ + runtime/GetterSetter.cpp \ + runtime/Identifier.cpp \ + runtime/InitializeThreading.cpp \ + runtime/InternalFunction.cpp \ + runtime/JSAPIValueWrapper.cpp \ + runtime/JSActivation.cpp \ + runtime/JSArray.cpp \ + runtime/JSByteArray.cpp \ + runtime/JSCell.cpp \ + runtime/JSChunk.cpp \ + runtime/JSFunction.cpp \ + runtime/JSGlobalData.cpp \ + runtime/JSGlobalObject.cpp \ + runtime/JSGlobalObjectFunctions.cpp \ + runtime/JSLock.cpp \ + runtime/JSNotAnObject.cpp \ + runtime/JSONObject.cpp \ + runtime/JSObject.cpp \ + runtime/JSObjectWithGlobalObject.cpp \ + runtime/JSPropertyNameIterator.cpp \ + runtime/JSStaticScopeObject.cpp \ + runtime/JSString.cpp \ + runtime/JSValue.cpp \ + runtime/JSVariableObject.cpp \ + runtime/JSWrapperObject.cpp \ + runtime/LiteralParser.cpp \ + runtime/Lookup.cpp \ + runtime/MathObject.cpp \ + runtime/NativeErrorConstructor.cpp \ + runtime/NativeErrorPrototype.cpp \ + runtime/NumberConstructor.cpp \ + runtime/NumberObject.cpp \ + runtime/NumberPrototype.cpp \ + runtime/ObjectConstructor.cpp \ + runtime/ObjectPrototype.cpp \ + runtime/Operations.cpp \ + runtime/PropertyDescriptor.cpp \ + runtime/PropertyNameArray.cpp \ + runtime/PropertySlot.cpp \ + runtime/RegExp.cpp \ + runtime/RegExpCache.cpp \ + runtime/RegExpConstructor.cpp \ + runtime/RegExpObject.cpp \ + runtime/RegExpPrototype.cpp \ + runtime/RopeImpl.cpp \ + runtime/ScopeChain.cpp \ + runtime/SmallStrings.cpp \ + runtime/StrictEvalActivation.cpp \ + runtime/StringConstructor.cpp \ + runtime/StringObject.cpp \ + runtime/StringPrototype.cpp \ + runtime/StringRecursionChecker.cpp \ + runtime/Structure.cpp \ + runtime/StructureChain.cpp \ + runtime/TimeoutChecker.cpp \ + runtime/UString.cpp \ + \ + wtf/Assertions.cpp \ + wtf/ByteArray.cpp \ + wtf/CryptographicallyRandomNumber.cpp \ + wtf/CurrentTime.cpp \ + wtf/DateMath.cpp \ + wtf/DecimalNumber.cpp \ + wtf/FastMalloc.cpp \ + wtf/HashTable.cpp \ + wtf/MD5.cpp \ + wtf/MainThread.cpp \ + wtf/OSAllocatorPosix.cpp \ + wtf/OSRandomSource.cpp \ + wtf/PageAllocationAligned.cpp\ + wtf/PageBlock.cpp\ + wtf/RandomNumber.cpp \ + wtf/RefCountedLeakCounter.cpp \ + wtf/SHA1.cpp \ + wtf/StackBounds.cpp \ + wtf/TCSystemAlloc.cpp \ + wtf/ThreadIdentifierDataPthreads.cpp \ + wtf/Threading.cpp \ + wtf/ThreadingPthreads.cpp \ + wtf/TypeTraits.cpp \ + wtf/WTFThreadData.cpp \ + wtf/dtoa.cpp \ + \ + wtf/android/MainThreadAndroid.cpp \ + \ + wtf/text/AtomicString.cpp \ + wtf/text/CString.cpp \ + wtf/text/StringBuilder.cpp \ + wtf/text/StringImpl.cpp \ + wtf/text/StringStatics.cpp \ + wtf/text/WTFString.cpp \ + \ + wtf/unicode/CollatorDefault.cpp \ + wtf/unicode/UTF8.cpp \ + \ + wtf/unicode/icu/CollatorICU.cpp \ + \ + wtf/url/src/URLCharacterTypes.cpp \ + wtf/url/src/URLEscape.cpp \ + wtf/url/src/URLSegments.cpp \ + \ + yarr/YarrPattern.cpp \ + yarr/YarrInterpreter.cpp \ + yarr/YarrJIT.cpp \ + yarr/YarrSyntaxChecker.cpp + +# generated headers +JSC_OBJECTS := $(addprefix $(intermediates)/runtime/, \ + ArrayPrototype.lut.h \ + DatePrototype.lut.h \ + JSONObject.lut.h \ + MathObject.lut.h \ + NumberConstructor.lut.h \ + ObjectConstructor.lut.h \ + RegExpConstructor.lut.h \ + RegExpObject.lut.h \ + StringPrototype.lut.h \ + ) +$(JSC_OBJECTS): PRIVATE_PATH := $(LOCAL_PATH) +$(JSC_OBJECTS): PRIVATE_CUSTOM_TOOL = perl $(PRIVATE_PATH)/create_hash_table $< -i > $@ +$(JSC_OBJECTS): $(LOCAL_PATH)/create_hash_table +$(JSC_OBJECTS): $(intermediates)/%.lut.h : $(LOCAL_PATH)/%.cpp + $(transform-generated-source) + + +LEXER_HEADER := $(intermediates)/Lexer.lut.h +$(LEXER_HEADER): PRIVATE_PATH := $(LOCAL_PATH) +$(LEXER_HEADER): PRIVATE_CUSTOM_TOOL = perl $(PRIVATE_PATH)/create_hash_table $< -i > $@ +$(LEXER_HEADER): $(LOCAL_PATH)/create_hash_table +$(LEXER_HEADER): $(intermediates)/%.lut.h : $(LOCAL_PATH)/parser/Keywords.table + $(transform-generated-source) + +REGEXP_JIT_TABLES := $(intermediates)/RegExpJitTables.h +$(REGEXP_JIT_TABLES): PRIVATE_PATH := $(LOCAL_PATH) +$(REGEXP_JIT_TABLES): PRIVATE_CUSTOM_TOOL = python $(PRIVATE_PATH)/create_regex_tables > $@ +$(REGEXP_JIT_TABLES): $(LOCAL_PATH)/create_regex_tables + $(transform-generated-source) + +LOCAL_GENERATED_SOURCES += $(JSC_OBJECTS) $(LEXER_HEADER) $(REGEXP_JIT_TABLES) -- cgit v1.1