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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 Comment cmnt(masm_, "[ This function"); | 260 Comment cmnt(masm_, "[ This function"); |
261 SetVar(this_function_var, a1, a2, a3); | 261 SetVar(this_function_var, a1, a2, a3); |
262 } | 262 } |
263 | 263 |
264 Variable* new_target_var = scope()->new_target_var(); | 264 Variable* new_target_var = scope()->new_target_var(); |
265 if (new_target_var != nullptr) { | 265 if (new_target_var != nullptr) { |
266 Comment cmnt(masm_, "[ new.target"); | 266 Comment cmnt(masm_, "[ new.target"); |
267 // new.target is parameter -2. | 267 // new.target is parameter -2. |
268 int offset = 2 * kPointerSize + | 268 int offset = 2 * kPointerSize + |
269 (info_->scope()->num_parameters() + 1) * kPointerSize; | 269 (info_->scope()->num_parameters() + 1) * kPointerSize; |
270 __ lw(v0, MemOperand(fp, offset)); | 270 __ ld(v0, MemOperand(fp, offset)); |
271 SetVar(new_target_var, v0, a2, a3); | 271 SetVar(new_target_var, v0, a2, a3); |
272 } | 272 } |
273 | 273 |
274 ArgumentsAccessStub::HasNewTarget has_new_target = | 274 ArgumentsAccessStub::HasNewTarget has_new_target = |
275 IsSubclassConstructor(info->function()->kind()) | 275 IsSubclassConstructor(info->function()->kind()) |
276 ? ArgumentsAccessStub::HAS_NEW_TARGET | 276 ? ArgumentsAccessStub::HAS_NEW_TARGET |
277 : ArgumentsAccessStub::NO_NEW_TARGET; | 277 : ArgumentsAccessStub::NO_NEW_TARGET; |
278 | 278 |
279 // Possibly allocate RestParameters | 279 // Possibly allocate RestParameters |
280 int rest_index; | 280 int rest_index; |
(...skipping 5284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5565 reinterpret_cast<uint64_t>( | 5565 reinterpret_cast<uint64_t>( |
5566 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5566 isolate->builtins()->OsrAfterStackCheck()->entry())); |
5567 return OSR_AFTER_STACK_CHECK; | 5567 return OSR_AFTER_STACK_CHECK; |
5568 } | 5568 } |
5569 | 5569 |
5570 | 5570 |
5571 } // namespace internal | 5571 } // namespace internal |
5572 } // namespace v8 | 5572 } // namespace v8 |
5573 | 5573 |
5574 #endif // V8_TARGET_ARCH_MIPS64 | 5574 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |