| OLD | NEW |
| 1 // Copyright 2007-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2007-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 4079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4090 value = v8_compile("other.blocked_prop")->Run(); | 4090 value = v8_compile("other.blocked_prop")->Run(); |
| 4091 CHECK(value->IsUndefined()); | 4091 CHECK(value->IsUndefined()); |
| 4092 | 4092 |
| 4093 value = v8_compile("propertyIsEnumerable.call(other, 'blocked_prop')")->Run(); | 4093 value = v8_compile("propertyIsEnumerable.call(other, 'blocked_prop')")->Run(); |
| 4094 CHECK(value->IsFalse()); | 4094 CHECK(value->IsFalse()); |
| 4095 | 4095 |
| 4096 // Access accessible property | 4096 // Access accessible property |
| 4097 value = v8_compile("other.accessible_prop = 3")->Run(); | 4097 value = v8_compile("other.accessible_prop = 3")->Run(); |
| 4098 CHECK(value->IsNumber()); | 4098 CHECK(value->IsNumber()); |
| 4099 CHECK_EQ(3, value->Int32Value()); | 4099 CHECK_EQ(3, value->Int32Value()); |
| 4100 CHECK_EQ(3, g_echo_value); |
| 4100 | 4101 |
| 4101 value = v8_compile("other.accessible_prop")->Run(); | 4102 value = v8_compile("other.accessible_prop")->Run(); |
| 4102 CHECK(value->IsNumber()); | 4103 CHECK(value->IsNumber()); |
| 4103 CHECK_EQ(3, value->Int32Value()); | 4104 CHECK_EQ(3, value->Int32Value()); |
| 4104 | 4105 |
| 4105 value = | 4106 value = |
| 4106 v8_compile("propertyIsEnumerable.call(other, 'accessible_prop')")->Run(); | 4107 v8_compile("propertyIsEnumerable.call(other, 'accessible_prop')")->Run(); |
| 4107 CHECK(value->IsTrue()); | 4108 CHECK(value->IsTrue()); |
| 4108 | 4109 |
| 4109 // Enumeration doesn't enumerate accessors from inaccessible objects in | 4110 // Enumeration doesn't enumerate accessors from inaccessible objects in |
| (...skipping 4712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8822 CompileRun(source_exception); | 8823 CompileRun(source_exception); |
| 8823 other_context->Exit(); | 8824 other_context->Exit(); |
| 8824 v8::internal::Heap::CollectAllGarbage(false); | 8825 v8::internal::Heap::CollectAllGarbage(false); |
| 8825 if (GetGlobalObjectsCount() == 1) break; | 8826 if (GetGlobalObjectsCount() == 1) break; |
| 8826 } | 8827 } |
| 8827 CHECK_GE(2, gc_count); | 8828 CHECK_GE(2, gc_count); |
| 8828 CHECK_EQ(1, GetGlobalObjectsCount()); | 8829 CHECK_EQ(1, GetGlobalObjectsCount()); |
| 8829 | 8830 |
| 8830 other_context.Dispose(); | 8831 other_context.Dispose(); |
| 8831 } | 8832 } |
| OLD | NEW |