OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 if (target->IsJSBuiltinsObject()) { | 355 if (target->IsJSBuiltinsObject()) { |
356 attributes = | 356 attributes = |
357 static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE | READ_ONLY); | 357 static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE | READ_ONLY); |
358 } else { | 358 } else { |
359 attributes = DONT_ENUM; | 359 attributes = DONT_ENUM; |
360 } | 360 } |
361 SetLocalPropertyNoThrow(target, symbol, function, attributes); | 361 SetLocalPropertyNoThrow(target, symbol, function, attributes); |
362 if (is_ecma_native) { | 362 if (is_ecma_native) { |
363 function->shared()->set_instance_class_name(*symbol); | 363 function->shared()->set_instance_class_name(*symbol); |
364 } | 364 } |
| 365 function->shared()->set_native(true); |
365 return function; | 366 return function; |
366 } | 367 } |
367 | 368 |
368 | 369 |
369 Handle<DescriptorArray> Genesis::ComputeFunctionInstanceDescriptor( | 370 Handle<DescriptorArray> Genesis::ComputeFunctionInstanceDescriptor( |
370 PrototypePropertyMode prototypeMode) { | 371 PrototypePropertyMode prototypeMode) { |
371 Handle<DescriptorArray> descriptors = | 372 Handle<DescriptorArray> descriptors = |
372 factory()->NewDescriptorArray(prototypeMode == DONT_ADD_PROTOTYPE | 373 factory()->NewDescriptorArray(prototypeMode == DONT_ADD_PROTOTYPE |
373 ? 4 | 374 ? 4 |
374 : 5); | 375 : 5); |
(...skipping 1892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2267 return from + sizeof(NestingCounterType); | 2268 return from + sizeof(NestingCounterType); |
2268 } | 2269 } |
2269 | 2270 |
2270 | 2271 |
2271 // Called when the top-level V8 mutex is destroyed. | 2272 // Called when the top-level V8 mutex is destroyed. |
2272 void Bootstrapper::FreeThreadResources() { | 2273 void Bootstrapper::FreeThreadResources() { |
2273 ASSERT(!IsActive()); | 2274 ASSERT(!IsActive()); |
2274 } | 2275 } |
2275 | 2276 |
2276 } } // namespace v8::internal | 2277 } } // namespace v8::internal |
OLD | NEW |