| 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 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 940 READ_ONLY)); | 940 READ_ONLY)); |
| 941 | 941 |
| 942 Handle<Map> string_map = | 942 Handle<Map> string_map = |
| 943 Handle<Map>(global_context()->string_function()->initial_map()); | 943 Handle<Map>(global_context()->string_function()->initial_map()); |
| 944 string_map->set_instance_descriptors(*string_descriptors); | 944 string_map->set_instance_descriptors(*string_descriptors); |
| 945 } | 945 } |
| 946 | 946 |
| 947 { // --- D a t e --- | 947 { // --- D a t e --- |
| 948 // Builtin functions for Date.prototype. | 948 // Builtin functions for Date.prototype. |
| 949 Handle<JSFunction> date_fun = | 949 Handle<JSFunction> date_fun = |
| 950 InstallFunction(global, "Date", JS_VALUE_TYPE, JSValue::kSize, | 950 InstallFunction(global, "Date", JS_DATE_TYPE, JSDate::kSize, |
| 951 isolate->initial_object_prototype(), | 951 isolate->initial_object_prototype(), |
| 952 Builtins::kIllegal, true); | 952 Builtins::kIllegal, true); |
| 953 | 953 |
| 954 global_context()->set_date_function(*date_fun); | 954 global_context()->set_date_function(*date_fun); |
| 955 } | 955 } |
| 956 | 956 |
| 957 | 957 |
| 958 { // -- R e g E x p | 958 { // -- R e g E x p |
| 959 // Builtin functions for RegExp.prototype. | 959 // Builtin functions for RegExp.prototype. |
| 960 Handle<JSFunction> regexp_fun = | 960 Handle<JSFunction> regexp_fun = |
| (...skipping 1413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2374 return from + sizeof(NestingCounterType); | 2374 return from + sizeof(NestingCounterType); |
| 2375 } | 2375 } |
| 2376 | 2376 |
| 2377 | 2377 |
| 2378 // Called when the top-level V8 mutex is destroyed. | 2378 // Called when the top-level V8 mutex is destroyed. |
| 2379 void Bootstrapper::FreeThreadResources() { | 2379 void Bootstrapper::FreeThreadResources() { |
| 2380 ASSERT(!IsActive()); | 2380 ASSERT(!IsActive()); |
| 2381 } | 2381 } |
| 2382 | 2382 |
| 2383 } } // namespace v8::internal | 2383 } } // namespace v8::internal |
| OLD | NEW |