| 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 28 matching lines...) Expand all Loading... |
| 39 #include "include/v8-util.h" | 39 #include "include/v8-util.h" |
| 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/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-tester.h" |
| 54 | 54 |
| 55 static const bool kLogThreading = false; | 55 static const bool kLogThreading = false; |
| 56 | 56 |
| 57 using ::v8::Boolean; | 57 using ::v8::Boolean; |
| 58 using ::v8::BooleanObject; | 58 using ::v8::BooleanObject; |
| 59 using ::v8::Context; | 59 using ::v8::Context; |
| (...skipping 22166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22226 env2->Global()->Set(v8_str("obj2"), object2); | 22226 env2->Global()->Set(v8_str("obj2"), object2); |
| 22227 ExpectString("typeof obj2.values", "function"); | 22227 ExpectString("typeof obj2.values", "function"); |
| 22228 CHECK_NE(*object->Get(v8_str("values")), *object2->Get(v8_str("values"))); | 22228 CHECK_NE(*object->Get(v8_str("values")), *object2->Get(v8_str("values"))); |
| 22229 | 22229 |
| 22230 auto values2 = Local<Function>::Cast(object2->Get(v8_str("values"))); | 22230 auto values2 = Local<Function>::Cast(object2->Get(v8_str("values"))); |
| 22231 auto fn2 = i::Handle<i::JSFunction>::cast(v8::Utils::OpenHandle(*values2)); | 22231 auto fn2 = i::Handle<i::JSFunction>::cast(v8::Utils::OpenHandle(*values2)); |
| 22232 auto ctx2 = v8::Utils::OpenHandle(*env2.local()); | 22232 auto ctx2 = v8::Utils::OpenHandle(*env2.local()); |
| 22233 CHECK_EQ(fn2->GetCreationContext(), *ctx2); | 22233 CHECK_EQ(fn2->GetCreationContext(), *ctx2); |
| 22234 } | 22234 } |
| 22235 } | 22235 } |
| OLD | NEW |