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 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1188 | 1188 |
1189 // Initialize the data slot. | 1189 // Initialize the data slot. |
1190 global_context()->set_data(heap->undefined_value()); | 1190 global_context()->set_data(heap->undefined_value()); |
1191 } | 1191 } |
1192 | 1192 |
1193 | 1193 |
1194 void Genesis::InitializeExperimentalGlobal() { | 1194 void Genesis::InitializeExperimentalGlobal() { |
1195 Isolate* isolate = this->isolate(); | 1195 Isolate* isolate = this->isolate(); |
1196 Handle<JSObject> global = Handle<JSObject>(global_context()->global()); | 1196 Handle<JSObject> global = Handle<JSObject>(global_context()->global()); |
1197 | 1197 |
1198 // TODO (mstarzinger): Move this into Genesis::InitializeGlobal once we no | 1198 // TODO(mstarzinger): Move this into Genesis::InitializeGlobal once we no |
1199 // longer need to live behind a flag, so WeakMap gets added to the snapshot. | 1199 // longer need to live behind a flag, so WeakMap gets added to the snapshot. |
1200 if (FLAG_harmony_weakmaps) { // -- W e a k M a p | 1200 if (FLAG_harmony_weakmaps) { // -- W e a k M a p |
1201 Handle<JSFunction> weakmap_fun = | 1201 Handle<JSFunction> weakmap_fun = |
1202 InstallFunction(global, "WeakMap", JS_WEAK_MAP_TYPE, JSWeakMap::kSize, | 1202 InstallFunction(global, "WeakMap", JS_WEAK_MAP_TYPE, JSWeakMap::kSize, |
1203 isolate->initial_object_prototype(), | 1203 isolate->initial_object_prototype(), |
1204 Builtins::kIllegal, true); | 1204 Builtins::kIllegal, true); |
1205 } | 1205 } |
1206 } | 1206 } |
1207 | 1207 |
1208 | 1208 |
(...skipping 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2220 return from + sizeof(NestingCounterType); | 2220 return from + sizeof(NestingCounterType); |
2221 } | 2221 } |
2222 | 2222 |
2223 | 2223 |
2224 // Called when the top-level V8 mutex is destroyed. | 2224 // Called when the top-level V8 mutex is destroyed. |
2225 void Bootstrapper::FreeThreadResources() { | 2225 void Bootstrapper::FreeThreadResources() { |
2226 ASSERT(!IsActive()); | 2226 ASSERT(!IsActive()); |
2227 } | 2227 } |
2228 | 2228 |
2229 } } // namespace v8::internal | 2229 } } // namespace v8::internal |
OLD | NEW |