Skip to content

Commit e72b7b8

Browse files
committed
Upgrade V8 to 2.2.4.2
1 parent 7a34afb commit e72b7b8

File tree

117 files changed

+3466
-1109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+3466
-1109
lines changed

deps/v8/ChangeLog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2010-04-21: Version 2.3.4
2+
3+
Fixed warnings on arm on newer GCC versions.
4+
5+
Fixed a number of minor bugs.
6+
7+
Performance improvements on all platforms.
8+
9+
110
2010-04-14: Version 2.2.3
211

312
Added stack command and mem command to ARM simulator debugger.

deps/v8/SConstruct

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,18 @@ ANDROID_TOP = os.environ.get('TOP')
4242
if ANDROID_TOP is None:
4343
ANDROID_TOP=""
4444

45+
# ARM_TARGET_LIB is the path to the dynamic library to use on the target
46+
# machine if cross-compiling to an arm machine. You will also need to set
47+
# the additional cross-compiling environment variables to the cross compiler.
48+
ARM_TARGET_LIB = os.environ.get('ARM_TARGET_LIB')
49+
if ARM_TARGET_LIB:
50+
ARM_LINK_FLAGS = ['-Wl,-rpath=' + ARM_TARGET_LIB + '/lib:' +
51+
ARM_TARGET_LIB + '/usr/lib',
52+
'-Wl,--dynamic-linker=' + ARM_TARGET_LIB +
53+
'/lib/ld-linux.so.3']
54+
else:
55+
ARM_LINK_FLAGS = []
56+
4557
# TODO: Sort these issues out properly but as a temporary solution for gcc 4.4
4658
# on linux we need these compiler flags to avoid crashes in the v8 test suite
4759
# and avoid dtoa.c strict aliasing issues
@@ -99,8 +111,8 @@ ANDROID_LINKFLAGS = ['-nostdlib',
99111
LIBRARY_FLAGS = {
100112
'all': {
101113
'CPPPATH': [join(root_dir, 'src')],
102-
'regexp:native': {
103-
'CPPDEFINES': ['V8_NATIVE_REGEXP']
114+
'regexp:interpreted': {
115+
'CPPDEFINES': ['V8_INTERPRETED_REGEXP']
104116
},
105117
'mode:debug': {
106118
'CPPDEFINES': ['V8_ENABLE_CHECKS']
@@ -114,9 +126,6 @@ LIBRARY_FLAGS = {
114126
'profilingsupport:on': {
115127
'CPPDEFINES': ['ENABLE_VMSTATE_TRACKING', 'ENABLE_LOGGING_AND_PROFILING'],
116128
},
117-
'cppprofilesprocessor:on': {
118-
'CPPDEFINES': ['ENABLE_CPP_PROFILES_PROCESSOR'],
119-
},
120129
'debuggersupport:on': {
121130
'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT'],
122131
}
@@ -419,6 +428,9 @@ CCTEST_EXTRA_FLAGS = {
419428
'CPPDEFINES': ['SK_RELEASE', 'NDEBUG']
420429
}
421430
},
431+
'arch:arm': {
432+
'LINKFLAGS': ARM_LINK_FLAGS
433+
},
422434
},
423435
'msvc': {
424436
'all': {
@@ -483,6 +495,9 @@ SAMPLE_FLAGS = {
483495
'CPPDEFINES': ['SK_RELEASE', 'NDEBUG']
484496
}
485497
},
498+
'arch:arm': {
499+
'LINKFLAGS': ARM_LINK_FLAGS
500+
},
486501
'arch:ia32': {
487502
'CCFLAGS': ['-m32'],
488503
'LINKFLAGS': ['-m32']
@@ -695,11 +710,6 @@ SIMPLE_OPTIONS = {
695710
'default': 'on',
696711
'help': 'enable profiling of JavaScript code'
697712
},
698-
'cppprofilesprocessor': {
699-
'values': ['on', 'off'],
700-
'default': 'on',
701-
'help': 'enable C++ profiles processor'
702-
},
703713
'debuggersupport': {
704714
'values': ['on', 'off'],
705715
'default': 'on',

deps/v8/include/v8.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,8 @@ class V8EXPORT String : public Primitive {
856856
* copying begins.
857857
* \param length The number of bytes to copy from the string.
858858
* \param nchars_ref The number of characters written, can be NULL.
859+
* \param hints Various hints that might affect performance of this or
860+
* subsequent operations.
859861
* \return The number of bytes copied to the buffer
860862
* excluding the NULL terminator.
861863
*/

deps/v8/src/api.cc

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4027,7 +4027,7 @@ Local<Context> Debug::GetDebugContext() {
40274027
#endif // ENABLE_DEBUGGER_SUPPORT
40284028

40294029

4030-
#ifdef ENABLE_CPP_PROFILES_PROCESSOR
4030+
#ifdef ENABLE_LOGGING_AND_PROFILING
40314031

40324032
Handle<String> CpuProfileNode::GetFunctionName() const {
40334033
IsDeadCheck("v8::CpuProfileNode::GetFunctionName");
@@ -4058,6 +4058,18 @@ int CpuProfileNode::GetLineNumber() const {
40584058
}
40594059

40604060

4061+
double CpuProfileNode::GetTotalTime() const {
4062+
IsDeadCheck("v8::CpuProfileNode::GetTotalTime");
4063+
return reinterpret_cast<const i::ProfileNode*>(this)->GetTotalMillis();
4064+
}
4065+
4066+
4067+
double CpuProfileNode::GetSelfTime() const {
4068+
IsDeadCheck("v8::CpuProfileNode::GetSelfTime");
4069+
return reinterpret_cast<const i::ProfileNode*>(this)->GetSelfMillis();
4070+
}
4071+
4072+
40614073
double CpuProfileNode::GetTotalSamplesCount() const {
40624074
IsDeadCheck("v8::CpuProfileNode::GetTotalSamplesCount");
40634075
return reinterpret_cast<const i::ProfileNode*>(this)->total_ticks();
@@ -4148,7 +4160,7 @@ const CpuProfile* CpuProfiler::StopProfiling(Handle<String> title) {
41484160
i::CpuProfiler::StopProfiling(*Utils::OpenHandle(*title)));
41494161
}
41504162

4151-
#endif // ENABLE_CPP_PROFILES_PROCESSOR
4163+
#endif // ENABLE_LOGGING_AND_PROFILING
41524164

41534165

41544166
namespace internal {

0 commit comments

Comments
 (0)