| 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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
| 8 | 8 |
| 9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
| 10 // | 10 // |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 } | 245 } |
| 246 } | 246 } |
| 247 } | 247 } |
| 248 } | 248 } |
| 249 | 249 |
| 250 // Possibly set up a local binding to the this function which is used in | 250 // Possibly set up a local binding to the this function which is used in |
| 251 // derived constructors with super calls. | 251 // derived constructors with super calls. |
| 252 Variable* this_function_var = scope()->this_function_var(); | 252 Variable* this_function_var = scope()->this_function_var(); |
| 253 if (this_function_var != nullptr) { | 253 if (this_function_var != nullptr) { |
| 254 Comment cmnt(masm_, "[ This function"); | 254 Comment cmnt(masm_, "[ This function"); |
| 255 if (!function_in_register) { |
| 256 __ lw(a1, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
| 257 function_in_register = true; |
| 258 } |
| 255 SetVar(this_function_var, a1, a2, a3); | 259 SetVar(this_function_var, a1, a2, a3); |
| 256 } | 260 } |
| 257 | 261 |
| 258 Variable* new_target_var = scope()->new_target_var(); | 262 Variable* new_target_var = scope()->new_target_var(); |
| 259 if (new_target_var != nullptr) { | 263 if (new_target_var != nullptr) { |
| 260 Comment cmnt(masm_, "[ new.target"); | 264 Comment cmnt(masm_, "[ new.target"); |
| 261 // new.target is parameter -2. | 265 // new.target is parameter -2. |
| 262 int offset = 2 * kPointerSize + | 266 int offset = 2 * kPointerSize + |
| 263 (info_->scope()->num_parameters() + 1) * kPointerSize; | 267 (info_->scope()->num_parameters() + 1) * kPointerSize; |
| 264 __ lw(v0, MemOperand(fp, offset)); | 268 __ lw(v0, MemOperand(fp, offset)); |
| (...skipping 5273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5538 reinterpret_cast<uint32_t>( | 5542 reinterpret_cast<uint32_t>( |
| 5539 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5543 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5540 return OSR_AFTER_STACK_CHECK; | 5544 return OSR_AFTER_STACK_CHECK; |
| 5541 } | 5545 } |
| 5542 | 5546 |
| 5543 | 5547 |
| 5544 } // namespace internal | 5548 } // namespace internal |
| 5545 } // namespace v8 | 5549 } // namespace v8 |
| 5546 | 5550 |
| 5547 #endif // V8_TARGET_ARCH_MIPS | 5551 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |