| 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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 | 486 |
| 487 // Allocate a new prototype for the object function. | 487 // Allocate a new prototype for the object function. |
| 488 Handle<Map> object_prototype_map = | 488 Handle<Map> object_prototype_map = |
| 489 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); | 489 factory->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); |
| 490 Handle<DescriptorArray> prototype_descriptors( | 490 Handle<DescriptorArray> prototype_descriptors( |
| 491 factory->NewDescriptorArray(0, 1)); | 491 factory->NewDescriptorArray(0, 1)); |
| 492 DescriptorArray::WhitenessWitness witness(*prototype_descriptors); | 492 DescriptorArray::WhitenessWitness witness(*prototype_descriptors); |
| 493 | 493 |
| 494 Handle<Foreign> object_prototype( | 494 Handle<Foreign> object_prototype( |
| 495 factory->NewForeign(&Accessors::ObjectPrototype)); | 495 factory->NewForeign(&Accessors::ObjectPrototype)); |
| 496 PropertyAttributes attribs = static_cast<PropertyAttributes>( | 496 PropertyAttributes attribs = static_cast<PropertyAttributes>(DONT_ENUM); |
| 497 DONT_ENUM | DONT_DELETE); | |
| 498 object_prototype_map->set_instance_descriptors(*prototype_descriptors); | 497 object_prototype_map->set_instance_descriptors(*prototype_descriptors); |
| 499 | 498 |
| 500 { // Add __proto__. | 499 { // Add __proto__. |
| 501 CallbacksDescriptor d(heap->proto_string(), *object_prototype, attribs); | 500 CallbacksDescriptor d(heap->proto_string(), *object_prototype, attribs); |
| 502 object_prototype_map->AppendDescriptor(&d, witness); | 501 object_prototype_map->AppendDescriptor(&d, witness); |
| 503 } | 502 } |
| 504 | 503 |
| 505 Handle<JSObject> prototype = factory->NewJSObjectFromMap( | 504 Handle<JSObject> prototype = factory->NewJSObjectFromMap( |
| 506 object_prototype_map, | 505 object_prototype_map, |
| 507 TENURED); | 506 TENURED); |
| (...skipping 1980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2488 return from + sizeof(NestingCounterType); | 2487 return from + sizeof(NestingCounterType); |
| 2489 } | 2488 } |
| 2490 | 2489 |
| 2491 | 2490 |
| 2492 // Called when the top-level V8 mutex is destroyed. | 2491 // Called when the top-level V8 mutex is destroyed. |
| 2493 void Bootstrapper::FreeThreadResources() { | 2492 void Bootstrapper::FreeThreadResources() { |
| 2494 ASSERT(!IsActive()); | 2493 ASSERT(!IsActive()); |
| 2495 } | 2494 } |
| 2496 | 2495 |
| 2497 } } // namespace v8::internal | 2496 } } // namespace v8::internal |
| OLD | NEW |