| OLD | NEW |
| 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 Loading... |
| 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 } | |
| 255 SetVar(this_function_var, r4, r3, r5); | 251 SetVar(this_function_var, r4, r3, r5); |
| 256 } | 252 } |
| 257 | 253 |
| 258 Variable* new_target_var = scope()->new_target_var(); | 254 Variable* new_target_var = scope()->new_target_var(); |
| 259 if (new_target_var != nullptr) { | 255 if (new_target_var != nullptr) { |
| 260 Comment cmnt(masm_, "[ new.target"); | 256 Comment cmnt(masm_, "[ new.target"); |
| 261 // new.target is parameter -2. | 257 // new.target is parameter -2. |
| 262 int offset = 2 * kPointerSize + | 258 int offset = 2 * kPointerSize + |
| 263 (info_->scope()->num_parameters() + 1) * kPointerSize; | 259 (info_->scope()->num_parameters() + 1) * kPointerSize; |
| 264 __ LoadP(r3, MemOperand(fp, offset)); | 260 __ LoadP(r3, MemOperand(fp, offset)); |
| (...skipping 5284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5549 return ON_STACK_REPLACEMENT; | 5545 return ON_STACK_REPLACEMENT; |
| 5550 } | 5546 } |
| 5551 | 5547 |
| 5552 DCHECK(interrupt_address == | 5548 DCHECK(interrupt_address == |
| 5553 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5549 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5554 return OSR_AFTER_STACK_CHECK; | 5550 return OSR_AFTER_STACK_CHECK; |
| 5555 } | 5551 } |
| 5556 } // namespace internal | 5552 } // namespace internal |
| 5557 } // namespace v8 | 5553 } // namespace v8 |
| 5558 #endif // V8_TARGET_ARCH_PPC | 5554 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |