| 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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE); | 547 static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE); |
| 548 PropertyAttributes ro_attribs = | 548 PropertyAttributes ro_attribs = |
| 549 static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE | READ_ONLY); | 549 static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE | READ_ONLY); |
| 550 map->set_instance_descriptors(*descriptors); | 550 map->set_instance_descriptors(*descriptors); |
| 551 | 551 |
| 552 { // Add length. | 552 { // Add length. |
| 553 CallbacksDescriptor d(*factory()->length_string(), *length, ro_attribs); | 553 CallbacksDescriptor d(*factory()->length_string(), *length, ro_attribs); |
| 554 map->AppendDescriptor(&d, witness); | 554 map->AppendDescriptor(&d, witness); |
| 555 } | 555 } |
| 556 { // Add name. | 556 { // Add name. |
| 557 CallbacksDescriptor d(*factory()->name_string(), *name, rw_attribs); | 557 CallbacksDescriptor d(*factory()->name_string(), *name, ro_attribs); |
| 558 map->AppendDescriptor(&d, witness); | 558 map->AppendDescriptor(&d, witness); |
| 559 } | 559 } |
| 560 { // Add arguments. | 560 { // Add arguments. |
| 561 CallbacksDescriptor d(*factory()->arguments_string(), *arguments, | 561 CallbacksDescriptor d(*factory()->arguments_string(), *arguments, |
| 562 rw_attribs); | 562 rw_attribs); |
| 563 map->AppendDescriptor(&d, witness); | 563 map->AppendDescriptor(&d, witness); |
| 564 } | 564 } |
| 565 { // Add caller. | 565 { // Add caller. |
| 566 CallbacksDescriptor d(*factory()->caller_string(), *caller, rw_attribs); | 566 CallbacksDescriptor d(*factory()->caller_string(), *caller, rw_attribs); |
| 567 map->AppendDescriptor(&d, witness); | 567 map->AppendDescriptor(&d, witness); |
| (...skipping 2133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2701 return from + sizeof(NestingCounterType); | 2701 return from + sizeof(NestingCounterType); |
| 2702 } | 2702 } |
| 2703 | 2703 |
| 2704 | 2704 |
| 2705 // Called when the top-level V8 mutex is destroyed. | 2705 // Called when the top-level V8 mutex is destroyed. |
| 2706 void Bootstrapper::FreeThreadResources() { | 2706 void Bootstrapper::FreeThreadResources() { |
| 2707 ASSERT(!IsActive()); | 2707 ASSERT(!IsActive()); |
| 2708 } | 2708 } |
| 2709 | 2709 |
| 2710 } } // namespace v8::internal | 2710 } } // namespace v8::internal |
| OLD | NEW |