| 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_ARM | 7 #if V8_TARGET_ARCH_ARM |
| 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 } | 236 } |
| 237 } | 237 } |
| 238 } | 238 } |
| 239 } | 239 } |
| 240 | 240 |
| 241 // Possibly set up a local binding to the this function which is used in | 241 // Possibly set up a local binding to the this function which is used in |
| 242 // derived constructors with super calls. | 242 // derived constructors with super calls. |
| 243 Variable* this_function_var = scope()->this_function_var(); | 243 Variable* this_function_var = scope()->this_function_var(); |
| 244 if (this_function_var != nullptr) { | 244 if (this_function_var != nullptr) { |
| 245 Comment cmnt(masm_, "[ This function"); | 245 Comment cmnt(masm_, "[ This function"); |
| 246 if (!function_in_register) { |
| 247 __ ldr(r1, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
| 248 // The write barrier clobbers register again, keep is marked as such. |
| 249 } |
| 246 SetVar(this_function_var, r1, r0, r2); | 250 SetVar(this_function_var, r1, r0, r2); |
| 247 } | 251 } |
| 248 | 252 |
| 249 Variable* new_target_var = scope()->new_target_var(); | 253 Variable* new_target_var = scope()->new_target_var(); |
| 250 if (new_target_var != nullptr) { | 254 if (new_target_var != nullptr) { |
| 251 Comment cmnt(masm_, "[ new.target"); | 255 Comment cmnt(masm_, "[ new.target"); |
| 252 | 256 |
| 253 __ ldr(r2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); | 257 __ ldr(r2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); |
| 254 __ ldr(r1, MemOperand(r2, StandardFrameConstants::kContextOffset)); | 258 __ ldr(r1, MemOperand(r2, StandardFrameConstants::kContextOffset)); |
| 255 __ cmp(r1, Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); | 259 __ cmp(r1, Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); |
| (...skipping 5363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5619 DCHECK(interrupt_address == | 5623 DCHECK(interrupt_address == |
| 5620 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5624 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5621 return OSR_AFTER_STACK_CHECK; | 5625 return OSR_AFTER_STACK_CHECK; |
| 5622 } | 5626 } |
| 5623 | 5627 |
| 5624 | 5628 |
| 5625 } // namespace internal | 5629 } // namespace internal |
| 5626 } // namespace v8 | 5630 } // namespace v8 |
| 5627 | 5631 |
| 5628 #endif // V8_TARGET_ARCH_ARM | 5632 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |