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

Unified Diff: src/i18n.js

Issue 1266013006: [stubs] Unify (and optimize) implementation of ToObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add missing support for %_ToObject in TurboFan and Crankshaft. Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/i18n.js
diff --git a/src/i18n.js b/src/i18n.js
index 6b6d4afa63b43f2495068abf9c691818eb7d1f39..1028bbb07b3d70706290848f14110d4bee8d7dd5 100644
--- a/src/i18n.js
+++ b/src/i18n.js
@@ -251,7 +251,7 @@ function supportedLocalesOf(service, locales, options) {
if (IS_UNDEFINED(options)) {
options = {};
} else {
- options = $toObject(options);
+ options = TO_OBJECT(options);
}
var matcher = options.localeMatcher;
@@ -717,7 +717,7 @@ function initializeLocaleList(locales) {
return freezeArray(seen);
}
- var o = $toObject(locales);
+ var o = TO_OBJECT(locales);
var len = TO_UINT32(o.length);
for (var k = 0; k < len; k++) {
@@ -951,7 +951,7 @@ function initializeCollator(collator, locales, options) {
return new Intl.Collator(locales, options);
}
- return initializeCollator($toObject(this), locales, options);
+ return initializeCollator(TO_OBJECT(this), locales, options);
},
DONT_ENUM
);
@@ -1192,7 +1192,7 @@ function initializeNumberFormat(numberFormat, locales, options) {
return new Intl.NumberFormat(locales, options);
}
- return initializeNumberFormat($toObject(this), locales, options);
+ return initializeNumberFormat(TO_OBJECT(this), locales, options);
},
DONT_ENUM
);
@@ -1444,7 +1444,7 @@ function toDateTimeOptions(options, required, defaults) {
if (IS_UNDEFINED(options)) {
options = {};
} else {
- options = TO_OBJECT_INLINE(options);
+ options = TO_OBJECT(options);
}
var needsDefault = true;
@@ -1594,7 +1594,7 @@ function initializeDateTimeFormat(dateFormat, locales, options) {
return new Intl.DateTimeFormat(locales, options);
}
- return initializeDateTimeFormat($toObject(this), locales, options);
+ return initializeDateTimeFormat(TO_OBJECT(this), locales, options);
},
DONT_ENUM
);
@@ -1814,7 +1814,7 @@ function initializeBreakIterator(iterator, locales, options) {
return new Intl.v8BreakIterator(locales, options);
}
- return initializeBreakIterator($toObject(this), locales, options);
+ return initializeBreakIterator(TO_OBJECT(this), locales, options);
},
DONT_ENUM
);
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698