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

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

Issue 148223002: Remove CallICs (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update test262 status file Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/ia32/lithium-ia32.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 // 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 4158 matching lines...) Expand 10 before | Expand all | Expand 10 after
4169 } 4169 }
4170 } 4170 }
4171 4171
4172 4172
4173 void LCodeGen::DoCallFunction(LCallFunction* instr) { 4173 void LCodeGen::DoCallFunction(LCallFunction* instr) {
4174 ASSERT(ToRegister(instr->context()).is(esi)); 4174 ASSERT(ToRegister(instr->context()).is(esi));
4175 ASSERT(ToRegister(instr->function()).is(edi)); 4175 ASSERT(ToRegister(instr->function()).is(edi));
4176 ASSERT(ToRegister(instr->result()).is(eax)); 4176 ASSERT(ToRegister(instr->result()).is(eax));
4177 4177
4178 int arity = instr->arity(); 4178 int arity = instr->arity();
4179 CallFunctionStub stub(arity, NO_CALL_FUNCTION_FLAGS); 4179 CallFunctionStub stub(arity, instr->hydrogen()->function_flags());
4180 if (instr->hydrogen()->IsTailCall()) { 4180 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
4181 if (NeedsEagerFrame()) __ leave();
4182 __ jmp(stub.GetCode(isolate()), RelocInfo::CODE_TARGET);
4183 } else {
4184 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
4185 }
4186 } 4181 }
4187 4182
4188 4183
4189 void LCodeGen::DoCallNew(LCallNew* instr) { 4184 void LCodeGen::DoCallNew(LCallNew* instr) {
4190 ASSERT(ToRegister(instr->context()).is(esi)); 4185 ASSERT(ToRegister(instr->context()).is(esi));
4191 ASSERT(ToRegister(instr->constructor()).is(edi)); 4186 ASSERT(ToRegister(instr->constructor()).is(edi));
4192 ASSERT(ToRegister(instr->result()).is(eax)); 4187 ASSERT(ToRegister(instr->result()).is(eax));
4193 4188
4194 // No cell in ebx for construct type feedback in optimized code 4189 // No cell in ebx for construct type feedback in optimized code
4195 Handle<Object> undefined_value(isolate()->factory()->undefined_value()); 4190 Handle<Object> undefined_value(isolate()->factory()->undefined_value());
(...skipping 2075 matching lines...) Expand 10 before | Expand all | Expand 10 after
6271 FixedArray::kHeaderSize - kPointerSize)); 6266 FixedArray::kHeaderSize - kPointerSize));
6272 __ bind(&done); 6267 __ bind(&done);
6273 } 6268 }
6274 6269
6275 6270
6276 #undef __ 6271 #undef __
6277 6272
6278 } } // namespace v8::internal 6273 } } // namespace v8::internal
6279 6274
6280 #endif // V8_TARGET_ARCH_IA32 6275 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698