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 4729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4740 | 4740 |
4741 | 4741 |
4742 void v8::Date::DateTimeConfigurationChangeNotification() { | 4742 void v8::Date::DateTimeConfigurationChangeNotification() { |
4743 i::Isolate* isolate = i::Isolate::Current(); | 4743 i::Isolate* isolate = i::Isolate::Current(); |
4744 ON_BAILOUT(isolate, "v8::Date::DateTimeConfigurationChangeNotification()", | 4744 ON_BAILOUT(isolate, "v8::Date::DateTimeConfigurationChangeNotification()", |
4745 return); | 4745 return); |
4746 LOG_API(isolate, "Date::DateTimeConfigurationChangeNotification"); | 4746 LOG_API(isolate, "Date::DateTimeConfigurationChangeNotification"); |
4747 ENTER_V8(isolate); | 4747 ENTER_V8(isolate); |
4748 | 4748 |
4749 i::HandleScope scope(isolate); | 4749 i::HandleScope scope(isolate); |
4750 // Get the function ResetDateCache (defined in date-delay.js). | 4750 // Get the function ResetDateCache (defined in date.js). |
4751 i::Handle<i::String> func_name_str = | 4751 i::Handle<i::String> func_name_str = |
4752 isolate->factory()->LookupAsciiSymbol("ResetDateCache"); | 4752 isolate->factory()->LookupAsciiSymbol("ResetDateCache"); |
4753 i::MaybeObject* result = | 4753 i::MaybeObject* result = |
4754 isolate->js_builtins_object()->GetProperty(*func_name_str); | 4754 isolate->js_builtins_object()->GetProperty(*func_name_str); |
4755 i::Object* object_func; | 4755 i::Object* object_func; |
4756 if (!result->ToObject(&object_func)) { | 4756 if (!result->ToObject(&object_func)) { |
4757 return; | 4757 return; |
4758 } | 4758 } |
4759 | 4759 |
4760 if (object_func->IsJSFunction()) { | 4760 if (object_func->IsJSFunction()) { |
(...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6194 | 6194 |
6195 | 6195 |
6196 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 6196 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
6197 HandleScopeImplementer* scope_implementer = | 6197 HandleScopeImplementer* scope_implementer = |
6198 reinterpret_cast<HandleScopeImplementer*>(storage); | 6198 reinterpret_cast<HandleScopeImplementer*>(storage); |
6199 scope_implementer->IterateThis(v); | 6199 scope_implementer->IterateThis(v); |
6200 return storage + ArchiveSpacePerThread(); | 6200 return storage + ArchiveSpacePerThread(); |
6201 } | 6201 } |
6202 | 6202 |
6203 } } // namespace v8::internal | 6203 } } // namespace v8::internal |
OLD | NEW |