Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Unified Diff: src/interpreter/interpreter-assembler.cc

Issue 1989363004: [turbofan] Add FixedArray peephole optimizations to CodeStubAssembler (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Final review feedback Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | test/cctest/compiler/test-code-stub-assembler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/interpreter-assembler.cc
diff --git a/src/interpreter/interpreter-assembler.cc b/src/interpreter/interpreter-assembler.cc
index fa67a0c29973ac3c92d009e09b604ebf28cd5515..4e911ebb7c61b4aae31392855e19a6ce236c012f 100644
--- a/src/interpreter/interpreter-assembler.cc
+++ b/src/interpreter/interpreter-assembler.cc
@@ -720,7 +720,7 @@ Node* InterpreterAssembler::ExportRegisterFile(Node* array) {
Int32Sub(Int32Constant(Register(0).ToOperand()), index);
Node* value = LoadRegister(ChangeInt32ToIntPtr(reg_index));
- StoreFixedArrayElementInt32Index(array, index, value);
+ StoreFixedArrayElement(array, index, value);
var_index.Bind(Int32Add(index, Int32Constant(1)));
Goto(&loop);
@@ -750,13 +750,13 @@ Node* InterpreterAssembler::ImportRegisterFile(Node* array) {
Node* condition = Int32LessThan(index, RegisterCount());
GotoUnless(condition, &done_loop);
- Node* value = LoadFixedArrayElementInt32Index(array, index);
+ Node* value = LoadFixedArrayElement(array, index);
Node* reg_index =
Int32Sub(Int32Constant(Register(0).ToOperand()), index);
StoreRegister(value, ChangeInt32ToIntPtr(reg_index));
- StoreFixedArrayElementInt32Index(array, index, StaleRegisterConstant());
+ StoreFixedArrayElement(array, index, StaleRegisterConstant());
var_index.Bind(Int32Add(index, Int32Constant(1)));
Goto(&loop);
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | test/cctest/compiler/test-code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698