Commit 16f2853d authored by Simon Zünd's avatar Simon Zünd Committed by Commit Bot

[cleanup] Replace 'let' with 'const' in array-splice.tq where applicable

Also changes occurrences of 'length' with kLengthString.

R=mvstanton@chromium.org

Bug: v8:8015
Change-Id: Ida205a7d69939d7d3473e1ab8e82d0cdba4c8668
Reviewed-on: https://chromium-review.googlesource.com/1209302Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Commit-Queue: Simon Zünd <szuend@google.com>
Cr-Commit-Position: refs/heads/master@{#55686}
parent 4f8939f8
This diff is collapsed.
......@@ -16,7 +16,7 @@ module array {
macro GetLengthProperty(context: Context, o: Object): Number {
if (BranchIfFastJSArray(o, context)) {
let a: JSArray = unsafe_cast<JSArray>(o);
const a: JSArray = unsafe_cast<JSArray>(o);
return a.length_fast;
} else
deferred {
......@@ -42,7 +42,7 @@ module array {
macro IsJSArray(o: Object): bool {
try {
let array: JSArray = cast<JSArray>(o) otherwise NotArray;
const array: JSArray = cast<JSArray>(o) otherwise NotArray;
return true;
}
label NotArray {
......@@ -60,7 +60,7 @@ module array {
macro CopyArrayElement(
elements: FixedArray, newElements: FixedArray, from: Smi, to: Smi): void {
let e: Object = elements[from];
const e: Object = elements[from];
newElements[to] = e;
}
......@@ -68,7 +68,7 @@ module array {
elements: FixedDoubleArray, newElements: FixedDoubleArray, from: Smi,
to: Smi): void {
try {
let floatValue: float64 = LoadDoubleWithHoleCheck(elements, from)
const floatValue: float64 = LoadDoubleWithHoleCheck(elements, from)
otherwise FoundHole;
newElements[to] = floatValue;
}
......
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