Version 2.0.4
Added ECMAScript 5 Object.create.
Improved performance of Math.max and Math.min.
Optimized adding of strings on 64-bit platforms.
Improved handling of external strings by using a separate table instead of weak handles. This improves garbage collection performance and uses less memory.
Changed code generation for object and array literals in toplevel code to be more compact by doing more work in the runtime.
Fixed a crash bug triggered when garbage collection happened during generation of a callback load inline cache stub.
Fixed crash bug sometimes triggered when local variables shadowed parameters in functions that used the arguments object.
git-svn-id: http://v8.googlecode.com/svn/trunk@3475 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
diff --git a/SConstruct b/SConstruct
old mode 100755
new mode 100644
index 2087a94..ef0917f
--- a/SConstruct
+++ b/SConstruct
@@ -143,6 +143,9 @@
},
'os:macos': {
'CCFLAGS': ['-ansi', '-mmacosx-version-min=10.4'],
+ 'library:shared': {
+ 'CPPDEFINES': ['V8_SHARED']
+ }
},
'os:freebsd': {
'CPPPATH' : ['/usr/local/include'],
@@ -178,6 +181,12 @@
'CCFLAGS': ['-m32'],
'LINKFLAGS': ['-m32']
},
+ 'armvariant:thumb2': {
+ 'CPPDEFINES': ['V8_ARM_VARIANT_THUMB']
+ },
+ 'armvariant:arm': {
+ 'CPPDEFINES': ['V8_ARM_VARIANT_ARM']
+ },
'arch:x64': {
'CPPDEFINES': ['V8_TARGET_ARCH_X64'],
'CCFLAGS': ['-m64'],
@@ -656,6 +665,11 @@
'values': ['default', 'hidden'],
'default': 'hidden',
'help': 'shared library symbol visibility'
+ },
+ 'armvariant': {
+ 'values': ['arm', 'thumb2', 'none'],
+ 'default': 'none',
+ 'help': 'generate thumb2 instructions instead of arm instructions (default)'
}
}
@@ -839,6 +853,10 @@
# Print a warning if profiling is enabled without profiling support
print "Warning: forcing profilingsupport on when prof is on"
options['profilingsupport'] = 'on'
+ if (options['armvariant'] == 'none' and options['arch'] == 'arm'):
+ options['armvariant'] = 'arm'
+ if (options['armvariant'] != 'none' and options['arch'] != 'arm'):
+ options['armvariant'] = 'none'
def ParseEnvOverrides(arg, imports):