OLD | NEW |
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/linkage.h" | 8 #include "src/compiler/linkage.h" |
9 #include "src/compiler/pipeline.h" | 9 #include "src/compiler/pipeline.h" |
10 | 10 |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 Constant constant = converter.ToConstant(op); | 550 Constant constant = converter.ToConstant(op); |
551 Handle<Object> constant_object; | 551 Handle<Object> constant_object; |
552 switch (constant.type()) { | 552 switch (constant.type()) { |
553 case Constant::kInt32: | 553 case Constant::kInt32: |
554 DCHECK(type == kMachInt32 || type == kMachUint32 || type == kRepBit); | 554 DCHECK(type == kMachInt32 || type == kMachUint32 || type == kRepBit); |
555 constant_object = | 555 constant_object = |
556 isolate()->factory()->NewNumberFromInt(constant.ToInt32()); | 556 isolate()->factory()->NewNumberFromInt(constant.ToInt32()); |
557 break; | 557 break; |
558 case Constant::kFloat64: | 558 case Constant::kFloat64: |
559 DCHECK(type == kMachFloat64 || type == kMachAnyTagged || | 559 DCHECK(type == kMachFloat64 || type == kMachAnyTagged || |
560 type == kRepTagged || type == (kTypeInt32 | kRepTagged) || | 560 type == kRepTagged || type == (kTypeNumber | kRepTagged) || |
| 561 type == (kTypeInt32 | kRepTagged) || |
561 type == (kTypeUint32 | kRepTagged)); | 562 type == (kTypeUint32 | kRepTagged)); |
562 constant_object = isolate()->factory()->NewNumber(constant.ToFloat64()); | 563 constant_object = isolate()->factory()->NewNumber(constant.ToFloat64()); |
563 break; | 564 break; |
564 case Constant::kHeapObject: | 565 case Constant::kHeapObject: |
565 DCHECK((type & kRepMask) == kRepTagged); | 566 DCHECK((type & kRepMask) == kRepTagged); |
566 constant_object = constant.ToHeapObject(); | 567 constant_object = constant.ToHeapObject(); |
567 break; | 568 break; |
568 default: | 569 default: |
569 CHECK(false); | 570 CHECK(false); |
570 } | 571 } |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 : masm_(gen->masm()), next_(gen->ools_) { | 641 : masm_(gen->masm()), next_(gen->ools_) { |
641 gen->ools_ = this; | 642 gen->ools_ = this; |
642 } | 643 } |
643 | 644 |
644 | 645 |
645 OutOfLineCode::~OutOfLineCode() {} | 646 OutOfLineCode::~OutOfLineCode() {} |
646 | 647 |
647 } // namespace compiler | 648 } // namespace compiler |
648 } // namespace internal | 649 } // namespace internal |
649 } // namespace v8 | 650 } // namespace v8 |
OLD | NEW |