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

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

Issue 224903005: Reland "create a function call IC" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments. Created 6 years, 8 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/full-codegen-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 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 4265 matching lines...) Expand 10 before | Expand all | Expand 10 after
4276 } 4276 }
4277 4277
4278 4278
4279 void LCodeGen::DoCallNew(LCallNew* instr) { 4279 void LCodeGen::DoCallNew(LCallNew* instr) {
4280 ASSERT(ToRegister(instr->context()).is(esi)); 4280 ASSERT(ToRegister(instr->context()).is(esi));
4281 ASSERT(ToRegister(instr->constructor()).is(edi)); 4281 ASSERT(ToRegister(instr->constructor()).is(edi));
4282 ASSERT(ToRegister(instr->result()).is(eax)); 4282 ASSERT(ToRegister(instr->result()).is(eax));
4283 4283
4284 // No cell in ebx for construct type feedback in optimized code 4284 // No cell in ebx for construct type feedback in optimized code
4285 __ mov(ebx, isolate()->factory()->undefined_value()); 4285 __ mov(ebx, isolate()->factory()->undefined_value());
4286 CallConstructStub stub(NO_CALL_FUNCTION_FLAGS); 4286 CallConstructStub stub(NO_CALL_CONSTRUCTOR_FLAGS);
4287 __ Move(eax, Immediate(instr->arity())); 4287 __ Move(eax, Immediate(instr->arity()));
4288 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); 4288 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr);
4289 } 4289 }
4290 4290
4291 4291
4292 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { 4292 void LCodeGen::DoCallNewArray(LCallNewArray* instr) {
4293 ASSERT(ToRegister(instr->context()).is(esi)); 4293 ASSERT(ToRegister(instr->context()).is(esi));
4294 ASSERT(ToRegister(instr->constructor()).is(edi)); 4294 ASSERT(ToRegister(instr->constructor()).is(edi));
4295 ASSERT(ToRegister(instr->result()).is(eax)); 4295 ASSERT(ToRegister(instr->result()).is(eax));
4296 4296
(...skipping 2147 matching lines...) Expand 10 before | Expand all | Expand 10 after
6444 __ bind(deferred->exit()); 6444 __ bind(deferred->exit());
6445 __ bind(&done); 6445 __ bind(&done);
6446 } 6446 }
6447 6447
6448 6448
6449 #undef __ 6449 #undef __
6450 6450
6451 } } // namespace v8::internal 6451 } } // namespace v8::internal
6452 6452
6453 #endif // V8_TARGET_ARCH_IA32 6453 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698