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 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1313 { // -- W e a k M a p | 1313 { // -- W e a k M a p |
1314 InstallFunction(global, "WeakMap", JS_WEAK_MAP_TYPE, JSWeakMap::kSize, | 1314 InstallFunction(global, "WeakMap", JS_WEAK_MAP_TYPE, JSWeakMap::kSize, |
1315 isolate()->initial_object_prototype(), | 1315 isolate()->initial_object_prototype(), |
1316 Builtins::kIllegal, true); | 1316 Builtins::kIllegal, true); |
1317 } | 1317 } |
1318 } | 1318 } |
1319 | 1319 |
1320 if (FLAG_harmony_typed_arrays) { | 1320 if (FLAG_harmony_typed_arrays) { |
1321 { // -- A r r a y B u f f e r | 1321 { // -- A r r a y B u f f e r |
1322 Handle<JSFunction> array_buffer_fun = | 1322 Handle<JSFunction> array_buffer_fun = |
1323 InstallFunction(global, "__ArrayBuffer", JS_ARRAY_BUFFER_TYPE, | 1323 InstallFunction(global, "ArrayBuffer", JS_ARRAY_BUFFER_TYPE, |
1324 JSArrayBuffer::kSize, | 1324 JSArrayBuffer::kSize, |
1325 isolate()->initial_object_prototype(), | 1325 isolate()->initial_object_prototype(), |
1326 Builtins::kIllegal, true); | 1326 Builtins::kIllegal, true); |
1327 native_context()->set_array_buffer_fun(*array_buffer_fun); | 1327 native_context()->set_array_buffer_fun(*array_buffer_fun); |
1328 } | 1328 } |
1329 { | 1329 { |
1330 // -- T y p e d A r r a y s | 1330 // -- T y p e d A r r a y s |
1331 InstallTypedArray("__Int8Array"); | 1331 InstallTypedArray("Int8Array"); |
1332 InstallTypedArray("__Uint8Array"); | 1332 InstallTypedArray("Uint8Array"); |
1333 InstallTypedArray("__Int16Array"); | 1333 InstallTypedArray("Int16Array"); |
1334 InstallTypedArray("__Uint16Array"); | 1334 InstallTypedArray("Uint16Array"); |
1335 InstallTypedArray("__Int32Array"); | 1335 InstallTypedArray("Int32Array"); |
1336 InstallTypedArray("__Uint32Array"); | 1336 InstallTypedArray("Uint32Array"); |
1337 InstallTypedArray("__Float32Array"); | 1337 InstallTypedArray("Float32Array"); |
1338 InstallTypedArray("__Float64Array"); | 1338 InstallTypedArray("Float64Array"); |
1339 } | 1339 } |
1340 } | 1340 } |
1341 | 1341 |
1342 if (FLAG_harmony_generators) { | 1342 if (FLAG_harmony_generators) { |
1343 // Create generator meta-objects and install them on the builtins object. | 1343 // Create generator meta-objects and install them on the builtins object. |
1344 Handle<JSObject> builtins(native_context()->builtins()); | 1344 Handle<JSObject> builtins(native_context()->builtins()); |
1345 Handle<JSObject> generator_object_prototype = | 1345 Handle<JSObject> generator_object_prototype = |
1346 factory()->NewJSObject(isolate()->object_function(), TENURED); | 1346 factory()->NewJSObject(isolate()->object_function(), TENURED); |
1347 Handle<JSFunction> generator_function_prototype = | 1347 Handle<JSFunction> generator_function_prototype = |
1348 InstallFunction(builtins, "GeneratorFunctionPrototype", | 1348 InstallFunction(builtins, "GeneratorFunctionPrototype", |
(...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2570 return from + sizeof(NestingCounterType); | 2570 return from + sizeof(NestingCounterType); |
2571 } | 2571 } |
2572 | 2572 |
2573 | 2573 |
2574 // Called when the top-level V8 mutex is destroyed. | 2574 // Called when the top-level V8 mutex is destroyed. |
2575 void Bootstrapper::FreeThreadResources() { | 2575 void Bootstrapper::FreeThreadResources() { |
2576 ASSERT(!IsActive()); | 2576 ASSERT(!IsActive()); |
2577 } | 2577 } |
2578 | 2578 |
2579 } } // namespace v8::internal | 2579 } } // namespace v8::internal |
OLD | NEW |