| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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/unicode-inl.h" | 50 #include "src/unicode-inl.h" |
| 51 #include "src/utils.h" | 51 #include "src/utils.h" |
| 52 #include "src/vm-state.h" | 52 #include "src/vm-state.h" |
| 53 #include "test/cctest/heap-tester.h" | 53 #include "test/cctest/heap/heap-tester.h" |
| 54 #include "test/cctest/heap/utils-inl.h" |
| 54 | 55 |
| 55 static const bool kLogThreading = false; | 56 static const bool kLogThreading = false; |
| 56 | 57 |
| 57 using ::v8::Boolean; | 58 using ::v8::Boolean; |
| 58 using ::v8::BooleanObject; | 59 using ::v8::BooleanObject; |
| 59 using ::v8::Context; | 60 using ::v8::Context; |
| 60 using ::v8::Extension; | 61 using ::v8::Extension; |
| 61 using ::v8::Function; | 62 using ::v8::Function; |
| 62 using ::v8::FunctionTemplate; | 63 using ::v8::FunctionTemplate; |
| 63 using ::v8::HandleScope; | 64 using ::v8::HandleScope; |
| (...skipping 23761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23825 env2->Global()->Set(env2.local(), v8_str("obj2"), object2).FromJust()); | 23826 env2->Global()->Set(env2.local(), v8_str("obj2"), object2).FromJust()); |
| 23826 ExpectString("typeof obj2.values", "function"); | 23827 ExpectString("typeof obj2.values", "function"); |
| 23827 CHECK_NE(*object->Get(v8_str("values")), *object2->Get(v8_str("values"))); | 23828 CHECK_NE(*object->Get(v8_str("values")), *object2->Get(v8_str("values"))); |
| 23828 | 23829 |
| 23829 auto values2 = Local<Function>::Cast(object2->Get(v8_str("values"))); | 23830 auto values2 = Local<Function>::Cast(object2->Get(v8_str("values"))); |
| 23830 auto fn2 = i::Handle<i::JSFunction>::cast(v8::Utils::OpenHandle(*values2)); | 23831 auto fn2 = i::Handle<i::JSFunction>::cast(v8::Utils::OpenHandle(*values2)); |
| 23831 auto ctx2 = v8::Utils::OpenHandle(*env2.local()); | 23832 auto ctx2 = v8::Utils::OpenHandle(*env2.local()); |
| 23832 CHECK_EQ(fn2->GetCreationContext(), *ctx2); | 23833 CHECK_EQ(fn2->GetCreationContext(), *ctx2); |
| 23833 } | 23834 } |
| 23834 } | 23835 } |
| OLD | NEW |