| Index: src/extensions/i18n/locale.h
|
| diff --git a/src/a64/frames-a64.cc b/src/extensions/i18n/locale.h
|
| similarity index 61%
|
| copy from src/a64/frames-a64.cc
|
| copy to src/extensions/i18n/locale.h
|
| index b1764e0c5fc4b2d8dc4567931990170da2dccaa0..c39568e5d9d69104b8b4d3dbb35ca197a813c9a3 100644
|
| --- a/src/a64/frames-a64.cc
|
| +++ b/src/extensions/i18n/locale.h
|
| @@ -24,28 +24,33 @@
|
| // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| +// limitations under the License.
|
|
|
| -#include "v8.h"
|
| -
|
| -#if defined(V8_TARGET_ARCH_A64)
|
| +#ifndef V8_EXTENSIONS_I18N_SRC_LOCALE_H_
|
| +#define V8_EXTENSIONS_I18N_SRC_LOCALE_H_
|
|
|
| -#include "assembler.h"
|
| -#include "assembler-a64.h"
|
| -#include "assembler-a64-inl.h"
|
| -#include "frames.h"
|
| -
|
| -namespace v8 {
|
| -namespace internal {
|
| +#include "unicode/uversion.h"
|
| +#include "v8.h"
|
|
|
| +namespace v8_i18n {
|
|
|
| -Register JavaScriptFrame::fp_register() { return v8::internal::fp; }
|
| -Register JavaScriptFrame::context_register() { return cp; }
|
| +// Canonicalizes the BCP47 language tag using BCP47 rules.
|
| +// Returns 'invalid-tag' in case input was not well formed.
|
| +void JSCanonicalizeLanguageTag(const v8::FunctionCallbackInfo<v8::Value>& args);
|
|
|
| +// Returns a list of available locales for collator, date or number formatter.
|
| +void JSAvailableLocalesOf(const v8::FunctionCallbackInfo<v8::Value>& args);
|
|
|
| -Register StubFailureTrampolineFrame::fp_register() { return v8::internal::fp; }
|
| -Register StubFailureTrampolineFrame::context_register() { return cp; }
|
| +// Returns default ICU locale.
|
| +void JSGetDefaultICULocale(const v8::FunctionCallbackInfo<v8::Value>& args);
|
|
|
| +// Returns an array of objects, that have maximized and base names of inputs.
|
| +// Unicode extensions are dropped from both.
|
| +// Input: ['zh-TW-u-nu-thai', 'sr']
|
| +// Output: [{maximized: 'zh-Hant-TW', base: 'zh-TW'},
|
| +// {maximized: 'sr-Cyrl-RS', base: 'sr'}]
|
| +void JSGetLanguageTagVariants(const v8::FunctionCallbackInfo<v8::Value>& args);
|
|
|
| -} } // namespace v8::internal
|
| +} // namespace v8_i18n
|
|
|
| -#endif // V8_TARGET_ARCH_A64
|
| +#endif // V8_EXTENSIONS_I18N_LOCALE_H_
|
|
|