| 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, true); | 1316 Builtins::kIllegal, true, true); |
| 1317 } | 1317 } |
| 1318 } | 1318 } |
| 1319 | 1319 |
| 1320 if (FLAG_harmony_array_buffer) { | 1320 if (FLAG_harmony_array_buffer) { |
| 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( |
| 1324 JSArrayBuffer::kSize, | 1324 global, "ArrayBuffer", JS_ARRAY_BUFFER_TYPE, |
| 1325 isolate()->initial_object_prototype(), | 1325 JSArrayBuffer::kSize + |
| 1326 Builtins::kIllegal, true, true); | 1326 v8::ArrayBuffer::kInternalFieldCount * kPointerSize, |
| 1327 isolate()->initial_object_prototype(), |
| 1328 Builtins::kIllegal, true, true); |
| 1327 native_context()->set_array_buffer_fun(*array_buffer_fun); | 1329 native_context()->set_array_buffer_fun(*array_buffer_fun); |
| 1328 } | 1330 } |
| 1329 | 1331 |
| 1330 if (FLAG_harmony_typed_arrays) { | 1332 if (FLAG_harmony_typed_arrays) { |
| 1331 // -- T y p e d A r r a y s | 1333 // -- T y p e d A r r a y s |
| 1332 Handle<JSFunction> int8_fun = InstallTypedArray("Int8Array", | 1334 Handle<JSFunction> int8_fun = InstallTypedArray("Int8Array", |
| 1333 EXTERNAL_BYTE_ELEMENTS); | 1335 EXTERNAL_BYTE_ELEMENTS); |
| 1334 native_context()->set_int8_array_fun(*int8_fun); | 1336 native_context()->set_int8_array_fun(*int8_fun); |
| 1335 Handle<JSFunction> uint8_fun = InstallTypedArray("Uint8Array", | 1337 Handle<JSFunction> uint8_fun = InstallTypedArray("Uint8Array", |
| 1336 EXTERNAL_UNSIGNED_BYTE_ELEMENTS); | 1338 EXTERNAL_UNSIGNED_BYTE_ELEMENTS); |
| (...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2630 return from + sizeof(NestingCounterType); | 2632 return from + sizeof(NestingCounterType); |
| 2631 } | 2633 } |
| 2632 | 2634 |
| 2633 | 2635 |
| 2634 // Called when the top-level V8 mutex is destroyed. | 2636 // Called when the top-level V8 mutex is destroyed. |
| 2635 void Bootstrapper::FreeThreadResources() { | 2637 void Bootstrapper::FreeThreadResources() { |
| 2636 ASSERT(!IsActive()); | 2638 ASSERT(!IsActive()); |
| 2637 } | 2639 } |
| 2638 | 2640 |
| 2639 } } // namespace v8::internal | 2641 } } // namespace v8::internal |
| OLD | NEW |