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

Side by Side Diff: src/arm64/lithium-codegen-arm64.cc

Issue 1261923007: [turbofan] Unify referencing of stack slots (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review feedback Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/compiler/arm/code-generator-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/arm64/frames-arm64.h" 5 #include "src/arm64/frames-arm64.h"
6 #include "src/arm64/lithium-codegen-arm64.h" 6 #include "src/arm64/lithium-codegen-arm64.h"
7 #include "src/arm64/lithium-gap-resolver-arm64.h" 7 #include "src/arm64/lithium-gap-resolver-arm64.h"
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 value, 268 value,
269 environment->HasTaggedValueAt(env_offset + i), 269 environment->HasTaggedValueAt(env_offset + i),
270 environment->HasUint32ValueAt(env_offset + i), 270 environment->HasUint32ValueAt(env_offset + i),
271 object_index_pointer, 271 object_index_pointer,
272 dematerialized_index_pointer); 272 dematerialized_index_pointer);
273 } 273 }
274 return; 274 return;
275 } 275 }
276 276
277 if (op->IsStackSlot()) { 277 if (op->IsStackSlot()) {
278 int index = op->index();
279 if (index >= 0) {
280 index += StandardFrameConstants::kFixedFrameSize / kPointerSize;
281 }
278 if (is_tagged) { 282 if (is_tagged) {
279 translation->StoreStackSlot(op->index()); 283 translation->StoreStackSlot(index);
280 } else if (is_uint32) { 284 } else if (is_uint32) {
281 translation->StoreUint32StackSlot(op->index()); 285 translation->StoreUint32StackSlot(index);
282 } else { 286 } else {
283 translation->StoreInt32StackSlot(op->index()); 287 translation->StoreInt32StackSlot(index);
284 } 288 }
285 } else if (op->IsDoubleStackSlot()) { 289 } else if (op->IsDoubleStackSlot()) {
286 translation->StoreDoubleStackSlot(op->index()); 290 int index = op->index();
291 if (index >= 0) {
292 index += StandardFrameConstants::kFixedFrameSize / kPointerSize;
293 }
294 translation->StoreDoubleStackSlot(index);
287 } else if (op->IsRegister()) { 295 } else if (op->IsRegister()) {
288 Register reg = ToRegister(op); 296 Register reg = ToRegister(op);
289 if (is_tagged) { 297 if (is_tagged) {
290 translation->StoreRegister(reg); 298 translation->StoreRegister(reg);
291 } else if (is_uint32) { 299 } else if (is_uint32) {
292 translation->StoreUint32Register(reg); 300 translation->StoreUint32Register(reg);
293 } else { 301 } else {
294 translation->StoreInt32Register(reg); 302 translation->StoreInt32Register(reg);
295 } 303 }
296 } else if (op->IsDoubleRegister()) { 304 } else if (op->IsDoubleRegister()) {
(...skipping 5861 matching lines...) Expand 10 before | Expand all | Expand 10 after
6158 Handle<ScopeInfo> scope_info = instr->scope_info(); 6166 Handle<ScopeInfo> scope_info = instr->scope_info();
6159 __ Push(scope_info); 6167 __ Push(scope_info);
6160 __ Push(ToRegister(instr->function())); 6168 __ Push(ToRegister(instr->function()));
6161 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6169 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6162 RecordSafepoint(Safepoint::kNoLazyDeopt); 6170 RecordSafepoint(Safepoint::kNoLazyDeopt);
6163 } 6171 }
6164 6172
6165 6173
6166 } // namespace internal 6174 } // namespace internal
6167 } // namespace v8 6175 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/compiler/arm/code-generator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698