| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 21 matching lines...) Expand all Loading... |
| 32 #include <signal.h> | 32 #include <signal.h> |
| 33 #include <unistd.h> | 33 #include <unistd.h> |
| 34 #include <cmath> | 34 #include <cmath> |
| 35 #endif // __linux__ | 35 #endif // __linux__ |
| 36 | 36 |
| 37 #include "v8.h" | 37 #include "v8.h" |
| 38 #include "log.h" | 38 #include "log.h" |
| 39 #include "log-utils.h" | 39 #include "log-utils.h" |
| 40 #include "cpu-profiler.h" | 40 #include "cpu-profiler.h" |
| 41 #include "natives.h" | 41 #include "natives.h" |
| 42 #include "utils.h" |
| 42 #include "v8threads.h" | 43 #include "v8threads.h" |
| 43 #include "v8utils.h" | |
| 44 #include "cctest.h" | 44 #include "cctest.h" |
| 45 #include "vm-state-inl.h" | 45 #include "vm-state-inl.h" |
| 46 | 46 |
| 47 using v8::internal::Address; | 47 using v8::internal::Address; |
| 48 using v8::internal::EmbeddedVector; | 48 using v8::internal::EmbeddedVector; |
| 49 using v8::internal::Logger; | 49 using v8::internal::Logger; |
| 50 using v8::internal::StrLength; | 50 using v8::internal::StrLength; |
| 51 | 51 |
| 52 namespace { | 52 namespace { |
| 53 | 53 |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 v8::Local<v8::String> s = result->ToString(); | 485 v8::Local<v8::String> s = result->ToString(); |
| 486 i::ScopedVector<char> data(s->Utf8Length() + 1); | 486 i::ScopedVector<char> data(s->Utf8Length() + 1); |
| 487 CHECK_NE(NULL, data.start()); | 487 CHECK_NE(NULL, data.start()); |
| 488 s->WriteUtf8(data.start()); | 488 s->WriteUtf8(data.start()); |
| 489 printf("%s\n", data.start()); | 489 printf("%s\n", data.start()); |
| 490 // Make sure that our output is written prior crash due to CHECK failure. | 490 // Make sure that our output is written prior crash due to CHECK failure. |
| 491 fflush(stdout); | 491 fflush(stdout); |
| 492 CHECK(false); | 492 CHECK(false); |
| 493 } | 493 } |
| 494 } | 494 } |
| OLD | NEW |