Skip to content

Commit

Permalink
Fixed a number of build issues.
Browse files Browse the repository at this point in the history
Fixed problem with missing I-cache flusing on ARM.

Changed space layout in memory management by splitting up code space into old data space and code space.

Added utf-8 conversion support to the API (issue 57).

Optimized repeated calls to eval with the same strings.  These repeated calls are common in web applications.

Added Xcode project file.

Optimized a couple of Array operation.

Fixed parser bug by checking for end-of-string when parsing break and continue (issue 35).

Fixed problem where asian characters were not categorized as letters.

Fixed bug that disallowed calling functions fetched from an array using a string as an array index (issue 32).

Fixed bug where the internal field count on object templates were sometimes ignored (issue 54).

Added -f option to the shell sample for compatibility with other engines (issue 18).

Added source info to TryCatches in the API.

Fixed problem where the seed for the random number generator was clipped in a double to unsigned int conversion.

Fixed bug where cons string symbols were sometimes converted to non-symbol flat strings during GC.

Fixed bug in error reporting when attempting to convert null to an object.


git-svn-id: https://v8.googlecode.com/svn/trunk@267 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
  • Loading branch information
ager@chromium.org committed Sep 11, 2008
1 parent f18de47 commit 110a38c
Show file tree
Hide file tree
Showing 498 changed files with 4,328 additions and 1,860 deletions.
11 changes: 11 additions & 0 deletions AUTHORS
@@ -0,0 +1,11 @@
# Below is a list of people and organizations that have contributed
# to the V8 project. Names should be added to the list like so:
#
# Name/Organization <email address>

Google Inc.

Rene Rebe <rene@exactcode.de>
Rafal Krypa <rafal@krypa.net>
Jay Freeman <saurik@saurik.com>
Daniel James <dnljms@gmail.com>
45 changes: 45 additions & 0 deletions ChangeLog
@@ -1,3 +1,48 @@
2008-09-11: Version 0.3.1

Fixed a number of build issues.

Fixed problem with missing I-cache flusing on ARM.

Changed space layout in memory management by splitting up
code space into old data space and code space.

Added utf-8 conversion support to the API (issue 57).

Optimized repeated calls to eval with the same strings. These
repeated calls are common in web applications.

Added Xcode project file.

Optimized a couple of Array operation.

Fixed parser bug by checking for end-of-string when parsing break
and continue (issue 35).

Fixed problem where asian characters were not categorized as
letters.

Fixed bug that disallowed calling functions fetched from an array
using a string as an array index (issue 32).

Fixed bug where the internal field count on object templates were
sometimes ignored (issue 54).

Added -f option to the shell sample for compatibility with other
engines (issue 18).

Added source info to TryCatches in the API.

Fixed problem where the seed for the random number generator was
clipped in a double to unsigned int conversion.

Fixed bug where cons string symbols were sometimes converted to
non-symbol flat strings during GC.

Fixed bug in error reporting when attempting to convert null to an
object.


2008-09-04: Version 0.3.0

