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

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

Issue 2369463002: Merged: [turbofan] Remove bogus constant materialization from frame. (Closed)
Patch Set: Created 4 years, 3 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/compiler/mips/code-generator-mips.cc ('k') | src/compiler/ppc/code-generator-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ast/scopes.h" 5 #include "src/ast/scopes.h"
6 #include "src/compiler/code-generator.h" 6 #include "src/compiler/code-generator.h"
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 2317 matching lines...) Expand 10 before | Expand all | Expand 10 after
2328 break; 2328 break;
2329 case Constant::kFloat64: 2329 case Constant::kFloat64:
2330 __ li(dst, isolate()->factory()->NewNumber(src.ToFloat64(), TENURED)); 2330 __ li(dst, isolate()->factory()->NewNumber(src.ToFloat64(), TENURED));
2331 break; 2331 break;
2332 case Constant::kExternalReference: 2332 case Constant::kExternalReference:
2333 __ li(dst, Operand(src.ToExternalReference())); 2333 __ li(dst, Operand(src.ToExternalReference()));
2334 break; 2334 break;
2335 case Constant::kHeapObject: { 2335 case Constant::kHeapObject: {
2336 Handle<HeapObject> src_object = src.ToHeapObject(); 2336 Handle<HeapObject> src_object = src.ToHeapObject();
2337 Heap::RootListIndex index; 2337 Heap::RootListIndex index;
2338 int slot; 2338 if (IsMaterializableFromRoot(src_object, &index)) {
2339 if (IsMaterializableFromFrame(src_object, &slot)) {
2340 __ ld(dst, g.SlotToMemOperand(slot));
2341 } else if (IsMaterializableFromRoot(src_object, &index)) {
2342 __ LoadRoot(dst, index); 2339 __ LoadRoot(dst, index);
2343 } else { 2340 } else {
2344 __ li(dst, src_object); 2341 __ li(dst, src_object);
2345 } 2342 }
2346 break; 2343 break;
2347 } 2344 }
2348 case Constant::kRpoNumber: 2345 case Constant::kRpoNumber:
2349 UNREACHABLE(); // TODO(titzer): loading RPO numbers on mips64. 2346 UNREACHABLE(); // TODO(titzer): loading RPO numbers on mips64.
2350 break; 2347 break;
2351 } 2348 }
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
2487 padding_size -= v8::internal::Assembler::kInstrSize; 2484 padding_size -= v8::internal::Assembler::kInstrSize;
2488 } 2485 }
2489 } 2486 }
2490 } 2487 }
2491 2488
2492 #undef __ 2489 #undef __
2493 2490
2494 } // namespace compiler 2491 } // namespace compiler
2495 } // namespace internal 2492 } // namespace internal
2496 } // namespace v8 2493 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips/code-generator-mips.cc ('k') | src/compiler/ppc/code-generator-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698