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

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

Issue 1371823002: Fix compilation with GCC 5.2 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix debug compilation Created 5 years, 2 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/bignum.cc ('k') | src/compiler/x64/code-generator-x64.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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after
1356 __ jmp(&return_label_); 1356 __ jmp(&return_label_);
1357 return; 1357 return;
1358 } else { 1358 } else {
1359 __ bind(&return_label_); 1359 __ bind(&return_label_);
1360 __ mov(esp, ebp); // Move stack pointer back to frame pointer. 1360 __ mov(esp, ebp); // Move stack pointer back to frame pointer.
1361 __ pop(ebp); // Pop caller's frame pointer. 1361 __ pop(ebp); // Pop caller's frame pointer.
1362 } 1362 }
1363 } 1363 }
1364 size_t pop_size = descriptor->StackParameterCount() * kPointerSize; 1364 size_t pop_size = descriptor->StackParameterCount() * kPointerSize;
1365 // Might need ecx for scratch if pop_size is too big. 1365 // Might need ecx for scratch if pop_size is too big.
1366 DCHECK_EQ(0, descriptor->CalleeSavedRegisters() & ecx.bit()); 1366 DCHECK_EQ(0u, descriptor->CalleeSavedRegisters() & ecx.bit());
1367 __ Ret(static_cast<int>(pop_size), ecx); 1367 __ Ret(static_cast<int>(pop_size), ecx);
1368 } 1368 }
1369 1369
1370 1370
1371 void CodeGenerator::AssembleMove(InstructionOperand* source, 1371 void CodeGenerator::AssembleMove(InstructionOperand* source,
1372 InstructionOperand* destination) { 1372 InstructionOperand* destination) {
1373 IA32OperandConverter g(this, NULL); 1373 IA32OperandConverter g(this, NULL);
1374 // Dispatch on the source and destination operand kinds. Not all 1374 // Dispatch on the source and destination operand kinds. Not all
1375 // combinations are possible. 1375 // combinations are possible.
1376 if (source->IsRegister()) { 1376 if (source->IsRegister()) {
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1555 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 1555 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
1556 __ Nop(padding_size); 1556 __ Nop(padding_size);
1557 } 1557 }
1558 } 1558 }
1559 1559
1560 #undef __ 1560 #undef __
1561 1561
1562 } // namespace compiler 1562 } // namespace compiler
1563 } // namespace internal 1563 } // namespace internal
1564 } // namespace v8 1564 } // namespace v8
OLDNEW
« no previous file with comments | « src/bignum.cc ('k') | src/compiler/x64/code-generator-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698