Commit 97591e39 authored by peterwmwong's avatar peterwmwong Committed by Commit Bot

[builtins] Properly mark transitioning external macros.

Change-Id: Ic31b33ef4c290aee31be2d66295978908f568775
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1563410Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Reviewed-by: 's avatarSimon Zünd <szuend@chromium.org>
Commit-Queue: Peter Wong <peter.wm.wong@gmail.com>
Cr-Commit-Position: refs/heads/master@{#60775}
parent 2048ee8b
...@@ -58,8 +58,8 @@ namespace array_lastindexof { ...@@ -58,8 +58,8 @@ namespace array_lastindexof {
return -1; return -1;
} }
macro GetFromIndex(context: Context, length: Number, arguments: Arguments): transitioning macro
Number { GetFromIndex(context: Context, length: Number, arguments: Arguments): Number {
// 4. If fromIndex is present, let n be ? ToInteger(fromIndex); // 4. If fromIndex is present, let n be ? ToInteger(fromIndex);
// else let n be len - 1. // else let n be len - 1.
const n: Number = arguments.length < 2 ? const n: Number = arguments.length < 2 ?
......
...@@ -925,17 +925,18 @@ extern macro Print(constexpr string, Object); ...@@ -925,17 +925,18 @@ extern macro Print(constexpr string, Object);
extern macro Comment(constexpr string); extern macro Comment(constexpr string);
extern macro Print(Object); extern macro Print(Object);
extern macro DebugBreak(); extern macro DebugBreak();
extern macro ToInteger_Inline(Context, Object): Number; extern transitioning macro ToInteger_Inline(Context, Object): Number;
extern macro ToInteger_Inline( extern transitioning macro ToInteger_Inline(
Context, Object, constexpr ToIntegerTruncationMode): Number; Context, Object, constexpr ToIntegerTruncationMode): Number;
extern macro ToLength_Inline(Context, Object): Number; extern transitioning macro ToLength_Inline(Context, Object): Number;
extern macro ToNumber_Inline(Context, Object): Number; extern transitioning macro ToNumber_Inline(Context, Object): Number;
extern macro ToSmiIndex(implicit context: Context)(Object): PositiveSmi extern transitioning macro ToSmiIndex(implicit context: Context)(Object):
labels IfRangeError; PositiveSmi labels IfRangeError;
extern macro ToSmiLength(implicit context: Context)(Object): PositiveSmi extern transitioning macro ToSmiLength(implicit context: Context)(Object):
labels IfRangeError; PositiveSmi labels IfRangeError;
extern macro ToString_Inline(Context, Object): String; extern transitioning macro ToString_Inline(Context, Object): String;
extern macro ToThisString(implicit context: Context)(Object, String): String; extern transitioning macro ToThisString(implicit context: Context)(
Object, String): String;
extern transitioning macro GetProperty(implicit context: Context)( extern transitioning macro GetProperty(implicit context: Context)(
Object, Object): Object; Object, Object): Object;
extern transitioning builtin SetProperty(implicit context: Context)( extern transitioning builtin SetProperty(implicit context: Context)(
...@@ -2149,7 +2150,7 @@ macro ToBoolean(obj: Object): bool { ...@@ -2149,7 +2150,7 @@ macro ToBoolean(obj: Object): bool {
} }
} }
macro ToIndex(input: Object, context: Context): Number transitioning macro ToIndex(input: Object, context: Context): Number
labels RangeError { labels RangeError {
if (input == Undefined) { if (input == Undefined) {
return 0; return 0;
......
...@@ -382,7 +382,7 @@ namespace data_view { ...@@ -382,7 +382,7 @@ namespace data_view {
extern macro DataViewBuiltinsAssembler::DataViewElementSize( extern macro DataViewBuiltinsAssembler::DataViewElementSize(
constexpr ElementsKind): constexpr int31; constexpr ElementsKind): constexpr int31;
macro DataViewGet( transitioning macro DataViewGet(
context: Context, receiver: Object, offset: Object, context: Context, receiver: Object, offset: Object,
requestedLittleEndian: Object, kind: constexpr ElementsKind): Numeric { requestedLittleEndian: Object, kind: constexpr ElementsKind): Numeric {
let dataView: JSDataView = let dataView: JSDataView =
...@@ -441,19 +441,19 @@ namespace data_view { ...@@ -441,19 +441,19 @@ namespace data_view {
} }
} }
javascript builtin DataViewPrototypeGetUint8( transitioning javascript builtin DataViewPrototypeGetUint8(
context: Context, receiver: Object, ...arguments): Object { context: Context, receiver: Object, ...arguments): Object {
let offset: Object = arguments.length > 0 ? arguments[0] : Undefined; let offset: Object = arguments.length > 0 ? arguments[0] : Undefined;
return DataViewGet(context, receiver, offset, Undefined, UINT8_ELEMENTS); return DataViewGet(context, receiver, offset, Undefined, UINT8_ELEMENTS);
} }
javascript builtin DataViewPrototypeGetInt8( transitioning javascript builtin DataViewPrototypeGetInt8(
context: Context, receiver: Object, ...arguments): Object { context: Context, receiver: Object, ...arguments): Object {
let offset: Object = arguments.length > 0 ? arguments[0] : Undefined; let offset: Object = arguments.length > 0 ? arguments[0] : Undefined;
return DataViewGet(context, receiver, offset, Undefined, INT8_ELEMENTS); return DataViewGet(context, receiver, offset, Undefined, INT8_ELEMENTS);
} }
javascript builtin DataViewPrototypeGetUint16( transitioning javascript builtin DataViewPrototypeGetUint16(
context: Context, receiver: Object, ...arguments): Object { context: Context, receiver: Object, ...arguments): Object {
let offset: Object = arguments.length > 0 ? arguments[0] : Undefined; let offset: Object = arguments.length > 0 ? arguments[0] : Undefined;
let isLittleEndian: Object = let isLittleEndian: Object =
...@@ -462,7 +462,7 @@ namespace data_view { ...@@ -462,7 +462,7 @@ namespace data_view {
context, receiver, offset, isLittleEndian, UINT16_ELEMENTS); context, receiver, offset, isLittleEndian, UINT16_ELEMENTS);
} }
javascript builtin DataViewPrototypeGetInt16( transitioning javascript builtin DataViewPrototypeGetInt16(
context: Context, receiver: Object, ...arguments): Object { context: Context, receiver: Object, ...arguments): Object {
let offset: Object = arguments.length > 0 ? arguments[0] : Undefined; let offset: Object = arguments.length > 0 ? arguments[0] : Undefined;
let isLittleEndian: Object = let isLittleEndian: Object =
...@@ -471,7 +471,7 @@ namespace data_view { ...@@ -471,7 +471,7 @@ namespace data_view {
context, receiver, offset, isLittleEndian, INT16_ELEMENTS); context, receiver, offset, isLittleEndian, INT16_ELEMENTS);
} }
javascript builtin DataViewPrototypeGetUint32( transitioning javascript builtin DataViewPrototypeGetUint32(
context: Context, receiver: Object, ...arguments): Object { context: Context, receiver: Object, ...arguments): Object {
let offset: Object = arguments.length > 0 ? arguments[0] : Undefined; let offset: Object = arguments.length > 0 ? arguments[0] : Undefined;
let isLittleEndian: Object = let isLittleEndian: Object =
...@@ -480,7 +480,7 @@ namespace data_view { ...@@ -480,7 +480,7 @@ namespace data_view {
context, receiver, offset, isLittleEndian, UINT32_ELEMENTS); context, receiver, offset, isLittleEndian, UINT32_ELEMENTS);
} }
javascript builtin DataViewPrototypeGetInt32( transitioning javascript builtin DataViewPrototypeGetInt32(
context: Context, receiver: Object, ...arguments): Object { context: Context, receiver: Object, ...arguments): Object {
let offset: Object = arguments.length > 0 ? arguments[0] : Undefined; let offset: Object = arguments.length > 0 ? arguments[0] : Undefined;
let isLittleEndian: Object = let isLittleEndian: Object =
...@@ -489,7 +489,7 @@ namespace data_view { ...@@ -489,7 +489,7 @@ namespace data_view {
context, receiver, offset, isLittleEndian, INT32_ELEMENTS); context, receiver, offset, isLittleEndian, INT32_ELEMENTS);
} }
javascript builtin DataViewPrototypeGetFloat32( transitioning javascript builtin DataViewPrototypeGetFloat32(
context: Context, receiver: Object, ...arguments): Object { context: Context, receiver: Object, ...arguments): Object {
let offset: Object = arguments.length > 0 ? arguments[0] : Undefined; let offset: Object = arguments.length > 0 ? arguments[0] : Undefined;
let isLittleEndian: Object = let isLittleEndian: Object =
...@@ -498,7 +498,7 @@ namespace data_view { ...@@ -498,7 +498,7 @@ namespace data_view {
context, receiver, offset, isLittleEndian, FLOAT32_ELEMENTS); context, receiver, offset, isLittleEndian, FLOAT32_ELEMENTS);
} }
javascript builtin DataViewPrototypeGetFloat64( transitioning javascript builtin DataViewPrototypeGetFloat64(
context: Context, receiver: Object, ...arguments): Object { context: Context, receiver: Object, ...arguments): Object {
let offset: Object = arguments.length > 0 ? arguments[0] : Undefined; let offset: Object = arguments.length > 0 ? arguments[0] : Undefined;
let isLittleEndian: Object = let isLittleEndian: Object =
...@@ -507,7 +507,7 @@ namespace data_view { ...@@ -507,7 +507,7 @@ namespace data_view {
context, receiver, offset, isLittleEndian, FLOAT64_ELEMENTS); context, receiver, offset, isLittleEndian, FLOAT64_ELEMENTS);
} }
javascript builtin DataViewPrototypeGetBigUint64( transitioning javascript builtin DataViewPrototypeGetBigUint64(
context: Context, receiver: Object, ...arguments): Object { context: Context, receiver: Object, ...arguments): Object {
let offset: Object = arguments.length > 0 ? arguments[0] : Undefined; let offset: Object = arguments.length > 0 ? arguments[0] : Undefined;
let isLittleEndian: Object = let isLittleEndian: Object =
...@@ -516,7 +516,7 @@ namespace data_view { ...@@ -516,7 +516,7 @@ namespace data_view {
context, receiver, offset, isLittleEndian, BIGUINT64_ELEMENTS); context, receiver, offset, isLittleEndian, BIGUINT64_ELEMENTS);
} }
javascript builtin DataViewPrototypeGetBigInt64( transitioning javascript builtin DataViewPrototypeGetBigInt64(
context: Context, receiver: Object, ...arguments): Object { context: Context, receiver: Object, ...arguments): Object {
let offset: Object = arguments.length > 0 ? arguments[0] : Undefined; let offset: Object = arguments.length > 0 ? arguments[0] : Undefined;
let isLittleEndian: Object = let isLittleEndian: Object =
...@@ -659,7 +659,7 @@ namespace data_view { ...@@ -659,7 +659,7 @@ namespace data_view {
StoreDataView64(buffer, offset, lowWord, highWord, requestedLittleEndian); StoreDataView64(buffer, offset, lowWord, highWord, requestedLittleEndian);
} }
macro DataViewSet( transitioning macro DataViewSet(
context: Context, receiver: Object, offset: Object, value: Object, context: Context, receiver: Object, offset: Object, value: Object,
requestedLittleEndian: Object, kind: constexpr ElementsKind): Object { requestedLittleEndian: Object, kind: constexpr ElementsKind): Object {
let dataView: JSDataView = let dataView: JSDataView =
...@@ -745,7 +745,7 @@ namespace data_view { ...@@ -745,7 +745,7 @@ namespace data_view {
return Undefined; return Undefined;
} }
javascript builtin DataViewPrototypeSetUint8( transitioning javascript builtin DataViewPrototypeSetUint8(
context: Context, receiver: Object, ...arguments): Object { context: Context, receiver: Object, ...arguments): Object {
let offset: Object = arguments.length > 0 ? arguments[0] : Undefined; let offset: Object = arguments.length > 0 ? arguments[0] : Undefined;
let value: Object = arguments.length > 1 ? arguments[1] : Undefined; let value: Object = arguments.length > 1 ? arguments[1] : Undefined;
...@@ -753,7 +753,7 @@ namespace data_view { ...@@ -753,7 +753,7 @@ namespace data_view {
context, receiver, offset, value, Undefined, UINT8_ELEMENTS); context, receiver, offset, value, Undefined, UINT8_ELEMENTS);
} }
javascript builtin DataViewPrototypeSetInt8( transitioning javascript builtin DataViewPrototypeSetInt8(
context: Context, receiver: Object, ...arguments): Object { context: Context, receiver: Object, ...arguments): Object {
let offset: Object = arguments.length > 0 ? arguments[0] : Undefined; let offset: Object = arguments.length > 0 ? arguments[0] : Undefined;
let value: Object = arguments.length > 1 ? arguments[1] : Undefined; let value: Object = arguments.length > 1 ? arguments[1] : Undefined;
...@@ -761,7 +761,7 @@ namespace data_view { ...@@ -761,7 +761,7 @@ namespace data_view {
context, receiver, offset, value, Undefined, INT8_ELEMENTS); context, receiver, offset, value, Undefined, INT8_ELEMENTS);
} }
javascript builtin DataViewPrototypeSetUint16( transitioning javascript builtin DataViewPrototypeSetUint16(
context: Context, receiver: Object, ...arguments): Object { context: Context, receiver: Object, ...arguments): Object {
let offset: Object = arguments.length > 0 ? arguments[0] : Undefined; let offset: Object = arguments.length > 0 ? arguments[0] : Undefined;
let value: Object = arguments.length > 1 ? arguments[1] : Undefined; let value: Object = arguments.length > 1 ? arguments[1] : Undefined;
...@@ -771,7 +771,7 @@ namespace data_view { ...@@ -771,7 +771,7 @@ namespace data_view {
context, receiver, offset, value, isLittleEndian, UINT16_ELEMENTS); context, receiver, offset, value, isLittleEndian, UINT16_ELEMENTS);
} }
javascript builtin DataViewPrototypeSetInt16( transitioning javascript builtin DataViewPrototypeSetInt16(
context: Context, receiver: Object, ...arguments): Object { context: Context, receiver: Object, ...arguments): Object {
let offset: Object = arguments.length > 0 ? arguments[0] : Undefined; let offset: Object = arguments.length > 0 ? arguments[0] : Undefined;
let value: Object = arguments.length > 1 ? arguments[1] : Undefined; let value: Object = arguments.length > 1 ? arguments[1] : Undefined;
...@@ -781,7 +781,7 @@ namespace data_view { ...@@ -781,7 +781,7 @@ namespace data_view {
context, receiver, offset, value, isLittleEndian, INT16_ELEMENTS); context, receiver, offset, value, isLittleEndian, INT16_ELEMENTS);
} }
javascript builtin DataViewPrototypeSetUint32( transitioning javascript builtin DataViewPrototypeSetUint32(
context: Context, receiver: Object, ...arguments): Object { context: Context, receiver: Object, ...arguments): Object {
let offset: Object = arguments.length > 0 ? arguments[0] : Undefined; let offset: Object = arguments.length > 0 ? arguments[0] : Undefined;
let value: Object = arguments.length > 1 ? arguments[1] : Undefined; let value: Object = arguments.length > 1 ? arguments[1] : Undefined;
...@@ -791,7 +791,7 @@ namespace data_view { ...@@ -791,7 +791,7 @@ namespace data_view {
context, receiver, offset, value, isLittleEndian, UINT32_ELEMENTS); context, receiver, offset, value, isLittleEndian, UINT32_ELEMENTS);
} }
javascript builtin DataViewPrototypeSetInt32( transitioning javascript builtin DataViewPrototypeSetInt32(
context: Context, receiver: Object, ...arguments): Object { context: Context, receiver: Object, ...arguments): Object {
let offset: Object = arguments.length > 0 ? arguments[0] : Undefined; let offset: Object = arguments.length > 0 ? arguments[0] : Undefined;
let value: Object = arguments.length > 1 ? arguments[1] : Undefined; let value: Object = arguments.length > 1 ? arguments[1] : Undefined;
...@@ -801,7 +801,7 @@ namespace data_view { ...@@ -801,7 +801,7 @@ namespace data_view {
context, receiver, offset, value, isLittleEndian, INT32_ELEMENTS); context, receiver, offset, value, isLittleEndian, INT32_ELEMENTS);
} }
javascript builtin DataViewPrototypeSetFloat32( transitioning javascript builtin DataViewPrototypeSetFloat32(
context: Context, receiver: Object, ...arguments): Object { context: Context, receiver: Object, ...arguments): Object {
let offset: Object = arguments.length > 0 ? arguments[0] : Undefined; let offset: Object = arguments.length > 0 ? arguments[0] : Undefined;
let value: Object = arguments.length > 1 ? arguments[1] : Undefined; let value: Object = arguments.length > 1 ? arguments[1] : Undefined;
...@@ -811,7 +811,7 @@ namespace data_view { ...@@ -811,7 +811,7 @@ namespace data_view {
context, receiver, offset, value, isLittleEndian, FLOAT32_ELEMENTS); context, receiver, offset, value, isLittleEndian, FLOAT32_ELEMENTS);
} }
javascript builtin DataViewPrototypeSetFloat64( transitioning javascript builtin DataViewPrototypeSetFloat64(
context: Context, receiver: Object, ...arguments): Object { context: Context, receiver: Object, ...arguments): Object {
let offset: Object = arguments.length > 0 ? arguments[0] : Undefined; let offset: Object = arguments.length > 0 ? arguments[0] : Undefined;
let value: Object = arguments.length > 1 ? arguments[1] : Undefined; let value: Object = arguments.length > 1 ? arguments[1] : Undefined;
...@@ -821,7 +821,7 @@ namespace data_view { ...@@ -821,7 +821,7 @@ namespace data_view {
context, receiver, offset, value, isLittleEndian, FLOAT64_ELEMENTS); context, receiver, offset, value, isLittleEndian, FLOAT64_ELEMENTS);
} }
javascript builtin DataViewPrototypeSetBigUint64( transitioning javascript builtin DataViewPrototypeSetBigUint64(
context: Context, receiver: Object, ...arguments): Object { context: Context, receiver: Object, ...arguments): Object {
let offset: Object = arguments.length > 0 ? arguments[0] : Undefined; let offset: Object = arguments.length > 0 ? arguments[0] : Undefined;
let value: Object = arguments.length > 1 ? arguments[1] : Undefined; let value: Object = arguments.length > 1 ? arguments[1] : Undefined;
...@@ -831,7 +831,7 @@ namespace data_view { ...@@ -831,7 +831,7 @@ namespace data_view {
context, receiver, offset, value, isLittleEndian, BIGUINT64_ELEMENTS); context, receiver, offset, value, isLittleEndian, BIGUINT64_ELEMENTS);
} }
javascript builtin DataViewPrototypeSetBigInt64( transitioning javascript builtin DataViewPrototypeSetBigInt64(
context: Context, receiver: Object, ...arguments): Object { context: Context, receiver: Object, ...arguments): Object {
let offset: Object = arguments.length > 0 ? arguments[0] : Undefined; let offset: Object = arguments.length > 0 ? arguments[0] : Undefined;
let value: Object = arguments.length > 1 ? arguments[1] : Undefined; let value: Object = arguments.length > 1 ? arguments[1] : Undefined;
......
...@@ -6,7 +6,7 @@ namespace string_html { ...@@ -6,7 +6,7 @@ namespace string_html {
extern runtime StringEscapeQuotes(Context, String): String; extern runtime StringEscapeQuotes(Context, String): String;
// https://tc39.github.io/ecma262/#sec-createhtml // https://tc39.github.io/ecma262/#sec-createhtml
builtin CreateHTML(implicit context: Context)( transitioning builtin CreateHTML(implicit context: Context)(
receiver: Object, methodName: String, tagName: String, attr: String, receiver: Object, methodName: String, tagName: String, attr: String,
attrValue: Object): String { attrValue: Object): String {
const tagContents: String = ToThisString(receiver, methodName); const tagContents: String = ToThisString(receiver, methodName);
...@@ -21,21 +21,21 @@ namespace string_html { ...@@ -21,21 +21,21 @@ namespace string_html {
} }
// https://tc39.github.io/ecma262/#sec-string.prototype.anchor // https://tc39.github.io/ecma262/#sec-string.prototype.anchor
javascript builtin StringPrototypeAnchor( transitioning javascript builtin StringPrototypeAnchor(
context: Context, receiver: Object, ...arguments): String { context: Context, receiver: Object, ...arguments): String {
return CreateHTML( return CreateHTML(
receiver, 'String.prototype.anchor', 'a', 'name', arguments[0]); receiver, 'String.prototype.anchor', 'a', 'name', arguments[0]);
} }
// https://tc39.github.io/ecma262/#sec-string.prototype.big // https://tc39.github.io/ecma262/#sec-string.prototype.big
javascript builtin transitioning javascript builtin
StringPrototypeBig(context: Context, receiver: Object, ...arguments): String { StringPrototypeBig(context: Context, receiver: Object, ...arguments): String {
return CreateHTML( return CreateHTML(
receiver, 'String.prototype.big', 'big', kEmptyString, kEmptyString); receiver, 'String.prototype.big', 'big', kEmptyString, kEmptyString);
} }
// https://tc39.github.io/ecma262/#sec-string.prototype.blink // https://tc39.github.io/ecma262/#sec-string.prototype.blink
javascript builtin transitioning javascript builtin
StringPrototypeBlink(context: Context, receiver: Object, ...arguments): StringPrototypeBlink(context: Context, receiver: Object, ...arguments):
String { String {
return CreateHTML( return CreateHTML(
...@@ -44,7 +44,7 @@ namespace string_html { ...@@ -44,7 +44,7 @@ namespace string_html {
} }
// https://tc39.github.io/ecma262/#sec-string.prototype.bold // https://tc39.github.io/ecma262/#sec-string.prototype.bold
javascript builtin transitioning javascript builtin
StringPrototypeBold(context: Context, receiver: Object, ...arguments): StringPrototypeBold(context: Context, receiver: Object, ...arguments):
String { String {
return CreateHTML( return CreateHTML(
...@@ -52,7 +52,7 @@ namespace string_html { ...@@ -52,7 +52,7 @@ namespace string_html {
} }
// https://tc39.github.io/ecma262/#sec-string.prototype.fontcolor // https://tc39.github.io/ecma262/#sec-string.prototype.fontcolor
javascript builtin transitioning javascript builtin
StringPrototypeFontcolor(context: Context, receiver: Object, ...arguments): StringPrototypeFontcolor(context: Context, receiver: Object, ...arguments):
String { String {
return CreateHTML( return CreateHTML(
...@@ -60,7 +60,7 @@ namespace string_html { ...@@ -60,7 +60,7 @@ namespace string_html {
} }
// https://tc39.github.io/ecma262/#sec-string.prototype.fontsize // https://tc39.github.io/ecma262/#sec-string.prototype.fontsize
javascript builtin transitioning javascript builtin
StringPrototypeFontsize(context: Context, receiver: Object, ...arguments): StringPrototypeFontsize(context: Context, receiver: Object, ...arguments):
String { String {
return CreateHTML( return CreateHTML(
...@@ -68,7 +68,7 @@ namespace string_html { ...@@ -68,7 +68,7 @@ namespace string_html {
} }
// https://tc39.github.io/ecma262/#sec-string.prototype.fixed // https://tc39.github.io/ecma262/#sec-string.prototype.fixed
javascript builtin transitioning javascript builtin
StringPrototypeFixed(context: Context, receiver: Object, ...arguments): StringPrototypeFixed(context: Context, receiver: Object, ...arguments):
String { String {
return CreateHTML( return CreateHTML(
...@@ -76,7 +76,7 @@ namespace string_html { ...@@ -76,7 +76,7 @@ namespace string_html {
} }
// https://tc39.github.io/ecma262/#sec-string.prototype.italics // https://tc39.github.io/ecma262/#sec-string.prototype.italics
javascript builtin transitioning javascript builtin
StringPrototypeItalics(context: Context, receiver: Object, ...arguments): StringPrototypeItalics(context: Context, receiver: Object, ...arguments):
String { String {
return CreateHTML( return CreateHTML(
...@@ -84,7 +84,7 @@ namespace string_html { ...@@ -84,7 +84,7 @@ namespace string_html {
} }
// https://tc39.github.io/ecma262/#sec-string.prototype.link // https://tc39.github.io/ecma262/#sec-string.prototype.link
javascript builtin transitioning javascript builtin
StringPrototypeLink(context: Context, receiver: Object, ...arguments): StringPrototypeLink(context: Context, receiver: Object, ...arguments):
String { String {
return CreateHTML( return CreateHTML(
...@@ -92,7 +92,7 @@ namespace string_html { ...@@ -92,7 +92,7 @@ namespace string_html {
} }
// https://tc39.github.io/ecma262/#sec-string.prototype.small // https://tc39.github.io/ecma262/#sec-string.prototype.small
javascript builtin transitioning javascript builtin
StringPrototypeSmall(context: Context, receiver: Object, ...arguments): StringPrototypeSmall(context: Context, receiver: Object, ...arguments):
String { String {
return CreateHTML( return CreateHTML(
...@@ -101,7 +101,7 @@ namespace string_html { ...@@ -101,7 +101,7 @@ namespace string_html {
} }
// https://tc39.github.io/ecma262/#sec-string.prototype.strike // https://tc39.github.io/ecma262/#sec-string.prototype.strike
javascript builtin transitioning javascript builtin
StringPrototypeStrike(context: Context, receiver: Object, ...arguments): StringPrototypeStrike(context: Context, receiver: Object, ...arguments):
String { String {
return CreateHTML( return CreateHTML(
...@@ -110,14 +110,14 @@ namespace string_html { ...@@ -110,14 +110,14 @@ namespace string_html {
} }
// https://tc39.github.io/ecma262/#sec-string.prototype.sub // https://tc39.github.io/ecma262/#sec-string.prototype.sub
javascript builtin transitioning javascript builtin
StringPrototypeSub(context: Context, receiver: Object, ...arguments): String { StringPrototypeSub(context: Context, receiver: Object, ...arguments): String {
return CreateHTML( return CreateHTML(
receiver, 'String.prototype.sub', 'sub', kEmptyString, kEmptyString); receiver, 'String.prototype.sub', 'sub', kEmptyString, kEmptyString);
} }
// https://tc39.github.io/ecma262/#sec-string.prototype.sup // https://tc39.github.io/ecma262/#sec-string.prototype.sup
javascript builtin transitioning javascript builtin
StringPrototypeSup(context: Context, receiver: Object, ...arguments): String { StringPrototypeSup(context: Context, receiver: Object, ...arguments): String {
return CreateHTML( return CreateHTML(
receiver, 'String.prototype.sup', 'sup', kEmptyString, kEmptyString); receiver, 'String.prototype.sup', 'sup', kEmptyString, kEmptyString);
......
...@@ -27,7 +27,7 @@ namespace string_repeat { ...@@ -27,7 +27,7 @@ namespace string_repeat {
} }
// https://tc39.github.io/ecma262/#sec-string.prototype.repeat // https://tc39.github.io/ecma262/#sec-string.prototype.repeat
javascript builtin StringPrototypeRepeat( transitioning javascript builtin StringPrototypeRepeat(
context: Context, receiver: Object, count: Object): String { context: Context, receiver: Object, count: Object): String {
// 1. Let O be ? RequireObjectCoercible(this value). // 1. Let O be ? RequireObjectCoercible(this value).
// 2. Let S be ? ToString(O). // 2. Let S be ? ToString(O).
......
...@@ -171,7 +171,7 @@ namespace typed_array_createtypedarray { ...@@ -171,7 +171,7 @@ namespace typed_array_createtypedarray {
// 22.2.4.5 TypedArray ( buffer, byteOffset, length ) // 22.2.4.5 TypedArray ( buffer, byteOffset, length )
// ES #sec-typedarray-buffer-byteoffset-length // ES #sec-typedarray-buffer-byteoffset-length
macro ConstructByArrayBuffer(implicit context: Context)( transitioning macro ConstructByArrayBuffer(implicit context: Context)(
typedArray: JSTypedArray, buffer: JSArrayBuffer, byteOffset: Object, typedArray: JSTypedArray, buffer: JSArrayBuffer, byteOffset: Object,
length: Object, elementsInfo: typed_array::TypedArrayElementsInfo): void { length: Object, elementsInfo: typed_array::TypedArrayElementsInfo): void {
try { try {
......
...@@ -92,7 +92,7 @@ namespace array { ...@@ -92,7 +92,7 @@ namespace array {
tempArray: FixedArray; tempArray: FixedArray;
} }
macro NewSortState(implicit context: Context)( transitioning macro NewSortState(implicit context: Context)(
receiver: JSReceiver, comparefn: Undefined | Callable, receiver: JSReceiver, comparefn: Undefined | Callable,
initialReceiverLength: Number, sortLength: Smi, initialReceiverLength: Number, sortLength: Smi,
forceGeneric: constexpr bool): SortState { forceGeneric: constexpr bool): SortState {
...@@ -291,7 +291,7 @@ namespace array { ...@@ -291,7 +291,7 @@ namespace array {
} }
} }
builtin SortCompareDefault( transitioning builtin SortCompareDefault(
context: Context, comparefn: Object, x: Object, y: Object): Number { context: Context, comparefn: Object, x: Object, y: Object): Number {
assert(comparefn == Undefined); assert(comparefn == Undefined);
......
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