Skip to content

Commit 7a2ebce

Browse files
committed
V8: Reapply floating patches
1 parent 8024252 commit 7a2ebce

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

deps/v8/build/common.gypi

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
[ 'v8_use_arm_eabi_hardfloat=="true"', {
161161
'defines': [
162162
'USE_EABI_HARDFLOAT=1',
163-
'CAN_USE_VFP3_INSTRUCTIONS',
163+
'CAN_USE_VFP2_INSTRUCTIONS',
164164
],
165165
'target_conditions': [
166166
['_toolset=="target"', {
@@ -399,15 +399,6 @@
399399
}],
400400
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" \
401401
or OS=="android"', {
402-
'cflags!': [
403-
'-O2',
404-
'-Os',
405-
],
406-
'cflags': [
407-
'-fdata-sections',
408-
'-ffunction-sections',
409-
'-O3',
410-
],
411402
'conditions': [
412403
[ 'gcc_version==44 and clang==0', {
413404
'cflags': [

deps/v8/src/log-utils.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ void Log::Initialize() {
107107
// one character so we can escape the loop properly.
108108
p--;
109109
break;
110+
case 'p':
111+
stream.Add("%d", OS::GetCurrentProcessId());
112+
break;
110113
case 't': {
111114
// %t expands to the current time in milliseconds.
112115
double time = OS::TimeCurrentMillis();

deps/v8/src/v8utils.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ INLINE(void CopyChars(sinkchar* dest, const sourcechar* src, int chars));
209209

210210
template <typename sourcechar, typename sinkchar>
211211
void CopyChars(sinkchar* dest, const sourcechar* src, int chars) {
212+
ASSERT(chars >= 0);
213+
if (chars == 0) return;
212214
sinkchar* limit = dest + chars;
213215
#ifdef V8_HOST_CAN_READ_UNALIGNED
214216
if (sizeof(*dest) == sizeof(*src)) {

0 commit comments

Comments
 (0)