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 3058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3069 { | 3069 { |
3070 PreservePositionScope scope(masm()->positions_recorder()); | 3070 PreservePositionScope scope(masm()->positions_recorder()); |
3071 VisitForStackValue(property->obj()); | 3071 VisitForStackValue(property->obj()); |
3072 } | 3072 } |
3073 if (is_named_call) { | 3073 if (is_named_call) { |
3074 EmitCallWithLoadIC(expr); | 3074 EmitCallWithLoadIC(expr); |
3075 } else { | 3075 } else { |
3076 EmitKeyedCallWithLoadIC(expr, property->key()); | 3076 EmitKeyedCallWithLoadIC(expr, property->key()); |
3077 } | 3077 } |
3078 } | 3078 } |
| 3079 } else if (call_type == Call::SUPER_CALL) { |
| 3080 SuperReference* super_ref = callee->AsSuperReference(); |
| 3081 DCHECK(super_ref != NULL); |
| 3082 __ ldr(r0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
| 3083 __ Push(r0); |
| 3084 __ CallRuntime(Runtime::kGetPrototype, 1); |
| 3085 __ Push(result_register()); |
| 3086 VisitForStackValue(super_ref->this_var()); |
| 3087 EmitCall(expr, CallICState::METHOD); |
3079 } else { | 3088 } else { |
3080 DCHECK(call_type == Call::OTHER_CALL); | 3089 DCHECK(call_type == Call::OTHER_CALL); |
3081 // Call to an arbitrary expression not handled specially above. | 3090 // Call to an arbitrary expression not handled specially above. |
3082 { PreservePositionScope scope(masm()->positions_recorder()); | 3091 { PreservePositionScope scope(masm()->positions_recorder()); |
3083 VisitForStackValue(callee); | 3092 VisitForStackValue(callee); |
3084 } | 3093 } |
3085 __ LoadRoot(r1, Heap::kUndefinedValueRootIndex); | 3094 __ LoadRoot(r1, Heap::kUndefinedValueRootIndex); |
3086 __ push(r1); | 3095 __ push(r1); |
3087 // Emit function call. | 3096 // Emit function call. |
3088 EmitCall(expr); | 3097 EmitCall(expr); |
(...skipping 2164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5253 | 5262 |
5254 DCHECK(interrupt_address == | 5263 DCHECK(interrupt_address == |
5255 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5264 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5256 return OSR_AFTER_STACK_CHECK; | 5265 return OSR_AFTER_STACK_CHECK; |
5257 } | 5266 } |
5258 | 5267 |
5259 | 5268 |
5260 } } // namespace v8::internal | 5269 } } // namespace v8::internal |
5261 | 5270 |
5262 #endif // V8_TARGET_ARCH_ARM | 5271 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |