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

Side by Side Diff: src/ia32/lithium-codegen-ia32.cc

Issue 7869009: Remove in-loop tracking for call ICs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 3 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/ia32/ic-ia32.cc ('k') | src/ic.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2963 matching lines...) Expand 10 before | Expand all | Expand 10 after
2974 __ InvokeFunction(edi, count, CALL_FUNCTION, generator, CALL_AS_METHOD); 2974 __ InvokeFunction(edi, count, CALL_FUNCTION, generator, CALL_AS_METHOD);
2975 } 2975 }
2976 2976
2977 2977
2978 void LCodeGen::DoCallKeyed(LCallKeyed* instr) { 2978 void LCodeGen::DoCallKeyed(LCallKeyed* instr) {
2979 ASSERT(ToRegister(instr->context()).is(esi)); 2979 ASSERT(ToRegister(instr->context()).is(esi));
2980 ASSERT(ToRegister(instr->key()).is(ecx)); 2980 ASSERT(ToRegister(instr->key()).is(ecx));
2981 ASSERT(ToRegister(instr->result()).is(eax)); 2981 ASSERT(ToRegister(instr->result()).is(eax));
2982 2982
2983 int arity = instr->arity(); 2983 int arity = instr->arity();
2984 Handle<Code> ic = isolate()->stub_cache()-> 2984 Handle<Code> ic =
2985 ComputeKeyedCallInitialize(arity, NOT_IN_LOOP); 2985 isolate()->stub_cache()->ComputeKeyedCallInitialize(arity);
2986 CallCode(ic, RelocInfo::CODE_TARGET, instr); 2986 CallCode(ic, RelocInfo::CODE_TARGET, instr);
2987 } 2987 }
2988 2988
2989 2989
2990 void LCodeGen::DoCallNamed(LCallNamed* instr) { 2990 void LCodeGen::DoCallNamed(LCallNamed* instr) {
2991 ASSERT(ToRegister(instr->context()).is(esi)); 2991 ASSERT(ToRegister(instr->context()).is(esi));
2992 ASSERT(ToRegister(instr->result()).is(eax)); 2992 ASSERT(ToRegister(instr->result()).is(eax));
2993 2993
2994 int arity = instr->arity(); 2994 int arity = instr->arity();
2995 RelocInfo::Mode mode = RelocInfo::CODE_TARGET; 2995 RelocInfo::Mode mode = RelocInfo::CODE_TARGET;
2996 Handle<Code> ic = 2996 Handle<Code> ic =
2997 isolate()->stub_cache()->ComputeCallInitialize(arity, NOT_IN_LOOP, mode); 2997 isolate()->stub_cache()->ComputeCallInitialize(arity, mode);
2998 __ mov(ecx, instr->name()); 2998 __ mov(ecx, instr->name());
2999 CallCode(ic, mode, instr); 2999 CallCode(ic, mode, instr);
3000 } 3000 }
3001 3001
3002 3002
3003 void LCodeGen::DoCallFunction(LCallFunction* instr) { 3003 void LCodeGen::DoCallFunction(LCallFunction* instr) {
3004 ASSERT(ToRegister(instr->context()).is(esi)); 3004 ASSERT(ToRegister(instr->context()).is(esi));
3005 ASSERT(ToRegister(instr->result()).is(eax)); 3005 ASSERT(ToRegister(instr->result()).is(eax));
3006 3006
3007 int arity = instr->arity(); 3007 int arity = instr->arity();
3008 CallFunctionStub stub(arity, NOT_IN_LOOP, RECEIVER_MIGHT_BE_IMPLICIT); 3008 CallFunctionStub stub(arity, RECEIVER_MIGHT_BE_IMPLICIT);
3009 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); 3009 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
3010 __ Drop(1); 3010 __ Drop(1);
3011 } 3011 }
3012 3012
3013 3013
3014 void LCodeGen::DoCallGlobal(LCallGlobal* instr) { 3014 void LCodeGen::DoCallGlobal(LCallGlobal* instr) {
3015 ASSERT(ToRegister(instr->context()).is(esi)); 3015 ASSERT(ToRegister(instr->context()).is(esi));
3016 ASSERT(ToRegister(instr->result()).is(eax)); 3016 ASSERT(ToRegister(instr->result()).is(eax));
3017 3017
3018 int arity = instr->arity(); 3018 int arity = instr->arity();
3019 RelocInfo::Mode mode = RelocInfo::CODE_TARGET_CONTEXT; 3019 RelocInfo::Mode mode = RelocInfo::CODE_TARGET_CONTEXT;
3020 Handle<Code> ic = 3020 Handle<Code> ic =
3021 isolate()->stub_cache()->ComputeCallInitialize(arity, NOT_IN_LOOP, mode); 3021 isolate()->stub_cache()->ComputeCallInitialize(arity, mode);
3022 __ mov(ecx, instr->name()); 3022 __ mov(ecx, instr->name());
3023 CallCode(ic, mode, instr); 3023 CallCode(ic, mode, instr);
3024 } 3024 }
3025 3025
3026 3026
3027 void LCodeGen::DoCallKnownGlobal(LCallKnownGlobal* instr) { 3027 void LCodeGen::DoCallKnownGlobal(LCallKnownGlobal* instr) {
3028 ASSERT(ToRegister(instr->result()).is(eax)); 3028 ASSERT(ToRegister(instr->result()).is(eax));
3029 __ mov(edi, instr->target()); 3029 __ mov(edi, instr->target());
3030 CallKnownFunction(instr->target(), instr->arity(), instr, CALL_AS_FUNCTION); 3030 CallKnownFunction(instr->target(), instr->arity(), instr, CALL_AS_FUNCTION);
3031 } 3031 }
(...skipping 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after
4378 env->deoptimization_index()); 4378 env->deoptimization_index());
4379 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); 4379 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator);
4380 } 4380 }
4381 4381
4382 4382
4383 #undef __ 4383 #undef __
4384 4384
4385 } } // namespace v8::internal 4385 } } // namespace v8::internal
4386 4386
4387 #endif // V8_TARGET_ARCH_IA32 4387 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698