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

Side by Side Diff: src/bootstrapper.cc

Issue 1709373002: Make Date.prototype.toGMTString an alias for Date.prototype.toUTCString (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix test Created 4 years, 10 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 | « no previous file | test/mjsunit/function-names.js » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #include "src/bootstrapper.h" 5 #include "src/bootstrapper.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/extensions/externalize-string-extension.h" 10 #include "src/extensions/externalize-string-extension.h"
(...skipping 1321 matching lines...) Expand 10 before | Expand all | Expand 10 after
1332 JSObject::AddProperty(prototype, factory->constructor_string(), date_fun, 1332 JSObject::AddProperty(prototype, factory->constructor_string(), date_fun,
1333 DONT_ENUM); 1333 DONT_ENUM);
1334 1334
1335 // Install the Date.prototype methods. 1335 // Install the Date.prototype methods.
1336 SimpleInstallFunction(prototype, "toString", 1336 SimpleInstallFunction(prototype, "toString",
1337 Builtins::kDatePrototypeToString, 0, false); 1337 Builtins::kDatePrototypeToString, 0, false);
1338 SimpleInstallFunction(prototype, "toDateString", 1338 SimpleInstallFunction(prototype, "toDateString",
1339 Builtins::kDatePrototypeToDateString, 0, false); 1339 Builtins::kDatePrototypeToDateString, 0, false);
1340 SimpleInstallFunction(prototype, "toTimeString", 1340 SimpleInstallFunction(prototype, "toTimeString",
1341 Builtins::kDatePrototypeToTimeString, 0, false); 1341 Builtins::kDatePrototypeToTimeString, 0, false);
1342 SimpleInstallFunction(prototype, "toGMTString",
1343 Builtins::kDatePrototypeToUTCString, 0, false);
1344 SimpleInstallFunction(prototype, "toISOString", 1342 SimpleInstallFunction(prototype, "toISOString",
1345 Builtins::kDatePrototypeToISOString, 0, false); 1343 Builtins::kDatePrototypeToISOString, 0, false);
1346 SimpleInstallFunction(prototype, "toUTCString", 1344 Handle<JSFunction> to_utc_string =
1347 Builtins::kDatePrototypeToUTCString, 0, false); 1345 SimpleInstallFunction(prototype, "toUTCString",
1346 Builtins::kDatePrototypeToUTCString, 0, false);
1347 InstallFunction(prototype, to_utc_string,
1348 factory->InternalizeUtf8String("toGMTString"), DONT_ENUM);
1348 SimpleInstallFunction(prototype, "getDate", Builtins::kDatePrototypeGetDate, 1349 SimpleInstallFunction(prototype, "getDate", Builtins::kDatePrototypeGetDate,
1349 0, true); 1350 0, true);
1350 SimpleInstallFunction(prototype, "setDate", Builtins::kDatePrototypeSetDate, 1351 SimpleInstallFunction(prototype, "setDate", Builtins::kDatePrototypeSetDate,
1351 1, false); 1352 1, false);
1352 SimpleInstallFunction(prototype, "getDay", Builtins::kDatePrototypeGetDay, 1353 SimpleInstallFunction(prototype, "getDay", Builtins::kDatePrototypeGetDay,
1353 0, true); 1354 0, true);
1354 SimpleInstallFunction(prototype, "getFullYear", 1355 SimpleInstallFunction(prototype, "getFullYear",
1355 Builtins::kDatePrototypeGetFullYear, 0, true); 1356 Builtins::kDatePrototypeGetFullYear, 0, true);
1356 SimpleInstallFunction(prototype, "setFullYear", 1357 SimpleInstallFunction(prototype, "setFullYear",
1357 Builtins::kDatePrototypeSetFullYear, 3, false); 1358 Builtins::kDatePrototypeSetFullYear, 3, false);
(...skipping 2316 matching lines...) Expand 10 before | Expand all | Expand 10 after
3674 } 3675 }
3675 3676
3676 3677
3677 // Called when the top-level V8 mutex is destroyed. 3678 // Called when the top-level V8 mutex is destroyed.
3678 void Bootstrapper::FreeThreadResources() { 3679 void Bootstrapper::FreeThreadResources() {
3679 DCHECK(!IsActive()); 3680 DCHECK(!IsActive());
3680 } 3681 }
3681 3682
3682 } // namespace internal 3683 } // namespace internal
3683 } // namespace v8 3684 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/function-names.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698