Commit 3110b592 authored by Frank Tang's avatar Frank Tang Committed by Commit Bot

[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/1205411Reviewed-by: 's avatarSathya Gunasekaran <gsathya@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55622}
parent 9c7ec98a
......@@ -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.
......
......@@ -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);
};
......
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