Commit 055db605 authored by Simon Zünd's avatar Simon Zünd Committed by Commit Bot

[cleanup] Renamed LanguageMode constants in torque

R=tebbi@chromium.org

Change-Id: Id524c8239f99fc26ac5cd19cbdea39dba62f2c3f
Reviewed-on: https://chromium-review.googlesource.com/1071650Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
Commit-Queue: Simon Zünd <szuend@google.com>
Cr-Commit-Position: refs/heads/master@{#53331}
parent 0bfcbdd4
......@@ -186,7 +186,7 @@ module array {
}
// 12. Perform ? Set(A, "length", actualDeleteCount, true).
SetProperty(context, a, 'length', actualDeleteCount, strict);
SetProperty(context, a, 'length', actualDeleteCount, kStrict);
// 13. Let items be a List whose elements are, in left-to-right order,
// the portion of the actual argument list starting with the third
......@@ -217,12 +217,12 @@ module array {
let fromValue: Object = GetProperty(context, o, from);
// 2. Perform ? Set(O, to, fromValue, true).
SetProperty(context, o, to, fromValue, strict);
SetProperty(context, o, to, fromValue, kStrict);
// v. Else fromPresent is false,
} else {
// 1. Perform ? DeletePropertyOrThrow(O, to).
DeleteProperty(context, o, to, strict);
DeleteProperty(context, o, to, kStrict);
}
// vi. Increase k by 1.
k = k + 1;
......@@ -233,7 +233,7 @@ module array {
// d. Repeat, while k > (len - actualDeleteCount + itemCount)
while (k > (len - actualDeleteCount + itemCount)) {
// i. Perform ? DeletePropertyOrThrow(O, ! ToString(k - 1)).
DeleteProperty(context, o, ToString_Inline(context, k - 1), strict);
DeleteProperty(context, o, ToString_Inline(context, k - 1), kStrict);
// ii. Decrease k by 1.
k = k - 1;
......@@ -261,12 +261,12 @@ module array {
let fromValue: Object = GetProperty(context, o, from);
// 2. Perform ? Set(O, to, fromValue, true).
SetProperty(context, o, to, fromValue, strict);
SetProperty(context, o, to, fromValue, kStrict);
// v. Else fromPresent is false,
} else {
// 1. Perform ? DeletePropertyOrThrow(O, to).
DeleteProperty(context, o, to, strict);
DeleteProperty(context, o, to, kStrict);
}
// vi. Decrease k by 1.
......@@ -283,7 +283,7 @@ module array {
if (arguments.length > 2) {
for (let e: Object of arguments [2: ]) {
// b. Perform ? Set(O, ! ToString(k), E, true).
SetProperty(context, o, ToString_Inline(context, k), e, strict);
SetProperty(context, o, ToString_Inline(context, k), e, kStrict);
// c. Increase k by 1.
k = k + 1;
......@@ -293,7 +293,7 @@ module array {
// 19. Perform ? Set(O, "length", len - actualDeleteCount + itemCount,
// true).
SetProperty(
context, o, 'length', len - actualDeleteCount + itemCount, strict);
context, o, 'length', len - actualDeleteCount + itemCount, kStrict);
return a;
}
......
......@@ -116,8 +116,8 @@ const False: Boolean = 'FalseConstant()';
const true: constexpr bool = 'true';
const false: constexpr bool = 'false';
const strict: constexpr LanguageMode = 'LanguageMode::kStrict';
const sloppy: constexpr LanguageMode = 'LanguageMode::kSloppy';
const kStrict: constexpr LanguageMode = 'LanguageMode::kStrict';
const kSloppy: constexpr LanguageMode = 'LanguageMode::kSloppy';
extern macro Print(Object);
extern macro DebugBreak();
......
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