Skip to content

Commit

Permalink
V8: Reapply floating patches
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jan 24, 2013
1 parent 8024252 commit 7a2ebce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
11 changes: 1 addition & 10 deletions deps/v8/build/common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -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"', {
Expand Down Expand Up @@ -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': [
Expand Down
3 changes: 3 additions & 0 deletions deps/v8/src/log-utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 2 additions & 0 deletions deps/v8/src/v8utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 7a2ebce

Please sign in to comment.