OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 } | 237 } |
238 } | 238 } |
239 } | 239 } |
240 } | 240 } |
241 | 241 |
242 // Possibly set up a local binding to the this function which is used in | 242 // Possibly set up a local binding to the this function which is used in |
243 // derived constructors with super calls. | 243 // derived constructors with super calls. |
244 Variable* this_function_var = scope()->this_function_var(); | 244 Variable* this_function_var = scope()->this_function_var(); |
245 if (this_function_var != nullptr) { | 245 if (this_function_var != nullptr) { |
246 Comment cmnt(masm_, "[ This function"); | 246 Comment cmnt(masm_, "[ This function"); |
247 if (!function_in_register_x1) { | |
248 __ Ldr(x1, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | |
249 function_in_register_x1 = true; | |
250 } | |
251 SetVar(this_function_var, x1, x0, x2); | 247 SetVar(this_function_var, x1, x0, x2); |
252 } | 248 } |
253 | 249 |
254 Variable* new_target_var = scope()->new_target_var(); | 250 Variable* new_target_var = scope()->new_target_var(); |
255 if (new_target_var != nullptr) { | 251 if (new_target_var != nullptr) { |
256 Comment cmnt(masm_, "[ new.target"); | 252 Comment cmnt(masm_, "[ new.target"); |
257 // new.target is parameter -2. | 253 // new.target is parameter -2. |
258 int offset = | 254 int offset = |
259 2 * kXRegSize + (info_->scope()->num_parameters() + 1) * kPointerSize; | 255 2 * kXRegSize + (info_->scope()->num_parameters() + 1) * kPointerSize; |
260 __ Ldr(x0, MemOperand(fp, offset)); | 256 __ Ldr(x0, MemOperand(fp, offset)); |
(...skipping 5306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5567 } | 5563 } |
5568 | 5564 |
5569 return INTERRUPT; | 5565 return INTERRUPT; |
5570 } | 5566 } |
5571 | 5567 |
5572 | 5568 |
5573 } // namespace internal | 5569 } // namespace internal |
5574 } // namespace v8 | 5570 } // namespace v8 |
5575 | 5571 |
5576 #endif // V8_TARGET_ARCH_ARM64 | 5572 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |