Browse Source

V8: Reapply floating patches

v0.9.8-release
isaacs 12 years ago
parent
commit
7a2ebce8d8
  1. 11
      deps/v8/build/common.gypi
  2. 3
      deps/v8/src/log-utils.cc
  3. 2
      deps/v8/src/v8utils.h

11
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': [

3
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();

2
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)) {

Loading…
Cancel
Save