Reland "[Intl] remove unused js"
This is a reland of 2dc505a418
Original change's description:
> [Intl] remove unused js
>
> Bug: v8:8066
> Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng
> Change-Id: I9d86577540cf227e038354d9661c60fcdc644b3f
> Reviewed-on: https://chromium-review.googlesource.com/1179467
> Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org>
> Commit-Queue: Frank Tang <ftang@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#55200}
Bug: v8:8066
Change-Id: Id1f63c2e9c855250a7af01c1e0877296c0320d20
Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng
Reviewed-on: https://chromium-review.googlesource.com/1185762
Commit-Queue: Sathya Gunasekaran <gsathya@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55415}
This commit is contained in:
parent
969a0548d1
commit
4ac19c3882
@ -26,7 +26,6 @@ var GlobalIntlNumberFormat = GlobalIntl.NumberFormat;
|
||||
var GlobalIntlCollator = GlobalIntl.Collator;
|
||||
var GlobalIntlPluralRules = GlobalIntl.PluralRules;
|
||||
var GlobalIntlv8BreakIterator = GlobalIntl.v8BreakIterator;
|
||||
var GlobalNumber = global.Number;
|
||||
var GlobalRegExp = global.RegExp;
|
||||
var GlobalString = global.String;
|
||||
var GlobalArray = global.Array;
|
||||
@ -39,7 +38,6 @@ var patternSymbol = utils.ImportNow("intl_pattern_symbol");
|
||||
var resolvedSymbol = utils.ImportNow("intl_resolved_symbol");
|
||||
var StringSubstr = GlobalString.prototype.substr;
|
||||
var StringSubstring = GlobalString.prototype.substring;
|
||||
var ArraySlice = GlobalArray.prototype.slice;
|
||||
|
||||
utils.Import(function(from) {
|
||||
ArrayJoin = from.ArrayJoin;
|
||||
@ -48,18 +46,10 @@ utils.Import(function(from) {
|
||||
|
||||
// Utilities for definitions
|
||||
|
||||
macro IS_OBJECT(arg)
|
||||
(typeof(arg) === 'object')
|
||||
endmacro
|
||||
|
||||
macro NUMBER_IS_NAN(arg)
|
||||
(%IS_VAR(arg) !== arg)
|
||||
endmacro
|
||||
|
||||
macro NUMBER_IS_FINITE(arg)
|
||||
(%_IsSmi(%IS_VAR(arg)) || ((arg == arg) && (arg != 1/0) && (arg != -1/0)))
|
||||
endmacro
|
||||
|
||||
// To avoid ES2015 Function name inference.
|
||||
|
||||
macro ANONYMOUS_FUNCTION(fn)
|
||||
@ -524,17 +514,6 @@ function getAvailableLocalesOf(service) {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Adds property to an object if the value is not undefined.
|
||||
* Sets configurable descriptor to false.
|
||||
*/
|
||||
function addWEPropertyIfDefined(object, property, value) {
|
||||
if (!IS_UNDEFINED(value)) {
|
||||
%DefineWEProperty(object, property, value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Defines a property and sets writable, enumerable and configurable to true.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user