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 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1317 { // -- M a p | 1317 { // -- M a p |
1318 InstallFunction(global, "Map", JS_MAP_TYPE, JSMap::kSize, | 1318 InstallFunction(global, "Map", JS_MAP_TYPE, JSMap::kSize, |
1319 isolate()->initial_object_prototype(), | 1319 isolate()->initial_object_prototype(), |
1320 Builtins::kIllegal, true, true); | 1320 Builtins::kIllegal, true, true); |
1321 } | 1321 } |
1322 { // -- W e a k M a p | 1322 { // -- W e a k M a p |
1323 InstallFunction(global, "WeakMap", JS_WEAK_MAP_TYPE, JSWeakMap::kSize, | 1323 InstallFunction(global, "WeakMap", JS_WEAK_MAP_TYPE, JSWeakMap::kSize, |
1324 isolate()->initial_object_prototype(), | 1324 isolate()->initial_object_prototype(), |
1325 Builtins::kIllegal, true, true); | 1325 Builtins::kIllegal, true, true); |
1326 } | 1326 } |
| 1327 { // -- W e a k S e t |
| 1328 InstallFunction(global, "WeakSet", JS_WEAK_SET_TYPE, JSWeakSet::kSize, |
| 1329 isolate()->initial_object_prototype(), |
| 1330 Builtins::kIllegal, true, true); |
| 1331 } |
1327 } | 1332 } |
1328 | 1333 |
1329 if (FLAG_harmony_array_buffer) { | 1334 if (FLAG_harmony_array_buffer) { |
1330 // -- A r r a y B u f f e r | 1335 // -- A r r a y B u f f e r |
1331 Handle<JSFunction> array_buffer_fun = | 1336 Handle<JSFunction> array_buffer_fun = |
1332 InstallFunction( | 1337 InstallFunction( |
1333 global, "ArrayBuffer", JS_ARRAY_BUFFER_TYPE, | 1338 global, "ArrayBuffer", JS_ARRAY_BUFFER_TYPE, |
1334 JSArrayBuffer::kSizeWithInternalFields, | 1339 JSArrayBuffer::kSizeWithInternalFields, |
1335 isolate()->initial_object_prototype(), | 1340 isolate()->initial_object_prototype(), |
1336 Builtins::kIllegal, true, true); | 1341 Builtins::kIllegal, true, true); |
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2670 return from + sizeof(NestingCounterType); | 2675 return from + sizeof(NestingCounterType); |
2671 } | 2676 } |
2672 | 2677 |
2673 | 2678 |
2674 // Called when the top-level V8 mutex is destroyed. | 2679 // Called when the top-level V8 mutex is destroyed. |
2675 void Bootstrapper::FreeThreadResources() { | 2680 void Bootstrapper::FreeThreadResources() { |
2676 ASSERT(!IsActive()); | 2681 ASSERT(!IsActive()); |
2677 } | 2682 } |
2678 | 2683 |
2679 } } // namespace v8::internal | 2684 } } // namespace v8::internal |
OLD | NEW |