[Intl] Use Intl::BoundFunctionContextSlot::kBoundFunction instead.

Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng;luci.chromium.try:linux_chromium_rel_ng

Bug: v8:7979
Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng
Change-Id: Ic390fbde6e04e86b8e284975c13c1eff8dc59e90
Reviewed-on: https://chromium-review.googlesource.com/1205411
Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55622}
This commit is contained in:
Frank Tang 2018-09-04 14:27:08 -07:00 committed by Commit Bot
parent 9c7ec98a90
commit 3110b59253
2 changed files with 2 additions and 12 deletions

View File

@ -690,8 +690,8 @@ BUILTIN(NumberFormatInternalFormatNumber) {
// 2. Assert: Type(nf) is Object and nf has an
// [[InitializedNumberFormat]] internal slot.
Handle<JSNumberFormat> number_format = Handle<JSNumberFormat>(
JSNumberFormat::cast(
context->get(JSNumberFormat::ContextSlot::kNumberFormat)),
JSNumberFormat::cast(context->get(
static_cast<int>(Intl::BoundFunctionContextSlot::kBoundFunction))),
isolate);
// 3. If value is not provided, let value be undefined.

View File

@ -107,16 +107,6 @@ class JSNumberFormat : public JSObject {
DECL_ACCESSORS(bound_format, Object)
DECL_INT_ACCESSORS(flags)
// ContextSlot defines the context structure for the bound
// NumberFormat.prototype.format function.
enum ContextSlot {
// The number format instance that the function holding this
// context is bound to.
kNumberFormat = Context::MIN_CONTEXT_SLOTS,
kLength
};
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(JSNumberFormat);
};