| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 29 matching lines...) Expand all Loading... |
| 40 #include "src/api.h" | 40 #include "src/api.h" |
| 41 #include "src/arguments.h" | 41 #include "src/arguments.h" |
| 42 #include "src/base/platform/platform.h" | 42 #include "src/base/platform/platform.h" |
| 43 #include "src/base/smart-pointers.h" | 43 #include "src/base/smart-pointers.h" |
| 44 #include "src/compilation-cache.h" | 44 #include "src/compilation-cache.h" |
| 45 #include "src/debug/debug.h" | 45 #include "src/debug/debug.h" |
| 46 #include "src/execution.h" | 46 #include "src/execution.h" |
| 47 #include "src/futex-emulation.h" | 47 #include "src/futex-emulation.h" |
| 48 #include "src/objects.h" | 48 #include "src/objects.h" |
| 49 #include "src/parsing/parser.h" | 49 #include "src/parsing/parser.h" |
| 50 #include "src/profiler/cpu-profiler.h" |
| 50 #include "src/unicode-inl.h" | 51 #include "src/unicode-inl.h" |
| 51 #include "src/utils.h" | 52 #include "src/utils.h" |
| 52 #include "src/vm-state.h" | 53 #include "src/vm-state.h" |
| 53 #include "test/cctest/heap/heap-tester.h" | 54 #include "test/cctest/heap/heap-tester.h" |
| 54 #include "test/cctest/heap/heap-utils.h" | 55 #include "test/cctest/heap/heap-utils.h" |
| 55 | 56 |
| 56 static const bool kLogThreading = false; | 57 static const bool kLogThreading = false; |
| 57 | 58 |
| 58 using ::v8::Boolean; | 59 using ::v8::Boolean; |
| 59 using ::v8::BooleanObject; | 60 using ::v8::BooleanObject; |
| (...skipping 25308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25368 } | 25369 } |
| 25369 | 25370 |
| 25370 TEST(PrivateForApiIsNumber) { | 25371 TEST(PrivateForApiIsNumber) { |
| 25371 LocalContext context; | 25372 LocalContext context; |
| 25372 v8::Isolate* isolate = CcTest::isolate(); | 25373 v8::Isolate* isolate = CcTest::isolate(); |
| 25373 v8::HandleScope scope(isolate); | 25374 v8::HandleScope scope(isolate); |
| 25374 | 25375 |
| 25375 // Shouldn't crash. | 25376 // Shouldn't crash. |
| 25376 v8::Private::ForApi(isolate, v8_str("42")); | 25377 v8::Private::ForApi(isolate, v8_str("42")); |
| 25377 } | 25378 } |
| OLD | NEW |