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

Side by Side Diff: src/ppc/full-codegen-ppc.cc

Issue 1185703002: Fix clobbered register when setting this_function variable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix ARM64 compilation. Created 5 years, 6 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/mips64/full-codegen-mips64.cc ('k') | src/x64/full-codegen-x64.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/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_PPC 7 #if V8_TARGET_ARCH_PPC
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 } 241 }
242 } 242 }
243 } 243 }
244 } 244 }
245 245
246 // Possibly set up a local binding to the this function which is used in 246 // Possibly set up a local binding to the this function which is used in
247 // derived constructors with super calls. 247 // derived constructors with super calls.
248 Variable* this_function_var = scope()->this_function_var(); 248 Variable* this_function_var = scope()->this_function_var();
249 if (this_function_var != nullptr) { 249 if (this_function_var != nullptr) {
250 Comment cmnt(masm_, "[ This function"); 250 Comment cmnt(masm_, "[ This function");
251 if (!function_in_register) {
252 __ LoadP(r4, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
253 function_in_register = true;
254 }
251 SetVar(this_function_var, r4, r3, r5); 255 SetVar(this_function_var, r4, r3, r5);
252 } 256 }
253 257
254 Variable* new_target_var = scope()->new_target_var(); 258 Variable* new_target_var = scope()->new_target_var();
255 if (new_target_var != nullptr) { 259 if (new_target_var != nullptr) {
256 Comment cmnt(masm_, "[ new.target"); 260 Comment cmnt(masm_, "[ new.target");
257 // new.target is parameter -2. 261 // new.target is parameter -2.
258 int offset = 2 * kPointerSize + 262 int offset = 2 * kPointerSize +
259 (info_->scope()->num_parameters() + 1) * kPointerSize; 263 (info_->scope()->num_parameters() + 1) * kPointerSize;
260 __ LoadP(r3, MemOperand(fp, offset)); 264 __ LoadP(r3, MemOperand(fp, offset));
(...skipping 5284 matching lines...) Expand 10 before | Expand all | Expand 10 after
5545 return ON_STACK_REPLACEMENT; 5549 return ON_STACK_REPLACEMENT;
5546 } 5550 }
5547 5551
5548 DCHECK(interrupt_address == 5552 DCHECK(interrupt_address ==
5549 isolate->builtins()->OsrAfterStackCheck()->entry()); 5553 isolate->builtins()->OsrAfterStackCheck()->entry());
5550 return OSR_AFTER_STACK_CHECK; 5554 return OSR_AFTER_STACK_CHECK;
5551 } 5555 }
5552 } // namespace internal 5556 } // namespace internal
5553 } // namespace v8 5557 } // namespace v8
5554 #endif // V8_TARGET_ARCH_PPC 5558 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/mips64/full-codegen-mips64.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698