OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 28 matching lines...) Expand all Loading... |
39 #include <sys/time.h> | 39 #include <sys/time.h> |
40 #include <sys/types.h> | 40 #include <sys/types.h> |
41 #include <sys/stat.h> | 41 #include <sys/stat.h> |
42 | 42 |
43 #include <arpa/inet.h> | 43 #include <arpa/inet.h> |
44 #include <netinet/in.h> | 44 #include <netinet/in.h> |
45 #include <netdb.h> | 45 #include <netdb.h> |
46 | 46 |
47 #undef MAP_TYPE | 47 #undef MAP_TYPE |
48 | 48 |
49 #if defined(ANDROID) | 49 #if defined(ANDROID) &&!defined(V8_ANDROID_LOG_STDOUT) |
50 #define LOG_TAG "v8" | 50 #define LOG_TAG "v8" |
51 #include <android/log.h> | 51 #include <android/log.h> |
52 #endif | 52 #endif |
53 | 53 |
54 #include "v8.h" | 54 #include "v8.h" |
55 | 55 |
56 #include "platform.h" | 56 #include "platform.h" |
57 | 57 |
58 namespace v8 { | 58 namespace v8 { |
59 namespace internal { | 59 namespace internal { |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 return ntohl(value); | 485 return ntohl(value); |
486 } | 486 } |
487 | 487 |
488 | 488 |
489 Socket* OS::CreateSocket() { | 489 Socket* OS::CreateSocket() { |
490 return new POSIXSocket(); | 490 return new POSIXSocket(); |
491 } | 491 } |
492 | 492 |
493 | 493 |
494 } } // namespace v8::internal | 494 } } // namespace v8::internal |
OLD | NEW |