Index: src/runtime/runtime-i18n.cc |
diff --git a/src/runtime/runtime-i18n.cc b/src/runtime/runtime-i18n.cc |
index 5e016515448d6a0c8ce790491556915cd88d1229..c39dbe3022d9807c681ff250886cc346328b8f05 100644 |
--- a/src/runtime/runtime-i18n.cc |
+++ b/src/runtime/runtime-i18n.cc |
@@ -9,6 +9,7 @@ |
#include "src/api-natives.h" |
#include "src/arguments.h" |
#include "src/i18n.h" |
+#include "src/messages.h" |
#include "src/runtime/runtime-utils.h" |
#include "unicode/brkiter.h" |
@@ -234,7 +235,7 @@ RUNTIME_FUNCTION(Runtime_IsInitializedIntlObject) { |
Handle<JSObject> obj = Handle<JSObject>::cast(input); |
Handle<Symbol> marker = isolate->factory()->intl_initialized_marker_symbol(); |
- Handle<Object> tag = JSObject::GetDataProperty(obj, marker); |
+ Handle<Object> tag = JSReceiver::GetDataProperty(obj, marker); |
return isolate->heap()->ToBoolean(!tag->IsUndefined()); |
} |
@@ -251,7 +252,7 @@ RUNTIME_FUNCTION(Runtime_IsInitializedIntlObjectOfType) { |
Handle<JSObject> obj = Handle<JSObject>::cast(input); |
Handle<Symbol> marker = isolate->factory()->intl_initialized_marker_symbol(); |
- Handle<Object> tag = JSObject::GetDataProperty(obj, marker); |
+ Handle<Object> tag = JSReceiver::GetDataProperty(obj, marker); |
return isolate->heap()->ToBoolean(tag->IsString() && |
String::cast(*tag)->Equals(*expected_type)); |
} |
@@ -281,23 +282,21 @@ RUNTIME_FUNCTION(Runtime_GetImplFromInitializedIntlObject) { |
DCHECK(args.length() == 1); |
- CONVERT_ARG_HANDLE_CHECKED(Object, input, 0); |
+ CONVERT_ARG_HANDLE_CHECKED(JSObject, input, 0); |
if (!input->IsJSObject()) { |
- Vector<Handle<Object> > arguments = HandleVector(&input, 1); |
- THROW_NEW_ERROR_RETURN_FAILURE(isolate, |
- NewTypeError("not_intl_object", arguments)); |
+ THROW_NEW_ERROR_RETURN_FAILURE( |
+ isolate, NewTypeError(MessageTemplate::kNotIntlObject, input)); |
} |
Handle<JSObject> obj = Handle<JSObject>::cast(input); |
Handle<Symbol> marker = isolate->factory()->intl_impl_object_symbol(); |
- Handle<Object> impl = JSObject::GetDataProperty(obj, marker); |
+ Handle<Object> impl = JSReceiver::GetDataProperty(obj, marker); |
if (impl->IsTheHole()) { |
- Vector<Handle<Object> > arguments = HandleVector(&obj, 1); |
- THROW_NEW_ERROR_RETURN_FAILURE(isolate, |
- NewTypeError("not_intl_object", arguments)); |
+ THROW_NEW_ERROR_RETURN_FAILURE( |
+ isolate, NewTypeError(MessageTemplate::kNotIntlObject, obj)); |
} |
return *impl; |
} |