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 } | |
259 SetVar(this_function_var, a1, a2, a3); | 255 SetVar(this_function_var, a1, a2, a3); |
260 } | 256 } |
261 | 257 |
262 Variable* new_target_var = scope()->new_target_var(); | 258 Variable* new_target_var = scope()->new_target_var(); |
263 if (new_target_var != nullptr) { | 259 if (new_target_var != nullptr) { |
264 Comment cmnt(masm_, "[ new.target"); | 260 Comment cmnt(masm_, "[ new.target"); |
265 // new.target is parameter -2. | 261 // new.target is parameter -2. |
266 int offset = 2 * kPointerSize + | 262 int offset = 2 * kPointerSize + |
267 (info_->scope()->num_parameters() + 1) * kPointerSize; | 263 (info_->scope()->num_parameters() + 1) * kPointerSize; |
268 __ lw(v0, MemOperand(fp, offset)); | 264 __ lw(v0, MemOperand(fp, offset)); |
(...skipping 5273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5542 reinterpret_cast<uint32_t>( | 5538 reinterpret_cast<uint32_t>( |
5543 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5539 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5544 return OSR_AFTER_STACK_CHECK; | 5540 return OSR_AFTER_STACK_CHECK; |
5545 } | 5541 } |
5546 | 5542 |
5547 | 5543 |
5548 } // namespace internal | 5544 } // namespace internal |
5549 } // namespace v8 | 5545 } // namespace v8 |
5550 | 5546 |
5551 #endif // V8_TARGET_ARCH_MIPS | 5547 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |