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 26 matching lines...) Expand all Loading... |
37 #include <sys/resource.h> | 37 #include <sys/resource.h> |
38 #include <sys/time.h> | 38 #include <sys/time.h> |
39 #include <sys/types.h> | 39 #include <sys/types.h> |
40 | 40 |
41 #include <arpa/inet.h> | 41 #include <arpa/inet.h> |
42 #include <netinet/in.h> | 42 #include <netinet/in.h> |
43 #include <netdb.h> | 43 #include <netdb.h> |
44 | 44 |
45 #if defined(ANDROID) | 45 #if defined(ANDROID) |
46 #define LOG_TAG "v8" | 46 #define LOG_TAG "v8" |
47 #include <utils/Log.h> // LOG_PRI_VA | 47 #include <android/log.h> |
| 48 #include "cutils/log.h" |
48 #endif | 49 #endif |
49 | 50 |
50 #include "v8.h" | 51 #include "v8.h" |
51 | 52 |
52 #include "platform.h" | 53 #include "platform.h" |
53 | 54 |
54 namespace v8 { | 55 namespace v8 { |
55 namespace internal { | 56 namespace internal { |
56 | 57 |
57 // ---------------------------------------------------------------------------- | 58 // ---------------------------------------------------------------------------- |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 return ntohl(value); | 416 return ntohl(value); |
416 } | 417 } |
417 | 418 |
418 | 419 |
419 Socket* OS::CreateSocket() { | 420 Socket* OS::CreateSocket() { |
420 return new POSIXSocket(); | 421 return new POSIXSocket(); |
421 } | 422 } |
422 | 423 |
423 | 424 |
424 } } // namespace v8::internal | 425 } } // namespace v8::internal |
OLD | NEW |