| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |