Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: src/api.cc

Issue 9572008: Implement date library functions in C++. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/SConscript ('k') | src/arm/full-codegen-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
4740 } 4740 }
4741 4741
4742 4742
4743 void v8::Date::DateTimeConfigurationChangeNotification() { 4743 void v8::Date::DateTimeConfigurationChangeNotification() {
4744 i::Isolate* isolate = i::Isolate::Current(); 4744 i::Isolate* isolate = i::Isolate::Current();
4745 ON_BAILOUT(isolate, "v8::Date::DateTimeConfigurationChangeNotification()", 4745 ON_BAILOUT(isolate, "v8::Date::DateTimeConfigurationChangeNotification()",
4746 return); 4746 return);
4747 LOG_API(isolate, "Date::DateTimeConfigurationChangeNotification"); 4747 LOG_API(isolate, "Date::DateTimeConfigurationChangeNotification");
4748 ENTER_V8(isolate); 4748 ENTER_V8(isolate);
4749 4749
4750 isolate->date_cache()->ResetDateCache();
4751
4750 i::HandleScope scope(isolate); 4752 i::HandleScope scope(isolate);
4751 // Get the function ResetDateCache (defined in date.js). 4753 // Get the function ResetDateCache (defined in date.js).
4752 i::Handle<i::String> func_name_str = 4754 i::Handle<i::String> func_name_str =
4753 isolate->factory()->LookupAsciiSymbol("ResetDateCache"); 4755 isolate->factory()->LookupAsciiSymbol("ResetDateCache");
4754 i::MaybeObject* result = 4756 i::MaybeObject* result =
4755 isolate->js_builtins_object()->GetProperty(*func_name_str); 4757 isolate->js_builtins_object()->GetProperty(*func_name_str);
4756 i::Object* object_func; 4758 i::Object* object_func;
4757 if (!result->ToObject(&object_func)) { 4759 if (!result->ToObject(&object_func)) {
4758 return; 4760 return;
4759 } 4761 }
(...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after
6200 6202
6201 6203
6202 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 6204 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
6203 HandleScopeImplementer* scope_implementer = 6205 HandleScopeImplementer* scope_implementer =
6204 reinterpret_cast<HandleScopeImplementer*>(storage); 6206 reinterpret_cast<HandleScopeImplementer*>(storage);
6205 scope_implementer->IterateThis(v); 6207 scope_implementer->IterateThis(v);
6206 return storage + ArchiveSpacePerThread(); 6208 return storage + ArchiveSpacePerThread();
6207 } 6209 }
6208 6210
6209 } } // namespace v8::internal 6211 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/SConscript ('k') | src/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698