summaryrefslogtreecommitdiff
path: root/deps/v8
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-01-24 09:02:21 -0800
committerisaacs <i@izs.me>2013-01-24 09:10:01 -0800
commit7a2ebce8d8e939370ce24ff464e157d29dded806 (patch)
tree0f1c0cfbc60226f010a5b379fe4591a2159c9c2e /deps/v8
parent80242528778cacb57d7f043309745d169f1d234c (diff)
downloadnode-7a2ebce8d8e939370ce24ff464e157d29dded806.tar.gz
V8: Reapply floating patches
Diffstat (limited to 'deps/v8')
-rw-r--r--deps/v8/build/common.gypi11
-rw-r--r--deps/v8/src/log-utils.cc3
-rw-r--r--deps/v8/src/v8utils.h2
3 files changed, 6 insertions, 10 deletions
diff --git a/deps/v8/build/common.gypi b/deps/v8/build/common.gypi
index e68ee15fd..44bebae93 100644
--- a/deps/v8/build/common.gypi
+++ b/deps/v8/build/common.gypi
@@ -160,7 +160,7 @@
[ 'v8_use_arm_eabi_hardfloat=="true"', {
'defines': [
'USE_EABI_HARDFLOAT=1',
- 'CAN_USE_VFP3_INSTRUCTIONS',
+ 'CAN_USE_VFP2_INSTRUCTIONS',
],
'target_conditions': [
['_toolset=="target"', {
@@ -399,15 +399,6 @@
}],
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" \
or OS=="android"', {
- 'cflags!': [
- '-O2',
- '-Os',
- ],
- 'cflags': [
- '-fdata-sections',
- '-ffunction-sections',
- '-O3',
- ],
'conditions': [
[ 'gcc_version==44 and clang==0', {
'cflags': [
diff --git a/deps/v8/src/log-utils.cc b/deps/v8/src/log-utils.cc
index d8d92cbe2..a66db3d93 100644
--- a/deps/v8/src/log-utils.cc
+++ b/deps/v8/src/log-utils.cc
@@ -107,6 +107,9 @@ void Log::Initialize() {
// one character so we can escape the loop properly.
p--;
break;
+ case 'p':
+ stream.Add("%d", OS::GetCurrentProcessId());
+ break;
case 't': {
// %t expands to the current time in milliseconds.
double time = OS::TimeCurrentMillis();
diff --git a/deps/v8/src/v8utils.h b/deps/v8/src/v8utils.h
index 9072b4e28..111abdf8b 100644
--- a/deps/v8/src/v8utils.h
+++ b/deps/v8/src/v8utils.h
@@ -209,6 +209,8 @@ INLINE(void CopyChars(sinkchar* dest, const sourcechar* src, int chars));
template <typename sourcechar, typename sinkchar>
void CopyChars(sinkchar* dest, const sourcechar* src, int chars) {
+ ASSERT(chars >= 0);
+ if (chars == 0) return;
sinkchar* limit = dest + chars;
#ifdef V8_HOST_CAN_READ_UNALIGNED
if (sizeof(*dest) == sizeof(*src)) {