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

Side by Side Diff: src/compiler/arm64/code-generator-arm64.cc

Issue 1131573006: ARM64: Enable shorten-64-to-32 warning (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/base/bits.h ('k') | src/compiler/arm64/instruction-selector-arm64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/arm64/macro-assembler-arm64.h" 7 #include "src/arm64/macro-assembler-arm64.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 __ Bind(&done); \ 330 __ Bind(&done); \
331 } while (0) 331 } while (0)
332 332
333 333
334 #define ASSEMBLE_SHIFT(asm_instr, width) \ 334 #define ASSEMBLE_SHIFT(asm_instr, width) \
335 do { \ 335 do { \
336 if (instr->InputAt(1)->IsRegister()) { \ 336 if (instr->InputAt(1)->IsRegister()) { \
337 __ asm_instr(i.OutputRegister##width(), i.InputRegister##width(0), \ 337 __ asm_instr(i.OutputRegister##width(), i.InputRegister##width(0), \
338 i.InputRegister##width(1)); \ 338 i.InputRegister##width(1)); \
339 } else { \ 339 } else { \
340 int64_t imm = i.InputOperand##width(1).immediate().value(); \ 340 int imm = \
341 static_cast<int>(i.InputOperand##width(1).immediate().value()); \
341 __ asm_instr(i.OutputRegister##width(), i.InputRegister##width(0), imm); \ 342 __ asm_instr(i.OutputRegister##width(), i.InputRegister##width(0), imm); \
342 } \ 343 } \
343 } while (0) 344 } while (0)
344 345
345 346
346 void CodeGenerator::AssembleDeconstructActivationRecord() { 347 void CodeGenerator::AssembleDeconstructActivationRecord() {
347 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); 348 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
348 int stack_slots = frame()->GetSpillSlotCount(); 349 int stack_slots = frame()->GetSpillSlotCount();
349 if (descriptor->IsJSFunctionCall() || stack_slots > 0) { 350 if (descriptor->IsJSFunctionCall() || stack_slots > 0) {
350 __ Mov(jssp, fp); 351 __ Mov(jssp, fp);
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
1322 } 1323 }
1323 } 1324 }
1324 MarkLazyDeoptSite(); 1325 MarkLazyDeoptSite();
1325 } 1326 }
1326 1327
1327 #undef __ 1328 #undef __
1328 1329
1329 } // namespace compiler 1330 } // namespace compiler
1330 } // namespace internal 1331 } // namespace internal
1331 } // namespace v8 1332 } // namespace v8
OLDNEW
« no previous file with comments | « src/base/bits.h ('k') | src/compiler/arm64/instruction-selector-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698