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

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

Issue 905983002: X87: 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/x87/code-stubs-x87.cc ('k') | src/x87/interface-descriptors-x87.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_X87 7 #if V8_TARGET_ARCH_X87
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 2876 matching lines...) Expand 10 before | Expand all | Expand 10 after
2887 ZoneList<Expression*>* args = expr->arguments(); 2887 ZoneList<Expression*>* args = expr->arguments();
2888 int arg_count = args->length(); 2888 int arg_count = args->length();
2889 { PreservePositionScope scope(masm()->positions_recorder()); 2889 { PreservePositionScope scope(masm()->positions_recorder());
2890 for (int i = 0; i < arg_count; i++) { 2890 for (int i = 0; i < arg_count; i++) {
2891 VisitForStackValue(args->at(i)); 2891 VisitForStackValue(args->at(i));
2892 } 2892 }
2893 } 2893 }
2894 2894
2895 // Record source position of the IC call. 2895 // Record source position of the IC call.
2896 SetSourcePosition(expr->position()); 2896 SetSourcePosition(expr->position());
2897 Handle<Code> ic = CallIC::initialize_stub( 2897 Handle<Code> ic = CodeFactory::CallIC(isolate(), arg_count, call_type).code();
2898 isolate(), arg_count, call_type);
2899 __ Move(edx, Immediate(SmiFromSlot(expr->CallFeedbackSlot()))); 2898 __ Move(edx, Immediate(SmiFromSlot(expr->CallFeedbackSlot())));
2900 __ mov(edi, Operand(esp, (arg_count + 1) * kPointerSize)); 2899 __ mov(edi, Operand(esp, (arg_count + 1) * kPointerSize));
2901 // Don't assign a type feedback id to the IC, since type feedback is provided 2900 // Don't assign a type feedback id to the IC, since type feedback is provided
2902 // by the vector above. 2901 // by the vector above.
2903 CallIC(ic); 2902 CallIC(ic);
2904 2903
2905 RecordJSReturnSite(expr); 2904 RecordJSReturnSite(expr);
2906 2905
2907 // Restore context register. 2906 // Restore context register.
2908 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); 2907 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
(...skipping 2362 matching lines...) Expand 10 before | Expand all | Expand 10 after
5271 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5270 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5272 Assembler::target_address_at(call_target_address, 5271 Assembler::target_address_at(call_target_address,
5273 unoptimized_code)); 5272 unoptimized_code));
5274 return OSR_AFTER_STACK_CHECK; 5273 return OSR_AFTER_STACK_CHECK;
5275 } 5274 }
5276 5275
5277 5276
5278 } } // namespace v8::internal 5277 } } // namespace v8::internal
5279 5278
5280 #endif // V8_TARGET_ARCH_X87 5279 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/code-stubs-x87.cc ('k') | src/x87/interface-descriptors-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698