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

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

Issue 1144063002: Cleanup interface descriptors to reflect that vectors are part of loads. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixes for test failures. Created 5 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 unified diff | Download patch
« no previous file with comments | « src/arm64/lithium-arm64.cc ('k') | src/code-factory.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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/arm64/lithium-codegen-arm64.h" 7 #include "src/arm64/lithium-codegen-arm64.h"
8 #include "src/arm64/lithium-gap-resolver-arm64.h" 8 #include "src/arm64/lithium-gap-resolver-arm64.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 3324 matching lines...) Expand 10 before | Expand all | Expand 10 after
3335 __ Ldr(result, FieldMemOperand(result, Map::kPrototypeOffset)); 3335 __ Ldr(result, FieldMemOperand(result, Map::kPrototypeOffset));
3336 3336
3337 // All done. 3337 // All done.
3338 __ Bind(&done); 3338 __ Bind(&done);
3339 } 3339 }
3340 3340
3341 3341
3342 template <class T> 3342 template <class T>
3343 void LCodeGen::EmitVectorLoadICRegisters(T* instr) { 3343 void LCodeGen::EmitVectorLoadICRegisters(T* instr) {
3344 Register vector_register = ToRegister(instr->temp_vector()); 3344 Register vector_register = ToRegister(instr->temp_vector());
3345 Register slot_register = VectorLoadICDescriptor::SlotRegister(); 3345 Register slot_register = LoadWithVectorDescriptor::SlotRegister();
3346 DCHECK(vector_register.is(VectorLoadICDescriptor::VectorRegister())); 3346 DCHECK(vector_register.is(LoadWithVectorDescriptor::VectorRegister()));
3347 DCHECK(slot_register.is(x0)); 3347 DCHECK(slot_register.is(x0));
3348 3348
3349 AllowDeferredHandleDereference vector_structure_check; 3349 AllowDeferredHandleDereference vector_structure_check;
3350 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector(); 3350 Handle<TypeFeedbackVector> vector = instr->hydrogen()->feedback_vector();
3351 __ Mov(vector_register, vector); 3351 __ Mov(vector_register, vector);
3352 // No need to allocate this register. 3352 // No need to allocate this register.
3353 FeedbackVectorICSlot slot = instr->hydrogen()->slot(); 3353 FeedbackVectorICSlot slot = instr->hydrogen()->slot();
3354 int index = vector->GetIndex(slot); 3354 int index = vector->GetIndex(slot);
3355 __ Mov(slot_register, Smi::FromInt(index)); 3355 __ Mov(slot_register, Smi::FromInt(index));
3356 } 3356 }
(...skipping 2747 matching lines...) Expand 10 before | Expand all | Expand 10 after
6104 Handle<ScopeInfo> scope_info = instr->scope_info(); 6104 Handle<ScopeInfo> scope_info = instr->scope_info();
6105 __ Push(scope_info); 6105 __ Push(scope_info);
6106 __ Push(ToRegister(instr->function())); 6106 __ Push(ToRegister(instr->function()));
6107 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6107 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6108 RecordSafepoint(Safepoint::kNoLazyDeopt); 6108 RecordSafepoint(Safepoint::kNoLazyDeopt);
6109 } 6109 }
6110 6110
6111 6111
6112 6112
6113 } } // namespace v8::internal 6113 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm64/lithium-arm64.cc ('k') | src/code-factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698