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

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

Issue 1414413004: Distinguish Call::CallType::PROPERTY_CALL further. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_issue-4521
Patch Set: Ports. Created 5 years, 1 month 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
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | 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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 3064 matching lines...) Expand 10 before | Expand all | Expand 10 after
3075 RecordJSReturnSite(expr); 3075 RecordJSReturnSite(expr);
3076 // Restore context register. 3076 // Restore context register.
3077 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 3077 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
3078 context()->DropAndPlug(1, v0); 3078 context()->DropAndPlug(1, v0);
3079 } else if (call_type == Call::GLOBAL_CALL) { 3079 } else if (call_type == Call::GLOBAL_CALL) {
3080 EmitCallWithLoadIC(expr); 3080 EmitCallWithLoadIC(expr);
3081 } else if (call_type == Call::LOOKUP_SLOT_CALL) { 3081 } else if (call_type == Call::LOOKUP_SLOT_CALL) {
3082 // Call to a lookup slot (dynamically introduced variable). 3082 // Call to a lookup slot (dynamically introduced variable).
3083 PushCalleeAndWithBaseObject(expr); 3083 PushCalleeAndWithBaseObject(expr);
3084 EmitCall(expr); 3084 EmitCall(expr);
3085 } else if (call_type == Call::PROPERTY_CALL) { 3085 } else if (call_type == Call::NAMED_PROPERTY_CALL) {
3086 Property* property = callee->AsProperty(); 3086 Property* property = callee->AsProperty();
3087 bool is_named_call = property->key()->IsPropertyName(); 3087 VisitForStackValue(property->obj());
3088 if (property->IsSuperAccess()) { 3088 EmitCallWithLoadIC(expr);
3089 if (is_named_call) { 3089 } else if (call_type == Call::KEYED_PROPERTY_CALL) {
3090 EmitSuperCallWithLoadIC(expr); 3090 Property* property = callee->AsProperty();
3091 } else { 3091 VisitForStackValue(property->obj());
3092 EmitKeyedSuperCallWithLoadIC(expr); 3092 EmitKeyedCallWithLoadIC(expr, property->key());
3093 } 3093 } else if (call_type == Call::NAMED_SUPER_PROPERTY_CALL) {
3094 } else { 3094 EmitSuperCallWithLoadIC(expr);
3095 VisitForStackValue(property->obj()); 3095 } else if (call_type == Call::KEYED_SUPER_PROPERTY_CALL) {
3096 if (is_named_call) { 3096 EmitKeyedSuperCallWithLoadIC(expr);
3097 EmitCallWithLoadIC(expr);
3098 } else {
3099 EmitKeyedCallWithLoadIC(expr, property->key());
3100 }
3101 }
3102 } else if (call_type == Call::SUPER_CALL) { 3097 } else if (call_type == Call::SUPER_CALL) {
3103 EmitSuperConstructorCall(expr); 3098 EmitSuperConstructorCall(expr);
3104 } else { 3099 } else {
3105 DCHECK(call_type == Call::OTHER_CALL); 3100 DCHECK(call_type == Call::OTHER_CALL);
3106 // Call to an arbitrary expression not handled specially above. 3101 // Call to an arbitrary expression not handled specially above.
3107 VisitForStackValue(callee); 3102 VisitForStackValue(callee);
3108 __ LoadRoot(a1, Heap::kUndefinedValueRootIndex); 3103 __ LoadRoot(a1, Heap::kUndefinedValueRootIndex);
3109 __ push(a1); 3104 __ push(a1);
3110 // Emit function call. 3105 // Emit function call.
3111 EmitCall(expr); 3106 EmitCall(expr);
(...skipping 2049 matching lines...) Expand 10 before | Expand all | Expand 10 after
5161 reinterpret_cast<uint64_t>( 5156 reinterpret_cast<uint64_t>(
5162 isolate->builtins()->OsrAfterStackCheck()->entry())); 5157 isolate->builtins()->OsrAfterStackCheck()->entry()));
5163 return OSR_AFTER_STACK_CHECK; 5158 return OSR_AFTER_STACK_CHECK;
5164 } 5159 }
5165 5160
5166 5161
5167 } // namespace internal 5162 } // namespace internal
5168 } // namespace v8 5163 } // namespace v8
5169 5164
5170 #endif // V8_TARGET_ARCH_MIPS64 5165 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698