| 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 21 matching lines...) Expand all Loading... |
| 32 #include "api.h" | 32 #include "api.h" |
| 33 #include "compilation-cache.h" | 33 #include "compilation-cache.h" |
| 34 #include "execution.h" | 34 #include "execution.h" |
| 35 #include "snapshot.h" | 35 #include "snapshot.h" |
| 36 #include "platform.h" | 36 #include "platform.h" |
| 37 #include "utils.h" | 37 #include "utils.h" |
| 38 #include "cctest.h" | 38 #include "cctest.h" |
| 39 #include "parser.h" | 39 #include "parser.h" |
| 40 #include "unicode-inl.h" | 40 #include "unicode-inl.h" |
| 41 | 41 |
| 42 static const bool kLogThreading = true; | 42 static const bool kLogThreading = false; |
| 43 | 43 |
| 44 static bool IsNaN(double x) { | 44 static bool IsNaN(double x) { |
| 45 #ifdef WIN32 | 45 #ifdef WIN32 |
| 46 return _isnan(x); | 46 return _isnan(x); |
| 47 #else | 47 #else |
| 48 return isnan(x); | 48 return isnan(x); |
| 49 #endif | 49 #endif |
| 50 } | 50 } |
| 51 | 51 |
| 52 using ::v8::AccessorInfo; | 52 using ::v8::AccessorInfo; |
| (...skipping 13851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13904 CHECK(func2->CreationContext() == context2); | 13904 CHECK(func2->CreationContext() == context2); |
| 13905 CheckContextId(func2, 2); | 13905 CheckContextId(func2, 2); |
| 13906 CHECK(instance2->CreationContext() == context2); | 13906 CHECK(instance2->CreationContext() == context2); |
| 13907 CheckContextId(instance2, 2); | 13907 CheckContextId(instance2, 2); |
| 13908 } | 13908 } |
| 13909 | 13909 |
| 13910 context1.Dispose(); | 13910 context1.Dispose(); |
| 13911 context2.Dispose(); | 13911 context2.Dispose(); |
| 13912 context3.Dispose(); | 13912 context3.Dispose(); |
| 13913 } | 13913 } |
| OLD | NEW |