2009-04-27 09:04:39 +00:00
|
|
|
# Copyright 2009 the V8 project authors. All rights reserved.
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions are
|
|
|
|
# met:
|
2009-05-28 07:08:09 +00:00
|
|
|
#
|
2009-04-27 09:04:39 +00:00
|
|
|
# * 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.
|
|
|
|
# * Neither the name of Google Inc. nor the names of its
|
|
|
|
# contributors may be used to endorse or promote products derived
|
|
|
|
# from this software without specific prior written permission.
|
2009-05-28 07:08:09 +00:00
|
|
|
#
|
2009-04-27 09:04:39 +00:00
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 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 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.
|
|
|
|
|
|
|
|
{
|
|
|
|
'variables': {
|
|
|
|
'msvs_use_common_release': 0,
|
2009-05-22 06:52:02 +00:00
|
|
|
'gcc_version%': 'unknown',
|
2009-07-08 14:56:56 +00:00
|
|
|
'target_arch%': 'ia32',
|
|
|
|
'v8_use_snapshot%': 'true',
|
2009-04-27 09:04:39 +00:00
|
|
|
},
|
|
|
|
'target_defaults': {
|
|
|
|
'defines': [
|
|
|
|
'ENABLE_LOGGING_AND_PROFILING',
|
2009-09-15 11:07:26 +00:00
|
|
|
'ENABLE_DEBUGGER_SUPPORT',
|
2010-04-09 07:29:58 +00:00
|
|
|
'ENABLE_VMSTATE_TRACKING',
|
2009-04-27 09:04:39 +00:00
|
|
|
],
|
2009-07-31 11:06:17 +00:00
|
|
|
'conditions': [
|
2009-07-08 14:56:56 +00:00
|
|
|
['target_arch=="arm"', {
|
|
|
|
'defines': [
|
|
|
|
'V8_TARGET_ARCH_ARM',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['target_arch=="ia32"', {
|
|
|
|
'defines': [
|
|
|
|
'V8_TARGET_ARCH_IA32',
|
|
|
|
],
|
|
|
|
}],
|
2009-07-28 20:32:57 +00:00
|
|
|
['target_arch=="x64"', {
|
|
|
|
'defines': [
|
|
|
|
'V8_TARGET_ARCH_X64',
|
|
|
|
],
|
|
|
|
}],
|
2009-07-08 14:56:56 +00:00
|
|
|
],
|
2009-04-27 09:04:39 +00:00
|
|
|
'configurations': {
|
|
|
|
'Debug': {
|
|
|
|
'defines': [
|
|
|
|
'DEBUG',
|
|
|
|
'_DEBUG',
|
|
|
|
'ENABLE_DISASSEMBLER',
|
2009-08-26 10:33:11 +00:00
|
|
|
'V8_ENABLE_CHECKS'
|
2009-04-27 09:04:39 +00:00
|
|
|
],
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCCLCompilerTool': {
|
|
|
|
'Optimizations': '0',
|
|
|
|
'RuntimeLibrary': '1',
|
|
|
|
},
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'LinkIncremental': '2',
|
|
|
|
},
|
|
|
|
},
|
2010-04-06 09:27:09 +00:00
|
|
|
'conditions': [
|
|
|
|
['OS=="freebsd" or OS=="openbsd"', {
|
|
|
|
'cflags': [ '-I/usr/local/include' ],
|
|
|
|
}],
|
|
|
|
],
|
2009-04-27 09:04:39 +00:00
|
|
|
},
|
|
|
|
'Release': {
|
|
|
|
'conditions': [
|
2010-04-06 09:27:09 +00:00
|
|
|
['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
|
2009-04-27 09:04:39 +00:00
|
|
|
'cflags!': [
|
|
|
|
'-O2',
|
2009-11-24 11:08:06 +00:00
|
|
|
'-Os',
|
2009-04-27 09:04:39 +00:00
|
|
|
],
|
|
|
|
'cflags': [
|
|
|
|
'-fomit-frame-pointer',
|
|
|
|
'-O3',
|
|
|
|
],
|
2009-05-22 06:52:02 +00:00
|
|
|
'conditions': [
|
2009-09-23 14:32:45 +00:00
|
|
|
[ 'gcc_version==44', {
|
2009-05-22 06:52:02 +00:00
|
|
|
'cflags': [
|
2009-07-08 14:56:56 +00:00
|
|
|
# Avoid gcc 4.4 strict aliasing issues in dtoa.c
|
|
|
|
'-fno-strict-aliasing',
|
|
|
|
# Avoid crashes with gcc 4.4 in the v8 test suite.
|
|
|
|
'-fno-tree-vrp',
|
2009-05-22 06:52:02 +00:00
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
2009-04-27 09:04:39 +00:00
|
|
|
}],
|
2010-04-06 09:27:09 +00:00
|
|
|
['OS=="freebsd" or OS=="openbsd"', {
|
|
|
|
'cflags': [ '-I/usr/local/include' ],
|
|
|
|
}],
|
2009-08-20 19:12:59 +00:00
|
|
|
['OS=="mac"', {
|
|
|
|
'xcode_settings': {
|
|
|
|
'GCC_OPTIMIZATION_LEVEL': '3', # -O3
|
|
|
|
'GCC_STRICT_ALIASING': 'YES', # -fstrict-aliasing. Mainline gcc
|
|
|
|
# enables this at -O2 and above,
|
|
|
|
# but Apple gcc does not unless it
|
|
|
|
# is specified explicitly.
|
|
|
|
},
|
|
|
|
}],
|
2009-04-27 09:04:39 +00:00
|
|
|
['OS=="win"', {
|
|
|
|
'msvs_configuration_attributes': {
|
|
|
|
'OutputDirectory': '$(SolutionDir)$(ConfigurationName)',
|
|
|
|
'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)',
|
|
|
|
'CharacterSet': '1',
|
|
|
|
},
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCCLCompilerTool': {
|
|
|
|
'RuntimeLibrary': '0',
|
|
|
|
'Optimizations': '2',
|
|
|
|
'InlineFunctionExpansion': '2',
|
|
|
|
'EnableIntrinsicFunctions': 'true',
|
|
|
|
'FavorSizeOrSpeed': '0',
|
|
|
|
'OmitFramePointers': 'true',
|
|
|
|
'StringPooling': 'true',
|
|
|
|
},
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'LinkIncremental': '1',
|
|
|
|
'OptimizeReferences': '2',
|
|
|
|
'OptimizeForWindows98': '1',
|
|
|
|
'EnableCOMDATFolding': '2',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'targets': [
|
|
|
|
{
|
2009-07-08 14:56:56 +00:00
|
|
|
'target_name': 'v8',
|
2009-04-27 09:04:39 +00:00
|
|
|
'type': 'none',
|
2009-07-08 14:56:56 +00:00
|
|
|
'conditions': [
|
|
|
|
['v8_use_snapshot=="true"', {
|
|
|
|
'dependencies': ['v8_snapshot'],
|
2009-04-27 09:04:39 +00:00
|
|
|
},
|
|
|
|
{
|
2009-07-08 14:56:56 +00:00
|
|
|
'dependencies': ['v8_nosnapshot'],
|
2009-04-27 09:04:39 +00:00
|
|
|
}],
|
|
|
|
],
|
2009-07-08 14:56:56 +00:00
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'../../include',
|
|
|
|
],
|
|
|
|
},
|
2009-04-27 09:04:39 +00:00
|
|
|
},
|
|
|
|
{
|
2009-07-08 14:56:56 +00:00
|
|
|
'target_name': 'v8_snapshot',
|
2009-04-27 09:04:39 +00:00
|
|
|
'type': '<(library)',
|
|
|
|
'dependencies': [
|
2009-11-06 07:50:31 +00:00
|
|
|
'mksnapshot#host',
|
|
|
|
'js2c#host',
|
2009-04-27 09:04:39 +00:00
|
|
|
'v8_base',
|
|
|
|
],
|
2009-07-09 10:52:54 +00:00
|
|
|
'include_dirs+': [
|
2009-07-08 15:36:12 +00:00
|
|
|
'../../src',
|
|
|
|
],
|
2009-04-27 09:04:39 +00:00
|
|
|
'sources': [
|
2009-07-08 15:29:16 +00:00
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/libraries-empty.cc',
|
2009-07-08 15:22:44 +00:00
|
|
|
'<(INTERMEDIATE_DIR)/snapshot.cc',
|
2009-04-27 09:04:39 +00:00
|
|
|
],
|
|
|
|
'actions': [
|
|
|
|
{
|
2009-07-08 14:56:56 +00:00
|
|
|
'action_name': 'run_mksnapshot',
|
2009-04-27 09:04:39 +00:00
|
|
|
'inputs': [
|
|
|
|
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(INTERMEDIATE_DIR)/snapshot.cc',
|
|
|
|
],
|
|
|
|
'action': ['<@(_inputs)', '<@(_outputs)'],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2009-07-08 14:56:56 +00:00
|
|
|
'target_name': 'v8_nosnapshot',
|
|
|
|
'type': '<(library)',
|
2009-11-06 07:50:31 +00:00
|
|
|
'toolsets': ['host', 'target'],
|
2009-04-27 09:04:39 +00:00
|
|
|
'dependencies': [
|
2009-11-06 07:50:31 +00:00
|
|
|
'js2c#host',
|
2009-07-08 14:56:56 +00:00
|
|
|
'v8_base',
|
2009-04-29 15:20:37 +00:00
|
|
|
],
|
2009-07-09 10:52:54 +00:00
|
|
|
'include_dirs+': [
|
2009-04-27 09:04:39 +00:00
|
|
|
'../../src',
|
|
|
|
],
|
|
|
|
'sources': [
|
2009-07-08 14:56:56 +00:00
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
|
|
|
|
'../../src/snapshot-empty.cc',
|
2009-04-27 09:04:39 +00:00
|
|
|
],
|
2009-11-06 07:50:31 +00:00
|
|
|
'conditions': [
|
|
|
|
# The ARM assembler assumes the host is 32 bits, so force building
|
|
|
|
# 32-bit host tools.
|
2010-01-13 07:35:31 +00:00
|
|
|
['target_arch=="arm" and host_arch=="x64" and _toolset=="host"', {
|
2009-11-06 07:50:31 +00:00
|
|
|
'cflags': ['-m32'],
|
|
|
|
'ldflags': ['-m32'],
|
|
|
|
}]
|
|
|
|
]
|
2009-04-27 09:04:39 +00:00
|
|
|
},
|
|
|
|
{
|
2009-07-08 14:56:56 +00:00
|
|
|
'target_name': 'v8_base',
|
2009-04-27 09:04:39 +00:00
|
|
|
'type': '<(library)',
|
2009-11-06 07:50:31 +00:00
|
|
|
'toolsets': ['host', 'target'],
|
2009-07-09 10:52:54 +00:00
|
|
|
'include_dirs+': [
|
2009-04-27 09:04:39 +00:00
|
|
|
'../../src',
|
|
|
|
],
|
|
|
|
'sources': [
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/accessors.cc',
|
|
|
|
'../../src/accessors.h',
|
|
|
|
'../../src/allocation.cc',
|
|
|
|
'../../src/allocation.h',
|
|
|
|
'../../src/api.cc',
|
|
|
|
'../../src/api.h',
|
|
|
|
'../../src/apiutils.h',
|
|
|
|
'../../src/arguments.h',
|
|
|
|
'../../src/assembler.cc',
|
|
|
|
'../../src/assembler.h',
|
|
|
|
'../../src/ast.cc',
|
|
|
|
'../../src/ast.h',
|
|
|
|
'../../src/bootstrapper.cc',
|
|
|
|
'../../src/bootstrapper.h',
|
|
|
|
'../../src/builtins.cc',
|
|
|
|
'../../src/builtins.h',
|
|
|
|
'../../src/bytecodes-irregexp.h',
|
2010-03-19 12:15:24 +00:00
|
|
|
'../../src/cached-powers.h',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/char-predicates-inl.h',
|
|
|
|
'../../src/char-predicates.h',
|
|
|
|
'../../src/checks.cc',
|
|
|
|
'../../src/checks.h',
|
2010-04-12 07:52:40 +00:00
|
|
|
'../../src/circular-queue-inl.h',
|
2010-03-17 13:15:42 +00:00
|
|
|
'../../src/circular-queue.cc',
|
2010-04-12 07:52:40 +00:00
|
|
|
'../../src/circular-queue.h',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/code-stubs.cc',
|
|
|
|
'../../src/code-stubs.h',
|
|
|
|
'../../src/code.h',
|
|
|
|
'../../src/codegen-inl.h',
|
|
|
|
'../../src/codegen.cc',
|
|
|
|
'../../src/codegen.h',
|
|
|
|
'../../src/compilation-cache.cc',
|
|
|
|
'../../src/compilation-cache.h',
|
|
|
|
'../../src/compiler.cc',
|
|
|
|
'../../src/compiler.h',
|
|
|
|
'../../src/contexts.cc',
|
|
|
|
'../../src/contexts.h',
|
|
|
|
'../../src/conversions-inl.h',
|
|
|
|
'../../src/conversions.cc',
|
|
|
|
'../../src/conversions.h',
|
|
|
|
'../../src/counters.cc',
|
|
|
|
'../../src/counters.h',
|
|
|
|
'../../src/cpu.h',
|
2010-03-19 09:46:53 +00:00
|
|
|
'../../src/cpu-profiler-inl.h',
|
|
|
|
'../../src/cpu-profiler.cc',
|
|
|
|
'../../src/cpu-profiler.h',
|
2010-01-29 09:42:13 +00:00
|
|
|
'../../src/data-flow.cc',
|
|
|
|
'../../src/data-flow.h',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/dateparser.cc',
|
|
|
|
'../../src/dateparser.h',
|
|
|
|
'../../src/dateparser-inl.h',
|
|
|
|
'../../src/debug.cc',
|
|
|
|
'../../src/debug.h',
|
|
|
|
'../../src/debug-agent.cc',
|
|
|
|
'../../src/debug-agent.h',
|
|
|
|
'../../src/disasm.h',
|
|
|
|
'../../src/disassembler.cc',
|
|
|
|
'../../src/disassembler.h',
|
|
|
|
'../../src/dtoa-config.c',
|
2010-03-19 12:15:24 +00:00
|
|
|
'../../src/diy-fp.cc',
|
|
|
|
'../../src/diy-fp.h',
|
2010-03-11 14:49:35 +00:00
|
|
|
'../../src/double.h',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/execution.cc',
|
|
|
|
'../../src/execution.h',
|
|
|
|
'../../src/factory.cc',
|
|
|
|
'../../src/factory.h',
|
2010-01-27 15:23:48 +00:00
|
|
|
'../../src/fast-codegen.h',
|
2010-03-18 13:19:59 +00:00
|
|
|
'../../src/fast-dtoa.cc',
|
|
|
|
'../../src/fast-dtoa.h',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/flag-definitions.h',
|
|
|
|
'../../src/flags.cc',
|
|
|
|
'../../src/flags.h',
|
2010-03-25 16:22:48 +00:00
|
|
|
'../../src/flow-graph.cc',
|
|
|
|
'../../src/flow-graph.h',
|
Initial port of top-level code generator to ARM. For the constant
true at the top level we generate:
0 stmdb sp!, {r1, r8, fp, lr}
4 add fp, sp, #8
8 ldr ip, [r10, #+4]
12 ldr r2, [r10, #+0]
16 str ip, [sp, #-4]!
20 add lr, pc, #4
24 cmp sp, r2
28 ldrcc pc, [pc, #+68] ;; code: STUB, StackCheck, minor: 0
32 ldr ip, [pc, #+68] ;; object: 0xf5bc4161 <true>
36 str ip, [sp, #-4]!
40 ldr ip, [sp, #+0]
44 str ip, [fp, #-12]
48 add sp, sp, #4
52 ldr ip, [fp, #-12]
56 str ip, [sp, #-4]!
60 ldr r0, [sp], #+4
64 mov sp, fp ;; js return
68 ldmia sp!, {fp, lr}
72 add sp, sp, #4
76 bx lr
80 ldr r0, [r10, #+4]
84 mov sp, fp ;; js return
88 ldmia sp!, {fp, lr}
92 add sp, sp, #4
96 bx lr
100 constant pool begin
104 constant
108 constant
Review URL: http://codereview.chromium.org/264067
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3073 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2009-10-15 12:42:16 +00:00
|
|
|
'../../src/frame-element.cc',
|
|
|
|
'../../src/frame-element.h',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/frames-inl.h',
|
|
|
|
'../../src/frames.cc',
|
|
|
|
'../../src/frames.h',
|
2010-01-20 16:28:21 +00:00
|
|
|
'../../src/full-codegen.cc',
|
|
|
|
'../../src/full-codegen.h',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/func-name-inferrer.cc',
|
|
|
|
'../../src/func-name-inferrer.h',
|
|
|
|
'../../src/global-handles.cc',
|
|
|
|
'../../src/global-handles.h',
|
|
|
|
'../../src/globals.h',
|
|
|
|
'../../src/handles-inl.h',
|
|
|
|
'../../src/handles.cc',
|
|
|
|
'../../src/handles.h',
|
|
|
|
'../../src/hashmap.cc',
|
|
|
|
'../../src/hashmap.h',
|
|
|
|
'../../src/heap-inl.h',
|
|
|
|
'../../src/heap.cc',
|
|
|
|
'../../src/heap.h',
|
2009-09-16 13:41:24 +00:00
|
|
|
'../../src/heap-profiler.cc',
|
|
|
|
'../../src/heap-profiler.h',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/ic-inl.h',
|
|
|
|
'../../src/ic.cc',
|
|
|
|
'../../src/ic.h',
|
|
|
|
'../../src/interpreter-irregexp.cc',
|
|
|
|
'../../src/interpreter-irregexp.h',
|
2010-03-25 13:18:00 +00:00
|
|
|
'../../src/jump-target-inl.h',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/jump-target.cc',
|
|
|
|
'../../src/jump-target.h',
|
|
|
|
'../../src/jsregexp.cc',
|
|
|
|
'../../src/jsregexp.h',
|
|
|
|
'../../src/list-inl.h',
|
|
|
|
'../../src/list.h',
|
2010-02-17 20:37:08 +00:00
|
|
|
'../../src/liveedit.cc',
|
|
|
|
'../../src/liveedit.h',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/log-inl.h',
|
|
|
|
'../../src/log-utils.cc',
|
|
|
|
'../../src/log-utils.h',
|
Added first support for tracking locations of expressions in the
fast-mode code generator.
AST expression nodes are annotated with a location when doing the
initial syntactic check of the AST. In the current implementation,
expression locations are 'temporary' (ie, allocated to the stack) or
'nowhere' (ie, the expression's value is not needed though it must be
evaluated for side effects).
For the assignment '.result = true' on IA32, we had before (with the
true value already on top of the stack):
32 mov eax,[esp]
35 mov [ebp+0xf4],eax
38 pop eax
Now:
32 pop [ebp+0xf4]
======== On x64, before:
37 movq rax,[rsp]
41 movq [rbp-0x18],rax
45 pop rax
Now:
37 pop [rbp-0x18]
======== On ARM, before (with the true value in register ip):
36 str ip, [sp, #-4]!
40 ldr ip, [sp, #+0]
44 str ip, [fp, #-12]
48 add sp, sp, #4
Now:
36 str ip, [fp, #-12]
Review URL: http://codereview.chromium.org/267118
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3076 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2009-10-15 16:42:22 +00:00
|
|
|
'../../src/log.cc',
|
|
|
|
'../../src/log.h',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/macro-assembler.h',
|
|
|
|
'../../src/mark-compact.cc',
|
|
|
|
'../../src/mark-compact.h',
|
|
|
|
'../../src/memory.h',
|
|
|
|
'../../src/messages.cc',
|
|
|
|
'../../src/messages.h',
|
|
|
|
'../../src/natives.h',
|
|
|
|
'../../src/objects-debug.cc',
|
|
|
|
'../../src/objects-inl.h',
|
|
|
|
'../../src/objects.cc',
|
|
|
|
'../../src/objects.h',
|
|
|
|
'../../src/oprofile-agent.h',
|
|
|
|
'../../src/oprofile-agent.cc',
|
|
|
|
'../../src/parser.cc',
|
|
|
|
'../../src/parser.h',
|
|
|
|
'../../src/platform.h',
|
2010-03-19 12:15:24 +00:00
|
|
|
'../../src/powers-ten.h',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/prettyprinter.cc',
|
|
|
|
'../../src/prettyprinter.h',
|
|
|
|
'../../src/property.cc',
|
|
|
|
'../../src/property.h',
|
2010-03-15 14:11:19 +00:00
|
|
|
'../../src/profile-generator-inl.h',
|
|
|
|
'../../src/profile-generator.cc',
|
|
|
|
'../../src/profile-generator.h',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/regexp-macro-assembler-irregexp-inl.h',
|
|
|
|
'../../src/regexp-macro-assembler-irregexp.cc',
|
|
|
|
'../../src/regexp-macro-assembler-irregexp.h',
|
|
|
|
'../../src/regexp-macro-assembler-tracer.cc',
|
|
|
|
'../../src/regexp-macro-assembler-tracer.h',
|
|
|
|
'../../src/regexp-macro-assembler.cc',
|
|
|
|
'../../src/regexp-macro-assembler.h',
|
|
|
|
'../../src/regexp-stack.cc',
|
|
|
|
'../../src/regexp-stack.h',
|
|
|
|
'../../src/register-allocator.h',
|
|
|
|
'../../src/register-allocator-inl.h',
|
|
|
|
'../../src/register-allocator.cc',
|
|
|
|
'../../src/rewriter.cc',
|
|
|
|
'../../src/rewriter.h',
|
|
|
|
'../../src/runtime.cc',
|
|
|
|
'../../src/runtime.h',
|
|
|
|
'../../src/scanner.cc',
|
|
|
|
'../../src/scanner.h',
|
|
|
|
'../../src/scopeinfo.cc',
|
|
|
|
'../../src/scopeinfo.h',
|
|
|
|
'../../src/scopes.cc',
|
|
|
|
'../../src/scopes.h',
|
|
|
|
'../../src/serialize.cc',
|
|
|
|
'../../src/serialize.h',
|
|
|
|
'../../src/shell.h',
|
|
|
|
'../../src/smart-pointer.h',
|
|
|
|
'../../src/snapshot-common.cc',
|
|
|
|
'../../src/snapshot.h',
|
|
|
|
'../../src/spaces-inl.h',
|
|
|
|
'../../src/spaces.cc',
|
|
|
|
'../../src/spaces.h',
|
|
|
|
'../../src/string-stream.cc',
|
|
|
|
'../../src/string-stream.h',
|
|
|
|
'../../src/stub-cache.cc',
|
|
|
|
'../../src/stub-cache.h',
|
|
|
|
'../../src/token.cc',
|
|
|
|
'../../src/token.h',
|
|
|
|
'../../src/top.cc',
|
|
|
|
'../../src/top.h',
|
2010-03-26 11:34:00 +00:00
|
|
|
'../../src/type-info.cc',
|
2010-03-25 12:44:15 +00:00
|
|
|
'../../src/type-info.h',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/unicode-inl.h',
|
|
|
|
'../../src/unicode.cc',
|
|
|
|
'../../src/unicode.h',
|
|
|
|
'../../src/utils.cc',
|
|
|
|
'../../src/utils.h',
|
|
|
|
'../../src/v8-counters.cc',
|
|
|
|
'../../src/v8-counters.h',
|
|
|
|
'../../src/v8.cc',
|
|
|
|
'../../src/v8.h',
|
|
|
|
'../../src/v8threads.cc',
|
|
|
|
'../../src/v8threads.h',
|
|
|
|
'../../src/variables.cc',
|
|
|
|
'../../src/variables.h',
|
|
|
|
'../../src/version.cc',
|
|
|
|
'../../src/version.h',
|
2010-03-08 13:01:24 +00:00
|
|
|
'../../src/virtual-frame-inl.h',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/virtual-frame.cc',
|
2010-03-08 13:01:24 +00:00
|
|
|
'../../src/virtual-frame.h',
|
2010-04-08 13:37:39 +00:00
|
|
|
'../../src/vm-state-inl.h',
|
|
|
|
'../../src/vm-state.cc',
|
|
|
|
'../../src/vm-state.h',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/zone-inl.h',
|
|
|
|
'../../src/zone.cc',
|
|
|
|
'../../src/zone.h',
|
2009-04-27 09:04:39 +00:00
|
|
|
],
|
|
|
|
'conditions': [
|
2009-07-08 14:56:56 +00:00
|
|
|
['target_arch=="arm"', {
|
|
|
|
'include_dirs+': [
|
|
|
|
'../../src/arm',
|
|
|
|
],
|
|
|
|
'sources': [
|
2010-03-25 13:56:29 +00:00
|
|
|
'../../src/fast-codegen.cc',
|
2010-03-25 13:18:00 +00:00
|
|
|
'../../src/jump-target-light-inl.h',
|
|
|
|
'../../src/jump-target-light.cc',
|
|
|
|
'../../src/virtual-frame-light-inl.h',
|
|
|
|
'../../src/virtual-frame-light.cc',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/arm/assembler-arm-inl.h',
|
|
|
|
'../../src/arm/assembler-arm.cc',
|
|
|
|
'../../src/arm/assembler-arm.h',
|
|
|
|
'../../src/arm/builtins-arm.cc',
|
|
|
|
'../../src/arm/codegen-arm.cc',
|
|
|
|
'../../src/arm/codegen-arm.h',
|
|
|
|
'../../src/arm/constants-arm.h',
|
2009-11-06 07:50:31 +00:00
|
|
|
'../../src/arm/constants-arm.cc',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/arm/cpu-arm.cc',
|
|
|
|
'../../src/arm/debug-arm.cc',
|
|
|
|
'../../src/arm/disasm-arm.cc',
|
2010-02-01 17:01:58 +00:00
|
|
|
'../../src/arm/fast-codegen-arm.cc',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/arm/frames-arm.cc',
|
|
|
|
'../../src/arm/frames-arm.h',
|
2010-01-20 16:28:21 +00:00
|
|
|
'../../src/arm/full-codegen-arm.cc',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/arm/ic-arm.cc',
|
|
|
|
'../../src/arm/jump-target-arm.cc',
|
|
|
|
'../../src/arm/macro-assembler-arm.cc',
|
|
|
|
'../../src/arm/macro-assembler-arm.h',
|
|
|
|
'../../src/arm/regexp-macro-assembler-arm.cc',
|
|
|
|
'../../src/arm/regexp-macro-assembler-arm.h',
|
|
|
|
'../../src/arm/register-allocator-arm.cc',
|
|
|
|
'../../src/arm/simulator-arm.cc',
|
|
|
|
'../../src/arm/stub-cache-arm.cc',
|
|
|
|
'../../src/arm/virtual-frame-arm.cc',
|
|
|
|
'../../src/arm/virtual-frame-arm.h',
|
|
|
|
],
|
2009-11-06 07:50:31 +00:00
|
|
|
'conditions': [
|
|
|
|
# The ARM assembler assumes the host is 32 bits, so force building
|
|
|
|
# 32-bit host tools.
|
2010-01-13 07:35:31 +00:00
|
|
|
['host_arch=="x64" and _toolset=="host"', {
|
2009-11-06 07:50:31 +00:00
|
|
|
'cflags': ['-m32'],
|
|
|
|
'ldflags': ['-m32'],
|
|
|
|
}]
|
|
|
|
]
|
2009-07-08 14:56:56 +00:00
|
|
|
}],
|
|
|
|
['target_arch=="ia32"', {
|
|
|
|
'include_dirs+': [
|
|
|
|
'../../src/ia32',
|
|
|
|
],
|
|
|
|
'sources': [
|
2010-03-25 13:18:00 +00:00
|
|
|
'../../src/jump-target-heavy-inl.h',
|
|
|
|
'../../src/jump-target-heavy.cc',
|
|
|
|
'../../src/virtual-frame-heavy-inl.h',
|
|
|
|
'../../src/virtual-frame-heavy.cc',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/ia32/assembler-ia32-inl.h',
|
|
|
|
'../../src/ia32/assembler-ia32.cc',
|
|
|
|
'../../src/ia32/assembler-ia32.h',
|
|
|
|
'../../src/ia32/builtins-ia32.cc',
|
|
|
|
'../../src/ia32/codegen-ia32.cc',
|
|
|
|
'../../src/ia32/codegen-ia32.h',
|
|
|
|
'../../src/ia32/cpu-ia32.cc',
|
|
|
|
'../../src/ia32/debug-ia32.cc',
|
|
|
|
'../../src/ia32/disasm-ia32.cc',
|
2010-02-01 17:01:58 +00:00
|
|
|
'../../src/ia32/fast-codegen-ia32.cc',
|
2010-02-19 09:17:37 +00:00
|
|
|
'../../src/ia32/fast-codegen-ia32.h',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/ia32/frames-ia32.cc',
|
|
|
|
'../../src/ia32/frames-ia32.h',
|
2010-01-20 16:28:21 +00:00
|
|
|
'../../src/ia32/full-codegen-ia32.cc',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/ia32/ic-ia32.cc',
|
|
|
|
'../../src/ia32/jump-target-ia32.cc',
|
|
|
|
'../../src/ia32/macro-assembler-ia32.cc',
|
|
|
|
'../../src/ia32/macro-assembler-ia32.h',
|
2009-08-31 12:40:37 +00:00
|
|
|
'../../src/ia32/regexp-macro-assembler-ia32.cc',
|
|
|
|
'../../src/ia32/regexp-macro-assembler-ia32.h',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/ia32/register-allocator-ia32.cc',
|
|
|
|
'../../src/ia32/stub-cache-ia32.cc',
|
|
|
|
'../../src/ia32/virtual-frame-ia32.cc',
|
|
|
|
'../../src/ia32/virtual-frame-ia32.h',
|
|
|
|
],
|
|
|
|
}],
|
2009-07-28 20:32:57 +00:00
|
|
|
['target_arch=="x64"', {
|
|
|
|
'include_dirs+': [
|
|
|
|
'../../src/x64',
|
|
|
|
],
|
|
|
|
'sources': [
|
2010-03-25 13:56:29 +00:00
|
|
|
'../../src/fast-codegen.cc',
|
2010-03-25 13:18:00 +00:00
|
|
|
'../../src/jump-target-heavy-inl.h',
|
|
|
|
'../../src/jump-target-heavy.cc',
|
|
|
|
'../../src/virtual-frame-heavy-inl.h',
|
|
|
|
'../../src/virtual-frame-heavy.cc',
|
2009-07-28 20:32:57 +00:00
|
|
|
'../../src/x64/assembler-x64-inl.h',
|
|
|
|
'../../src/x64/assembler-x64.cc',
|
|
|
|
'../../src/x64/assembler-x64.h',
|
|
|
|
'../../src/x64/builtins-x64.cc',
|
|
|
|
'../../src/x64/codegen-x64.cc',
|
|
|
|
'../../src/x64/codegen-x64.h',
|
|
|
|
'../../src/x64/cpu-x64.cc',
|
|
|
|
'../../src/x64/debug-x64.cc',
|
|
|
|
'../../src/x64/disasm-x64.cc',
|
2010-02-01 17:01:58 +00:00
|
|
|
'../../src/x64/fast-codegen-x64.cc',
|
2009-07-28 20:32:57 +00:00
|
|
|
'../../src/x64/frames-x64.cc',
|
|
|
|
'../../src/x64/frames-x64.h',
|
2010-01-20 16:28:21 +00:00
|
|
|
'../../src/x64/full-codegen-x64.cc',
|
2009-07-28 20:32:57 +00:00
|
|
|
'../../src/x64/ic-x64.cc',
|
|
|
|
'../../src/x64/jump-target-x64.cc',
|
|
|
|
'../../src/x64/macro-assembler-x64.cc',
|
|
|
|
'../../src/x64/macro-assembler-x64.h',
|
2009-08-31 12:40:37 +00:00
|
|
|
'../../src/x64/regexp-macro-assembler-x64.cc',
|
|
|
|
'../../src/x64/regexp-macro-assembler-x64.h',
|
2009-07-28 20:32:57 +00:00
|
|
|
'../../src/x64/register-allocator-x64.cc',
|
|
|
|
'../../src/x64/stub-cache-x64.cc',
|
|
|
|
'../../src/x64/virtual-frame-x64.cc',
|
|
|
|
'../../src/x64/virtual-frame-x64.h',
|
|
|
|
],
|
|
|
|
}],
|
2009-07-08 14:56:56 +00:00
|
|
|
['OS=="linux"', {
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
# Needed for clock_gettime() used by src/platform-linux.cc.
|
|
|
|
'-lrt',
|
|
|
|
]},
|
|
|
|
'sources': [
|
|
|
|
'../../src/platform-linux.cc',
|
|
|
|
'../../src/platform-posix.cc'
|
|
|
|
],
|
2009-04-27 09:04:39 +00:00
|
|
|
}
|
|
|
|
],
|
2010-04-06 09:27:09 +00:00
|
|
|
['OS=="freebsd"', {
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-L/usr/local/lib -lexecinfo',
|
|
|
|
]},
|
|
|
|
'sources': [
|
|
|
|
'../../src/platform-freebsd.cc',
|
|
|
|
'../../src/platform-posix.cc'
|
|
|
|
],
|
|
|
|
}
|
|
|
|
],
|
2009-12-02 13:38:50 +00:00
|
|
|
['OS=="openbsd"', {
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-L/usr/local/lib -lexecinfo',
|
|
|
|
]},
|
|
|
|
'sources': [
|
|
|
|
'../../src/platform-openbsd.cc',
|
|
|
|
'../../src/platform-posix.cc'
|
|
|
|
],
|
|
|
|
}
|
|
|
|
],
|
2009-07-08 14:56:56 +00:00
|
|
|
['OS=="mac"', {
|
|
|
|
'sources': [
|
|
|
|
'../../src/platform-macos.cc',
|
|
|
|
'../../src/platform-posix.cc'
|
|
|
|
]},
|
2009-04-27 09:04:39 +00:00
|
|
|
],
|
|
|
|
['OS=="win"', {
|
2009-07-08 14:56:56 +00:00
|
|
|
'sources': [
|
|
|
|
'../../src/platform-win32.cc',
|
|
|
|
],
|
2009-04-27 09:04:39 +00:00
|
|
|
# 4355, 4800 came from common.vsprops
|
|
|
|
# 4018, 4244 were a per file config on dtoa-config.c
|
|
|
|
# TODO: It's probably possible and desirable to stop disabling the
|
|
|
|
# dtoa-specific warnings by modifying dtoa as was done in Chromium
|
|
|
|
# r9255. Refer to that revision for details.
|
|
|
|
'msvs_disabled_warnings': [4355, 4800, 4018, 4244],
|
2009-07-08 14:56:56 +00:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [ '-lwinmm.lib' ],
|
|
|
|
},
|
2009-04-27 09:04:39 +00:00
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2009-07-08 14:56:56 +00:00
|
|
|
'target_name': 'js2c',
|
|
|
|
'type': 'none',
|
2009-11-06 07:50:31 +00:00
|
|
|
'toolsets': ['host'],
|
2009-07-08 14:56:56 +00:00
|
|
|
'variables': {
|
|
|
|
'library_files': [
|
|
|
|
'../../src/runtime.js',
|
|
|
|
'../../src/v8natives.js',
|
|
|
|
'../../src/array.js',
|
|
|
|
'../../src/string.js',
|
|
|
|
'../../src/uri.js',
|
|
|
|
'../../src/math.js',
|
|
|
|
'../../src/messages.js',
|
|
|
|
'../../src/apinatives.js',
|
2010-03-23 11:40:38 +00:00
|
|
|
'../../src/debug-debugger.js',
|
|
|
|
'../../src/mirror-debugger.js',
|
|
|
|
'../../src/liveedit-debugger.js',
|
|
|
|
'../../src/date.js',
|
|
|
|
'../../src/json.js',
|
|
|
|
'../../src/regexp.js',
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/macros.py',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'actions': [
|
|
|
|
{
|
|
|
|
'action_name': 'js2c',
|
|
|
|
'inputs': [
|
|
|
|
'../../tools/js2c.py',
|
|
|
|
'<@(library_files)',
|
|
|
|
],
|
|
|
|
'outputs': [
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)/libraries-empty.cc',
|
|
|
|
],
|
|
|
|
'action': [
|
|
|
|
'python',
|
|
|
|
'../../tools/js2c.py',
|
|
|
|
'<@(_outputs)',
|
|
|
|
'CORE',
|
|
|
|
'<@(library_files)'
|
|
|
|
],
|
|
|
|
},
|
2009-04-27 09:04:39 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2009-07-08 14:56:56 +00:00
|
|
|
'target_name': 'mksnapshot',
|
2009-04-27 09:04:39 +00:00
|
|
|
'type': 'executable',
|
2009-11-06 07:50:31 +00:00
|
|
|
'toolsets': ['host'],
|
2009-04-27 09:04:39 +00:00
|
|
|
'dependencies': [
|
2009-07-08 14:56:56 +00:00
|
|
|
'v8_nosnapshot',
|
2009-04-27 09:04:39 +00:00
|
|
|
],
|
2009-07-09 10:52:54 +00:00
|
|
|
'include_dirs+': [
|
2009-07-08 15:36:12 +00:00
|
|
|
'../../src',
|
|
|
|
],
|
2009-04-27 09:04:39 +00:00
|
|
|
'sources': [
|
2009-07-08 14:56:56 +00:00
|
|
|
'../../src/mksnapshot.cc',
|
2009-04-27 09:04:39 +00:00
|
|
|
],
|
2009-11-06 07:50:31 +00:00
|
|
|
'conditions': [
|
|
|
|
# The ARM assembler assumes the host is 32 bits, so force building
|
|
|
|
# 32-bit host tools.
|
2010-01-13 07:35:31 +00:00
|
|
|
['target_arch=="arm" and host_arch=="x64" and _toolset=="host"', {
|
2009-11-06 07:50:31 +00:00
|
|
|
'cflags': ['-m32'],
|
|
|
|
'ldflags': ['-m32'],
|
|
|
|
}]
|
|
|
|
]
|
2009-07-09 05:25:08 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'v8_shell',
|
|
|
|
'type': 'executable',
|
|
|
|
'dependencies': [
|
|
|
|
'v8'
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'../../samples/shell.cc',
|
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
[ 'OS=="win"', {
|
|
|
|
# This could be gotten by not setting chromium_code, if that's OK.
|
|
|
|
'defines': ['_CRT_SECURE_NO_WARNINGS'],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
2009-04-27 09:04:39 +00:00
|
|
|
],
|
|
|
|
}
|