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

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

Issue 247373002: CallICStub with a "never patch" approach until customization. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ports. 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
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 4269 matching lines...) Expand 10 before | Expand all | Expand 10 after
4280 } 4280 }
4281 4281
4282 4282
4283 void LCodeGen::DoCallNew(LCallNew* instr) { 4283 void LCodeGen::DoCallNew(LCallNew* instr) {
4284 ASSERT(ToRegister(instr->context()).is(esi)); 4284 ASSERT(ToRegister(instr->context()).is(esi));
4285 ASSERT(ToRegister(instr->constructor()).is(edi)); 4285 ASSERT(ToRegister(instr->constructor()).is(edi));
4286 ASSERT(ToRegister(instr->result()).is(eax)); 4286 ASSERT(ToRegister(instr->result()).is(eax));
4287 4287
4288 // No cell in ebx for construct type feedback in optimized code 4288 // No cell in ebx for construct type feedback in optimized code
4289 __ mov(ebx, isolate()->factory()->undefined_value()); 4289 __ mov(ebx, isolate()->factory()->undefined_value());
4290 CallConstructStub stub(NO_CALL_FUNCTION_FLAGS); 4290 CallConstructStub stub(NO_CALL_CONSTRUCTOR_FLAGS);
4291 __ Move(eax, Immediate(instr->arity())); 4291 __ Move(eax, Immediate(instr->arity()));
4292 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr); 4292 CallCode(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL, instr);
4293 } 4293 }
4294 4294
4295 4295
4296 void LCodeGen::DoCallNewArray(LCallNewArray* instr) { 4296 void LCodeGen::DoCallNewArray(LCallNewArray* instr) {
4297 ASSERT(ToRegister(instr->context()).is(esi)); 4297 ASSERT(ToRegister(instr->context()).is(esi));
4298 ASSERT(ToRegister(instr->constructor()).is(edi)); 4298 ASSERT(ToRegister(instr->constructor()).is(edi));
4299 ASSERT(ToRegister(instr->result()).is(eax)); 4299 ASSERT(ToRegister(instr->result()).is(eax));
4300 4300
(...skipping 2141 matching lines...) Expand 10 before | Expand all | Expand 10 after
6442 __ bind(deferred->exit()); 6442 __ bind(deferred->exit());
6443 __ bind(&done); 6443 __ bind(&done);
6444 } 6444 }
6445 6445
6446 6446
6447 #undef __ 6447 #undef __
6448 6448
6449 } } // namespace v8::internal 6449 } } // namespace v8::internal
6450 6450
6451 #endif // V8_TARGET_ARCH_IA32 6451 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/ia32/code-stubs-ia32.cc ('K') | « 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