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

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

Issue 882683002: MIPS: Use a trampoline stub to load the type feedback vector for CallICs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/interface-descriptors-mips.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 2964 matching lines...) Expand 10 before | Expand all | Expand 10 after
2975 ZoneList<Expression*>* args = expr->arguments(); 2975 ZoneList<Expression*>* args = expr->arguments();
2976 int arg_count = args->length(); 2976 int arg_count = args->length();
2977 { PreservePositionScope scope(masm()->positions_recorder()); 2977 { PreservePositionScope scope(masm()->positions_recorder());
2978 for (int i = 0; i < arg_count; i++) { 2978 for (int i = 0; i < arg_count; i++) {
2979 VisitForStackValue(args->at(i)); 2979 VisitForStackValue(args->at(i));
2980 } 2980 }
2981 } 2981 }
2982 2982
2983 // Record source position of the IC call. 2983 // Record source position of the IC call.
2984 SetSourcePosition(expr->position()); 2984 SetSourcePosition(expr->position());
2985 Handle<Code> ic = CallIC::initialize_stub( 2985 Handle<Code> ic = CodeFactory::CallIC(isolate(), arg_count, call_type).code();
2986 isolate(), arg_count, call_type);
2987 __ li(a3, Operand(SmiFromSlot(expr->CallFeedbackSlot()))); 2986 __ li(a3, Operand(SmiFromSlot(expr->CallFeedbackSlot())));
2988 __ lw(a1, MemOperand(sp, (arg_count + 1) * kPointerSize)); 2987 __ lw(a1, MemOperand(sp, (arg_count + 1) * kPointerSize));
2989 // Don't assign a type feedback id to the IC, since type feedback is provided 2988 // Don't assign a type feedback id to the IC, since type feedback is provided
2990 // by the vector above. 2989 // by the vector above.
2991 CallIC(ic); 2990 CallIC(ic);
2992 2991
2993 RecordJSReturnSite(expr); 2992 RecordJSReturnSite(expr);
2994 // Restore context register. 2993 // Restore context register.
2995 __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 2994 __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
2996 context()->DropAndPlug(1, v0); 2995 context()->DropAndPlug(1, v0);
(...skipping 2352 matching lines...) Expand 10 before | Expand all | Expand 10 after
5349 Assembler::target_address_at(pc_immediate_load_address)) == 5348 Assembler::target_address_at(pc_immediate_load_address)) ==
5350 reinterpret_cast<uint32_t>( 5349 reinterpret_cast<uint32_t>(
5351 isolate->builtins()->OsrAfterStackCheck()->entry())); 5350 isolate->builtins()->OsrAfterStackCheck()->entry()));
5352 return OSR_AFTER_STACK_CHECK; 5351 return OSR_AFTER_STACK_CHECK;
5353 } 5352 }
5354 5353
5355 5354
5356 } } // namespace v8::internal 5355 } } // namespace v8::internal
5357 5356
5358 #endif // V8_TARGET_ARCH_MIPS 5357 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/interface-descriptors-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698