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

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

Issue 1133163005: MIPS64: Enable shorten-64-to-32 warning. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix type related to mach_timespec. Created 5 years, 6 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/mips64/lithium-codegen-mips64.h ('k') | src/mips64/macro-assembler-mips64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/cpu-profiler.h" 9 #include "src/cpu-profiler.h"
10 #include "src/hydrogen-osr.h" 10 #include "src/hydrogen-osr.h"
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 } 482 }
483 483
484 484
485 int32_t LCodeGen::ToInteger32(LConstantOperand* op) const { 485 int32_t LCodeGen::ToInteger32(LConstantOperand* op) const {
486 // return ToRepresentation(op, Representation::Integer32()); 486 // return ToRepresentation(op, Representation::Integer32());
487 HConstant* constant = chunk_->LookupConstant(op); 487 HConstant* constant = chunk_->LookupConstant(op);
488 return constant->Integer32Value(); 488 return constant->Integer32Value();
489 } 489 }
490 490
491 491
492 int32_t LCodeGen::ToRepresentation_donotuse(LConstantOperand* op, 492 int64_t LCodeGen::ToRepresentation_donotuse(LConstantOperand* op,
493 const Representation& r) const { 493 const Representation& r) const {
494 HConstant* constant = chunk_->LookupConstant(op); 494 HConstant* constant = chunk_->LookupConstant(op);
495 int32_t value = constant->Integer32Value(); 495 int32_t value = constant->Integer32Value();
496 if (r.IsInteger32()) return value; 496 if (r.IsInteger32()) return value;
497 DCHECK(r.IsSmiOrTagged()); 497 DCHECK(r.IsSmiOrTagged());
498 return reinterpret_cast<int64_t>(Smi::FromInt(value)); 498 return reinterpret_cast<int64_t>(Smi::FromInt(value));
499 } 499 }
500 500
501 501
502 Smi* LCodeGen::ToSmi(LConstantOperand* op) const { 502 Smi* LCodeGen::ToSmi(LConstantOperand* op) const {
503 HConstant* constant = chunk_->LookupConstant(op); 503 HConstant* constant = chunk_->LookupConstant(op);
(...skipping 5574 matching lines...) Expand 10 before | Expand all | Expand 10 after
6078 __ Push(at, ToRegister(instr->function())); 6078 __ Push(at, ToRegister(instr->function()));
6079 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6079 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6080 RecordSafepoint(Safepoint::kNoLazyDeopt); 6080 RecordSafepoint(Safepoint::kNoLazyDeopt);
6081 } 6081 }
6082 6082
6083 6083
6084 #undef __ 6084 #undef __
6085 6085
6086 } // namespace internal 6086 } // namespace internal
6087 } // namespace v8 6087 } // namespace v8
OLDNEW
« no previous file with comments | « src/mips64/lithium-codegen-mips64.h ('k') | src/mips64/macro-assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698