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

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

Issue 1016003005: PPC: [turbofan] Fix loading of JSFunction from activation in case of adapter frame. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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 | no next file » | 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/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/ppc/macro-assembler-ppc.h" 10 #include "src/ppc/macro-assembler-ppc.h"
(...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 // TurboFan OSR-compiled functions cannot be entered directly. 1215 // TurboFan OSR-compiled functions cannot be entered directly.
1216 __ Abort(kShouldNotDirectlyEnterOsrFunction); 1216 __ Abort(kShouldNotDirectlyEnterOsrFunction);
1217 1217
1218 // Unoptimized code jumps directly to this entrypoint while the unoptimized 1218 // Unoptimized code jumps directly to this entrypoint while the unoptimized
1219 // frame is still on the stack. Optimized code uses OSR values directly from 1219 // frame is still on the stack. Optimized code uses OSR values directly from
1220 // the unoptimized frame. Thus, all that needs to be done is to allocate the 1220 // the unoptimized frame. Thus, all that needs to be done is to allocate the
1221 // remaining stack slots. 1221 // remaining stack slots.
1222 if (FLAG_code_comments) __ RecordComment("-- OSR entrypoint --"); 1222 if (FLAG_code_comments) __ RecordComment("-- OSR entrypoint --");
1223 osr_pc_offset_ = __ pc_offset(); 1223 osr_pc_offset_ = __ pc_offset();
1224 // TODO(titzer): cannot address target function == local #-1 1224 // TODO(titzer): cannot address target function == local #-1
1225 __ lwa(r4, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1225 __ LoadP(r4, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1226 DCHECK(stack_slots >= frame()->GetOsrStackSlotCount()); 1226 DCHECK(stack_slots >= frame()->GetOsrStackSlotCount());
1227 stack_slots -= frame()->GetOsrStackSlotCount(); 1227 stack_slots -= frame()->GetOsrStackSlotCount();
1228 } 1228 }
1229 1229
1230 if (stack_slots > 0) { 1230 if (stack_slots > 0) {
1231 __ Add(sp, sp, -stack_slots * kPointerSize, r0); 1231 __ Add(sp, sp, -stack_slots * kPointerSize, r0);
1232 } 1232 }
1233 } 1233 }
1234 1234
1235 1235
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
1452 } 1452 }
1453 } 1453 }
1454 MarkLazyDeoptSite(); 1454 MarkLazyDeoptSite();
1455 } 1455 }
1456 1456
1457 #undef __ 1457 #undef __
1458 1458
1459 } // namespace compiler 1459 } // namespace compiler
1460 } // namespace internal 1460 } // namespace internal
1461 } // namespace v8 1461 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698