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

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

Issue 8883011: Implement ICs for constructor calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years 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/macro-assembler-ia32.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 3086 matching lines...) Expand 10 before | Expand all | Expand 10 after
3097 __ InvokeFunction(edi, count, CALL_FUNCTION, generator, CALL_AS_METHOD); 3097 __ InvokeFunction(edi, count, CALL_FUNCTION, generator, CALL_AS_METHOD);
3098 } 3098 }
3099 3099
3100 3100
3101 void LCodeGen::DoCallKeyed(LCallKeyed* instr) { 3101 void LCodeGen::DoCallKeyed(LCallKeyed* instr) {
3102 ASSERT(ToRegister(instr->context()).is(esi)); 3102 ASSERT(ToRegister(instr->context()).is(esi));
3103 ASSERT(ToRegister(instr->key()).is(ecx)); 3103 ASSERT(ToRegister(instr->key()).is(ecx));
3104 ASSERT(ToRegister(instr->result()).is(eax)); 3104 ASSERT(ToRegister(instr->result()).is(eax));
3105 3105
3106 int arity = instr->arity(); 3106 int arity = instr->arity();
3107 RelocInfo::Mode mode = RelocInfo::CODE_TARGET;
3107 Handle<Code> ic = 3108 Handle<Code> ic =
3108 isolate()->stub_cache()->ComputeKeyedCallInitialize(arity); 3109 isolate()->stub_cache()->ComputeKeyedCallInitialize(arity, mode);
3109 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3110 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3110 } 3111 }
3111 3112
3112 3113
3113 void LCodeGen::DoCallNamed(LCallNamed* instr) { 3114 void LCodeGen::DoCallNamed(LCallNamed* instr) {
3114 ASSERT(ToRegister(instr->context()).is(esi)); 3115 ASSERT(ToRegister(instr->context()).is(esi));
3115 ASSERT(ToRegister(instr->result()).is(eax)); 3116 ASSERT(ToRegister(instr->result()).is(eax));
3116 3117
3117 int arity = instr->arity(); 3118 int arity = instr->arity();
3118 RelocInfo::Mode mode = RelocInfo::CODE_TARGET; 3119 RelocInfo::Mode mode = RelocInfo::CODE_TARGET;
(...skipping 1515 matching lines...) Expand 10 before | Expand all | Expand 10 after
4634 this, pointers, Safepoint::kLazyDeopt); 4635 this, pointers, Safepoint::kLazyDeopt);
4635 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); 4636 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator);
4636 } 4637 }
4637 4638
4638 4639
4639 #undef __ 4640 #undef __
4640 4641
4641 } } // namespace v8::internal 4642 } } // namespace v8::internal
4642 4643
4643 #endif // V8_TARGET_ARCH_IA32 4644 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698