Added support for running tests on the ARM simulator.
Expand Down
40 changes: 36 additions & 4 deletions SConstruct
@@ -1,4 +1,4 @@
# Copyright 2008 Google Inc. All rights reserved.
# Copyright 2008 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:
Expand Down Expand Up @@ -30,6 +30,7 @@ import re
import sys
import os
from os.path import join, dirname, abspath
from types import DictType
root_dir = dirname(File('SConstruct').rfile().abspath)
sys.path.append(join(root_dir, 'tools'))
import js2c, utils
Expand All @@ -55,8 +56,9 @@ LIBRARY_FLAGS = {
'CCFLAGS': ['-O2']
},
'wordsize:64': {
'CCFLAGS': ['-m32']
},
'CCFLAGS': ['-m32'],
'LINKFLAGS': ['-m32']
}
},
'msvc': {
'all': {
Expand Down Expand Up @@ -95,6 +97,9 @@ V8_EXTRA_FLAGS = {
'arch:arm': {
'CPPDEFINES': ['ARM']
},
'disassembler:on': {
'CPPDEFINES': ['ENABLE_DISASSEMBLER']
}
},
'msvc': {
'all': {
Expand All @@ -106,6 +111,9 @@ V8_EXTRA_FLAGS = {
'arch:arm': {
'CPPDEFINES': ['ARM']
},
'disassembler:on': {
'CPPDEFINES': ['ENABLE_DISASSEMBLER']
}
}
}

Expand Down Expand Up @@ -182,6 +190,9 @@ SAMPLE_FLAGS = {
'CCFLAGS': ['-m32'],
'LINKFLAGS': ['-m32']
},
'mode:debug': {
'CCFLAGS': ['-g', '-O0']
}
},
'msvc': {
'all': {
Expand Down Expand Up @@ -281,6 +292,16 @@ SIMPLE_OPTIONS = {
'values': ['arm', 'none'],
'default': 'none',
'help': 'build with simulator'
},
'disassembler': {
'values': ['on', 'off'],
'default': 'off',
'help': 'enable the disassembler to inspect generated code'
},
'sourcesignatures': {
'values': ['MD5', 'timestamp'],
'default': 'MD5',
'help': 'set how the build system detects file changes'
}
}

Expand Down Expand Up @@ -369,6 +390,14 @@ class BuildContext(object):
else:
return env.SharedObject(input, **kw)

def ApplyEnvOverrides(self, env):
if not self.env_overrides:
return
if type(env['ENV']) == DictType:
env['ENV'].update(**self.env_overrides)
else:
env['ENV'] = self.env_overrides


def PostprocessOptions(options):
# Adjust architecture if the simulator option has been set
Expand Down Expand Up @@ -427,6 +456,7 @@ def BuildSpecific(env, mode, env_overrides):
)

# Link the object files into a library.
context.ApplyEnvOverrides(env)
if context.options['library'] == 'static':
library = env.StaticLibrary(library_name, object_files)
else:
Expand All @@ -440,7 +470,7 @@ def BuildSpecific(env, mode, env_overrides):
for sample in context.samples:
sample_env = Environment(LIBRARY=library_name)
sample_env.Replace(**context.flags['sample'])
sample_env['ENV'].update(**context.env_overrides)
context.ApplyEnvOverrides(sample_env)
sample_object = sample_env.SConscript(
join('samples', 'SConscript'),
build_dir=join('obj', 'sample', sample, target_id),
Expand Down Expand Up @@ -470,6 +500,8 @@ def Build():
VerifyOptions(env)
env_overrides = ParseEnvOverrides(env['env'])

SourceSignatures(env['sourcesignatures'])

libraries = []
cctests = []
samples = []
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/base.js
@@ -1,4 +1,4 @@
// Copyright 2008 Google Inc. All Rights Reserved.
// Copyright 2008 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:
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/deltablue.js
@@ -1,4 +1,4 @@
// Copyright 2008 Google Inc. All Rights Reserved.
// Copyright 2008 the V8 project authors. All rights reserved.
// Copyright 1996 John Maloney and Mario Wolczko.

// This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/richards.js
@@ -1,4 +1,4 @@
// Copyright 2007 Google Inc. All rights reserved.
// Copyright 2006-2008 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:
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/run.js
@@ -1,4 +1,4 @@
// Copyright 2008 Google Inc. All Rights Reserved.
// Copyright 2008 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:
Expand Down
4 changes: 4 additions & 0 deletions codereview.settings
@@ -0,0 +1,4 @@
# This file is used by gcl to get repository specific information.
CODE_REVIEW_SERVER: codereview.chromium.org
VIEW_VC: http://code.google.com/p/v8/source/detail?r=
CC_LIST: v8-dev@googlegroups.com
8 changes: 4 additions & 4 deletions include/v8-debug.h
@@ -1,4 +1,4 @@
// Copyright 2008 Google Inc. All Rights Reserved.
// Copyright 2008 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:
Expand All @@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifndef _V8_DEBUG
#define _V8_DEBUG
#ifndef V8_DEBUG_H_
#define V8_DEBUG_H_

#include "v8.h"

Expand Down Expand Up @@ -140,4 +140,4 @@ class EXPORT Debug {
#undef EXPORT


#endif // _V8_DEBUG
#endif // V8_DEBUG_H_

0 comments on commit 110a38c

Please sign in to comment.