Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: src/mips64/full-codegen-mips64.cc

Issue 661043003: MIPS: Implement the new semantics for 'super(...)'. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 3030 matching lines...) Expand 10 before | Expand all | Expand 10 after
3041 { 3041 {
3042 PreservePositionScope scope(masm()->positions_recorder()); 3042 PreservePositionScope scope(masm()->positions_recorder());
3043 VisitForStackValue(property->obj()); 3043 VisitForStackValue(property->obj());
3044 } 3044 }
3045 if (is_named_call) { 3045 if (is_named_call) {
3046 EmitCallWithLoadIC(expr); 3046 EmitCallWithLoadIC(expr);
3047 } else { 3047 } else {
3048 EmitKeyedCallWithLoadIC(expr, property->key()); 3048 EmitKeyedCallWithLoadIC(expr, property->key());
3049 } 3049 }
3050 } 3050 }
3051 } else if (call_type == Call::SUPER_CALL) {
3052 SuperReference* super_ref = callee->AsSuperReference();
3053 DCHECK(super_ref != NULL);
3054 __ ld(a0, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
3055 __ Push(a0);
3056 __ CallRuntime(Runtime::kGetPrototype, 1);
3057 __ Push(result_register());
3058 VisitForStackValue(super_ref->this_var());
3059 EmitCall(expr, CallICState::METHOD);
3051 } else { 3060 } else {
3052 DCHECK(call_type == Call::OTHER_CALL); 3061 DCHECK(call_type == Call::OTHER_CALL);
3053 // Call to an arbitrary expression not handled specially above. 3062 // Call to an arbitrary expression not handled specially above.
3054 { PreservePositionScope scope(masm()->positions_recorder()); 3063 { PreservePositionScope scope(masm()->positions_recorder());
3055 VisitForStackValue(callee); 3064 VisitForStackValue(callee);
3056 } 3065 }
3057 __ LoadRoot(a1, Heap::kUndefinedValueRootIndex); 3066 __ LoadRoot(a1, Heap::kUndefinedValueRootIndex);
3058 __ push(a1); 3067 __ push(a1);
3059 // Emit function call. 3068 // Emit function call.
3060 EmitCall(expr); 3069 EmitCall(expr);
(...skipping 2134 matching lines...) Expand 10 before | Expand all | Expand 10 after
5195 Assembler::target_address_at(pc_immediate_load_address)) == 5204 Assembler::target_address_at(pc_immediate_load_address)) ==
5196 reinterpret_cast<uint64_t>( 5205 reinterpret_cast<uint64_t>(
5197 isolate->builtins()->OsrAfterStackCheck()->entry())); 5206 isolate->builtins()->OsrAfterStackCheck()->entry()));
5198 return OSR_AFTER_STACK_CHECK; 5207 return OSR_AFTER_STACK_CHECK;
5199 } 5208 }
5200 5209
5201 5210
5202 } } // namespace v8::internal 5211 } } // namespace v8::internal
5203 5212
5204 #endif // V8_TARGET_ARCH_MIPS64 5213 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698