| 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 // The write barrier clobbers register again, keep is marked as such. |
| 255 } |
| 252 SetVar(this_function_var, a1, a2, a3); | 256 SetVar(this_function_var, a1, a2, a3); |
| 253 } | 257 } |
| 254 | 258 |
| 255 Variable* new_target_var = scope()->new_target_var(); | 259 Variable* new_target_var = scope()->new_target_var(); |
| 256 if (new_target_var != nullptr) { | 260 if (new_target_var != nullptr) { |
| 257 Comment cmnt(masm_, "[ new.target"); | 261 Comment cmnt(masm_, "[ new.target"); |
| 258 // Get the frame pointer for the calling frame. | 262 // Get the frame pointer for the calling frame. |
| 259 __ ld(a2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); | 263 __ ld(a2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); |
| 260 | 264 |
| 261 // Skip the arguments adaptor frame if it exists. | 265 // Skip the arguments adaptor frame if it exists. |
| (...skipping 5317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5579 reinterpret_cast<uint64_t>( | 5583 reinterpret_cast<uint64_t>( |
| 5580 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5584 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5581 return OSR_AFTER_STACK_CHECK; | 5585 return OSR_AFTER_STACK_CHECK; |
| 5582 } | 5586 } |
| 5583 | 5587 |
| 5584 | 5588 |
| 5585 } // namespace internal | 5589 } // namespace internal |
| 5586 } // namespace v8 | 5590 } // namespace v8 |
| 5587 | 5591 |
| 5588 #endif // V8_TARGET_ARCH_MIPS64 | 5592 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |