| 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 21388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21399 v8::Isolate* isolate = context->GetIsolate(); | 21399 v8::Isolate* isolate = context->GetIsolate(); |
| 21400 v8::HandleScope scope(isolate); | 21400 v8::HandleScope scope(isolate); |
| 21401 Local<ObjectTemplate> templ = ObjectTemplate::New(isolate); | 21401 Local<ObjectTemplate> templ = ObjectTemplate::New(isolate); |
| 21402 Local<Object> obj = templ->NewInstance(); | 21402 Local<Object> obj = templ->NewInstance(); |
| 21403 obj->GetIdentityHash(); | 21403 obj->GetIdentityHash(); |
| 21404 obj->DeleteHiddenValue(v8_str("Bug")); | 21404 obj->DeleteHiddenValue(v8_str("Bug")); |
| 21405 } | 21405 } |
| 21406 | 21406 |
| 21407 | 21407 |
| 21408 THREADED_TEST(Regress2535) { | 21408 THREADED_TEST(Regress2535) { |
| 21409 i::FLAG_harmony_collections = true; | |
| 21410 LocalContext context; | 21409 LocalContext context; |
| 21411 v8::HandleScope scope(context->GetIsolate()); | 21410 v8::HandleScope scope(context->GetIsolate()); |
| 21412 Local<Value> set_value = CompileRun("new Set();"); | 21411 Local<Value> set_value = CompileRun("new Set();"); |
| 21413 Local<Object> set_object(Local<Object>::Cast(set_value)); | 21412 Local<Object> set_object(Local<Object>::Cast(set_value)); |
| 21414 CHECK_EQ(0, set_object->InternalFieldCount()); | 21413 CHECK_EQ(0, set_object->InternalFieldCount()); |
| 21415 Local<Value> map_value = CompileRun("new Map();"); | 21414 Local<Value> map_value = CompileRun("new Map();"); |
| 21416 Local<Object> map_object(Local<Object>::Cast(map_value)); | 21415 Local<Object> map_object(Local<Object>::Cast(map_value)); |
| 21417 CHECK_EQ(0, map_object->InternalFieldCount()); | 21416 CHECK_EQ(0, map_object->InternalFieldCount()); |
| 21418 } | 21417 } |
| 21419 | 21418 |
| (...skipping 1417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22837 desc = x->GetOwnPropertyDescriptor(v8_str("p1")); | 22836 desc = x->GetOwnPropertyDescriptor(v8_str("p1")); |
| 22838 Local<Function> set = | 22837 Local<Function> set = |
| 22839 Local<Function>::Cast(Local<Object>::Cast(desc)->Get(v8_str("set"))); | 22838 Local<Function>::Cast(Local<Object>::Cast(desc)->Get(v8_str("set"))); |
| 22840 Local<Function> get = | 22839 Local<Function> get = |
| 22841 Local<Function>::Cast(Local<Object>::Cast(desc)->Get(v8_str("get"))); | 22840 Local<Function>::Cast(Local<Object>::Cast(desc)->Get(v8_str("get"))); |
| 22842 CHECK_EQ(v8_num(13), get->Call(x, 0, NULL)); | 22841 CHECK_EQ(v8_num(13), get->Call(x, 0, NULL)); |
| 22843 Handle<Value> args[] = { v8_num(14) }; | 22842 Handle<Value> args[] = { v8_num(14) }; |
| 22844 set->Call(x, 1, args); | 22843 set->Call(x, 1, args); |
| 22845 CHECK_EQ(v8_num(14), get->Call(x, 0, NULL)); | 22844 CHECK_EQ(v8_num(14), get->Call(x, 0, NULL)); |
| 22846 } | 22845 } |
| OLD | NEW |