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

Side by Side Diff: src/date.js

Issue 1306993003: Call JS functions via native context instead of js builtins object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 3 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
« no previous file with comments | « src/contexts.cc ('k') | src/full-codegen/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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var $createDate; 5 var $createDate;
6 6
7 // ------------------------------------------------------------------- 7 // -------------------------------------------------------------------
8 8
9 (function(global, utils) { 9 (function(global, utils) {
10 10
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 "setFullYear", DateSetFullYear, 876 "setFullYear", DateSetFullYear,
877 "setUTCFullYear", DateSetUTCFullYear, 877 "setUTCFullYear", DateSetUTCFullYear,
878 "toGMTString", DateToGMTString, 878 "toGMTString", DateToGMTString,
879 "toUTCString", DateToUTCString, 879 "toUTCString", DateToUTCString,
880 "getYear", DateGetYear, 880 "getYear", DateGetYear,
881 "setYear", DateSetYear, 881 "setYear", DateSetYear,
882 "toISOString", DateToISOString, 882 "toISOString", DateToISOString,
883 "toJSON", DateToJSON 883 "toJSON", DateToJSON
884 ]); 884 ]);
885 885
886 utils.ExportToRuntime(function(to) { 886 %InstallToContext(["create_date_fun", CreateDate]);
887 to["create_date_fun"] = CreateDate;
888 });
889 887
890 }) 888 })
OLDNEW
« no previous file with comments | « src/contexts.cc ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698