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 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1306 factory->NewFunction(factory->empty_string(), JS_OBJECT_TYPE, | 1306 factory->NewFunction(factory->empty_string(), JS_OBJECT_TYPE, |
1307 JSObject::kHeaderSize, code, true); | 1307 JSObject::kHeaderSize, code, true); |
1308 native_context()->set_call_as_constructor_delegate(*delegate); | 1308 native_context()->set_call_as_constructor_delegate(*delegate); |
1309 delegate->shared()->DontAdaptArguments(); | 1309 delegate->shared()->DontAdaptArguments(); |
1310 } | 1310 } |
1311 | 1311 |
1312 // Initialize the out of memory slot. | 1312 // Initialize the out of memory slot. |
1313 native_context()->set_out_of_memory(heap->false_value()); | 1313 native_context()->set_out_of_memory(heap->false_value()); |
1314 | 1314 |
1315 // Initialize the embedder data slot. | 1315 // Initialize the embedder data slot. |
1316 Handle<FixedArray> embedder_data = factory->NewFixedArray(2); | 1316 Handle<FixedArray> embedder_data = factory->NewFixedArray(3); |
1317 native_context()->set_embedder_data(*embedder_data); | 1317 native_context()->set_embedder_data(*embedder_data); |
1318 } | 1318 } |
1319 | 1319 |
1320 | 1320 |
1321 Handle<JSFunction> Genesis::InstallTypedArray( | 1321 Handle<JSFunction> Genesis::InstallTypedArray( |
1322 const char* name, ElementsKind elementsKind) { | 1322 const char* name, ElementsKind elementsKind) { |
1323 Handle<JSObject> global = Handle<JSObject>(native_context()->global_object()); | 1323 Handle<JSObject> global = Handle<JSObject>(native_context()->global_object()); |
1324 Handle<JSFunction> result = InstallFunction(global, name, JS_TYPED_ARRAY_TYPE, | 1324 Handle<JSFunction> result = InstallFunction(global, name, JS_TYPED_ARRAY_TYPE, |
1325 JSTypedArray::kSize, isolate()->initial_object_prototype(), | 1325 JSTypedArray::kSize, isolate()->initial_object_prototype(), |
1326 Builtins::kIllegal, false, true); | 1326 Builtins::kIllegal, false, true); |
(...skipping 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2706 return from + sizeof(NestingCounterType); | 2706 return from + sizeof(NestingCounterType); |
2707 } | 2707 } |
2708 | 2708 |
2709 | 2709 |
2710 // Called when the top-level V8 mutex is destroyed. | 2710 // Called when the top-level V8 mutex is destroyed. |
2711 void Bootstrapper::FreeThreadResources() { | 2711 void Bootstrapper::FreeThreadResources() { |
2712 ASSERT(!IsActive()); | 2712 ASSERT(!IsActive()); |
2713 } | 2713 } |
2714 | 2714 |
2715 } } // namespace v8::internal | 2715 } } // namespace v8::internal |
OLD | NEW |