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

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

Issue 2369463002: Merged: [turbofan] Remove bogus constant materialization from frame. (Closed)
Patch Set: Created 4 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 | « src/compiler/mips64/code-generator-mips64.cc ('k') | src/compiler/s390/code-generator-s390.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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 2259 matching lines...) Expand 10 before | Expand all | Expand 10 after
2270 case Constant::kFloat64: 2270 case Constant::kFloat64:
2271 __ Move(dst, 2271 __ Move(dst,
2272 isolate()->factory()->NewNumber(src.ToFloat64(), TENURED)); 2272 isolate()->factory()->NewNumber(src.ToFloat64(), TENURED));
2273 break; 2273 break;
2274 case Constant::kExternalReference: 2274 case Constant::kExternalReference:
2275 __ mov(dst, Operand(src.ToExternalReference())); 2275 __ mov(dst, Operand(src.ToExternalReference()));
2276 break; 2276 break;
2277 case Constant::kHeapObject: { 2277 case Constant::kHeapObject: {
2278 Handle<HeapObject> src_object = src.ToHeapObject(); 2278 Handle<HeapObject> src_object = src.ToHeapObject();
2279 Heap::RootListIndex index; 2279 Heap::RootListIndex index;
2280 int slot; 2280 if (IsMaterializableFromRoot(src_object, &index)) {
2281 if (IsMaterializableFromFrame(src_object, &slot)) {
2282 __ LoadP(dst, g.SlotToMemOperand(slot));
2283 } else if (IsMaterializableFromRoot(src_object, &index)) {
2284 __ LoadRoot(dst, index); 2281 __ LoadRoot(dst, index);
2285 } else { 2282 } else {
2286 __ Move(dst, src_object); 2283 __ Move(dst, src_object);
2287 } 2284 }
2288 break; 2285 break;
2289 } 2286 }
2290 case Constant::kRpoNumber: 2287 case Constant::kRpoNumber:
2291 UNREACHABLE(); // TODO(dcarney): loading RPO constants on PPC. 2288 UNREACHABLE(); // TODO(dcarney): loading RPO constants on PPC.
2292 break; 2289 break;
2293 } 2290 }
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
2442 padding_size -= v8::internal::Assembler::kInstrSize; 2439 padding_size -= v8::internal::Assembler::kInstrSize;
2443 } 2440 }
2444 } 2441 }
2445 } 2442 }
2446 2443
2447 #undef __ 2444 #undef __
2448 2445
2449 } // namespace compiler 2446 } // namespace compiler
2450 } // namespace internal 2447 } // namespace internal
2451 } // namespace v8 2448 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips64/code-generator-mips64.cc ('k') | src/compiler/s390/code-generator-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698