| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 8 | 8 |
| 9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
| 10 // | 10 // |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 } | 242 } |
| 243 } | 243 } |
| 244 } | 244 } |
| 245 } | 245 } |
| 246 | 246 |
| 247 // Possibly set up a local binding to the this function which is used in | 247 // Possibly set up a local binding to the this function which is used in |
| 248 // derived constructors with super calls. | 248 // derived constructors with super calls. |
| 249 Variable* this_function_var = scope()->this_function_var(); | 249 Variable* this_function_var = scope()->this_function_var(); |
| 250 if (this_function_var != nullptr) { | 250 if (this_function_var != nullptr) { |
| 251 Comment cmnt(masm_, "[ This function"); | 251 Comment cmnt(masm_, "[ This function"); |
| 252 if (!function_in_register) { | |
| 253 __ ld(a1, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | |
| 254 function_in_register = true; | |
| 255 } | |
| 256 SetVar(this_function_var, a1, a2, a3); | 252 SetVar(this_function_var, a1, a2, a3); |
| 257 } | 253 } |
| 258 | 254 |
| 259 Variable* new_target_var = scope()->new_target_var(); | 255 Variable* new_target_var = scope()->new_target_var(); |
| 260 if (new_target_var != nullptr) { | 256 if (new_target_var != nullptr) { |
| 261 Comment cmnt(masm_, "[ new.target"); | 257 Comment cmnt(masm_, "[ new.target"); |
| 262 // new.target is parameter -2. | 258 // new.target is parameter -2. |
| 263 int offset = 2 * kPointerSize + | 259 int offset = 2 * kPointerSize + |
| 264 (info_->scope()->num_parameters() + 1) * kPointerSize; | 260 (info_->scope()->num_parameters() + 1) * kPointerSize; |
| 265 __ ld(v0, MemOperand(fp, offset)); | 261 __ ld(v0, MemOperand(fp, offset)); |
| (...skipping 5283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5549 reinterpret_cast<uint64_t>( | 5545 reinterpret_cast<uint64_t>( |
| 5550 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5546 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5551 return OSR_AFTER_STACK_CHECK; | 5547 return OSR_AFTER_STACK_CHECK; |
| 5552 } | 5548 } |
| 5553 | 5549 |
| 5554 | 5550 |
| 5555 } // namespace internal | 5551 } // namespace internal |
| 5556 } // namespace v8 | 5552 } // namespace v8 |
| 5557 | 5553 |
| 5558 #endif // V8_TARGET_ARCH_MIPS64 | 5554 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |