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

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

Issue 1407003015: [turbofan] Fix for register allocation crash (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | src/compiler/instruction-selector.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/linkage.h" 8 #include "src/compiler/linkage.h"
9 #include "src/compiler/pipeline.h" 9 #include "src/compiler/pipeline.h"
10 #include "src/frames-inl.h" 10 #include "src/frames-inl.h"
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 } else if (op->IsImmediate()) { 625 } else if (op->IsImmediate()) {
626 InstructionOperandConverter converter(this, instr); 626 InstructionOperandConverter converter(this, instr);
627 Constant constant = converter.ToConstant(op); 627 Constant constant = converter.ToConstant(op);
628 Handle<Object> constant_object; 628 Handle<Object> constant_object;
629 switch (constant.type()) { 629 switch (constant.type()) {
630 case Constant::kInt32: 630 case Constant::kInt32:
631 DCHECK(type == kMachInt32 || type == kMachUint32 || type == kRepBit); 631 DCHECK(type == kMachInt32 || type == kMachUint32 || type == kRepBit);
632 constant_object = 632 constant_object =
633 isolate()->factory()->NewNumberFromInt(constant.ToInt32()); 633 isolate()->factory()->NewNumberFromInt(constant.ToInt32());
634 break; 634 break;
635 case Constant::kFloat32:
636 DCHECK((type & (kRepFloat32 | kRepTagged)) != 0);
637 constant_object = isolate()->factory()->NewNumber(constant.ToFloat32());
638 break;
635 case Constant::kFloat64: 639 case Constant::kFloat64:
636 DCHECK((type & (kRepFloat64 | kRepTagged)) != 0); 640 DCHECK((type & (kRepFloat64 | kRepTagged)) != 0);
637 constant_object = isolate()->factory()->NewNumber(constant.ToFloat64()); 641 constant_object = isolate()->factory()->NewNumber(constant.ToFloat64());
638 break; 642 break;
639 case Constant::kHeapObject: 643 case Constant::kHeapObject:
640 DCHECK((type & kRepMask) == kRepTagged); 644 DCHECK((type & kRepMask) == kRepTagged);
641 constant_object = constant.ToHeapObject(); 645 constant_object = constant.ToHeapObject();
642 break; 646 break;
643 default: 647 default:
644 CHECK(false); 648 CHECK(false);
(...skipping 19 matching lines...) Expand all
664 : masm_(gen->masm()), next_(gen->ools_) { 668 : masm_(gen->masm()), next_(gen->ools_) {
665 gen->ools_ = this; 669 gen->ools_ = this;
666 } 670 }
667 671
668 672
669 OutOfLineCode::~OutOfLineCode() {} 673 OutOfLineCode::~OutOfLineCode() {}
670 674
671 } // namespace compiler 675 } // namespace compiler
672 } // namespace internal 676 } // namespace internal
673 } // namespace v8 677 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/instruction-selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698