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

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

Issue 21345002: Get rid of HLinkObjectInList. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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/hydrogen-instructions.cc ('k') | src/ia32/lithium-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 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 2973 matching lines...) Expand 10 before | Expand all | Expand 10 after
2984 ASSERT(ToRegister(instr->value()).is(eax)); 2984 ASSERT(ToRegister(instr->value()).is(eax));
2985 2985
2986 __ mov(ecx, instr->name()); 2986 __ mov(ecx, instr->name());
2987 Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode) 2987 Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode)
2988 ? isolate()->builtins()->StoreIC_Initialize_Strict() 2988 ? isolate()->builtins()->StoreIC_Initialize_Strict()
2989 : isolate()->builtins()->StoreIC_Initialize(); 2989 : isolate()->builtins()->StoreIC_Initialize();
2990 CallCode(ic, RelocInfo::CODE_TARGET_CONTEXT, instr); 2990 CallCode(ic, RelocInfo::CODE_TARGET_CONTEXT, instr);
2991 } 2991 }
2992 2992
2993 2993
2994 void LCodeGen::DoLinkObjectInList(LLinkObjectInList* instr) {
2995 Register object = ToRegister(instr->object());
2996 Register temp = ToRegister(instr->temp());
2997 ExternalReference sites_list_address = instr->GetReference(isolate());
2998
2999 __ mov(temp, Immediate(sites_list_address));
3000 __ mov(temp, Operand(temp, 0));
3001 __ mov(FieldOperand(object, instr->hydrogen()->store_field().offset()),
3002 temp);
3003 __ mov(temp, Immediate(sites_list_address));
3004 __ mov(Operand(temp, 0), object);
3005 }
3006
3007
3008 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { 2994 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) {
3009 Register context = ToRegister(instr->context()); 2995 Register context = ToRegister(instr->context());
3010 Register result = ToRegister(instr->result()); 2996 Register result = ToRegister(instr->result());
3011 __ mov(result, ContextOperand(context, instr->slot_index())); 2997 __ mov(result, ContextOperand(context, instr->slot_index()));
3012 2998
3013 if (instr->hydrogen()->RequiresHoleCheck()) { 2999 if (instr->hydrogen()->RequiresHoleCheck()) {
3014 __ cmp(result, factory()->the_hole_value()); 3000 __ cmp(result, factory()->the_hole_value());
3015 if (instr->hydrogen()->DeoptimizesOnHole()) { 3001 if (instr->hydrogen()->DeoptimizesOnHole()) {
3016 DeoptimizeIf(equal, instr->environment()); 3002 DeoptimizeIf(equal, instr->environment());
3017 } else { 3003 } else {
(...skipping 3508 matching lines...) Expand 10 before | Expand all | Expand 10 after
6526 FixedArray::kHeaderSize - kPointerSize)); 6512 FixedArray::kHeaderSize - kPointerSize));
6527 __ bind(&done); 6513 __ bind(&done);
6528 } 6514 }
6529 6515
6530 6516
6531 #undef __ 6517 #undef __
6532 6518
6533 } } // namespace v8::internal 6519 } } // namespace v8::internal
6534 6520
6535 #endif // V8_TARGET_ARCH_IA32 6521 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698