Commit 4ac19c38 authored by Frank Tang's avatar Frank Tang Committed by Commit Bot

Reland "[Intl] remove unused js"

This is a reland of 2dc505a4

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: 's avatarSathya Gunasekaran <gsathya@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55415}
parent 969a0548
...@@ -26,7 +26,6 @@ var GlobalIntlNumberFormat = GlobalIntl.NumberFormat; ...@@ -26,7 +26,6 @@ var GlobalIntlNumberFormat = GlobalIntl.NumberFormat;
var GlobalIntlCollator = GlobalIntl.Collator; var GlobalIntlCollator = GlobalIntl.Collator;
var GlobalIntlPluralRules = GlobalIntl.PluralRules; var GlobalIntlPluralRules = GlobalIntl.PluralRules;
var GlobalIntlv8BreakIterator = GlobalIntl.v8BreakIterator; var GlobalIntlv8BreakIterator = GlobalIntl.v8BreakIterator;
var GlobalNumber = global.Number;
var GlobalRegExp = global.RegExp; var GlobalRegExp = global.RegExp;
var GlobalString = global.String; var GlobalString = global.String;
var GlobalArray = global.Array; var GlobalArray = global.Array;
...@@ -39,7 +38,6 @@ var patternSymbol = utils.ImportNow("intl_pattern_symbol"); ...@@ -39,7 +38,6 @@ var patternSymbol = utils.ImportNow("intl_pattern_symbol");
var resolvedSymbol = utils.ImportNow("intl_resolved_symbol"); var resolvedSymbol = utils.ImportNow("intl_resolved_symbol");
var StringSubstr = GlobalString.prototype.substr; var StringSubstr = GlobalString.prototype.substr;
var StringSubstring = GlobalString.prototype.substring; var StringSubstring = GlobalString.prototype.substring;
var ArraySlice = GlobalArray.prototype.slice;
utils.Import(function(from) { utils.Import(function(from) {
ArrayJoin = from.ArrayJoin; ArrayJoin = from.ArrayJoin;
...@@ -48,18 +46,10 @@ utils.Import(function(from) { ...@@ -48,18 +46,10 @@ utils.Import(function(from) {
// Utilities for definitions // Utilities for definitions
macro IS_OBJECT(arg)
(typeof(arg) === 'object')
endmacro
macro NUMBER_IS_NAN(arg) macro NUMBER_IS_NAN(arg)
(%IS_VAR(arg) !== arg) (%IS_VAR(arg) !== arg)
endmacro 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. // To avoid ES2015 Function name inference.
macro ANONYMOUS_FUNCTION(fn) macro ANONYMOUS_FUNCTION(fn)
...@@ -524,17 +514,6 @@ function getAvailableLocalesOf(service) { ...@@ -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. * Defines a property and sets writable, enumerable and configurable to true.
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment