OLD | NEW |
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 2974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2985 ASSERT(ToRegister(instr->value()).is(eax)); | 2985 ASSERT(ToRegister(instr->value()).is(eax)); |
2986 | 2986 |
2987 __ mov(ecx, instr->name()); | 2987 __ mov(ecx, instr->name()); |
2988 Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode) | 2988 Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode) |
2989 ? isolate()->builtins()->StoreIC_Initialize_Strict() | 2989 ? isolate()->builtins()->StoreIC_Initialize_Strict() |
2990 : isolate()->builtins()->StoreIC_Initialize(); | 2990 : isolate()->builtins()->StoreIC_Initialize(); |
2991 CallCode(ic, RelocInfo::CODE_TARGET_CONTEXT, instr); | 2991 CallCode(ic, RelocInfo::CODE_TARGET_CONTEXT, instr); |
2992 } | 2992 } |
2993 | 2993 |
2994 | 2994 |
| 2995 void LCodeGen::DoLinkObjectInList(LLinkObjectInList* instr) { |
| 2996 Register object = ToRegister(instr->object()); |
| 2997 Register temp = ToRegister(instr->temp()); |
| 2998 ExternalReference sites_list_address = instr->GetReference(isolate()); |
| 2999 |
| 3000 __ mov(temp, Immediate(sites_list_address)); |
| 3001 __ mov(temp, Operand(temp, 0)); |
| 3002 __ mov(FieldOperand(object, instr->hydrogen()->store_field().offset()), |
| 3003 temp); |
| 3004 __ mov(temp, Immediate(sites_list_address)); |
| 3005 __ mov(Operand(temp, 0), object); |
| 3006 } |
| 3007 |
| 3008 |
2995 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { | 3009 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { |
2996 Register context = ToRegister(instr->context()); | 3010 Register context = ToRegister(instr->context()); |
2997 Register result = ToRegister(instr->result()); | 3011 Register result = ToRegister(instr->result()); |
2998 __ mov(result, ContextOperand(context, instr->slot_index())); | 3012 __ mov(result, ContextOperand(context, instr->slot_index())); |
2999 | 3013 |
3000 if (instr->hydrogen()->RequiresHoleCheck()) { | 3014 if (instr->hydrogen()->RequiresHoleCheck()) { |
3001 __ cmp(result, factory()->the_hole_value()); | 3015 __ cmp(result, factory()->the_hole_value()); |
3002 if (instr->hydrogen()->DeoptimizesOnHole()) { | 3016 if (instr->hydrogen()->DeoptimizesOnHole()) { |
3003 DeoptimizeIf(equal, instr->environment()); | 3017 DeoptimizeIf(equal, instr->environment()); |
3004 } else { | 3018 } else { |
(...skipping 3478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6483 FixedArray::kHeaderSize - kPointerSize)); | 6497 FixedArray::kHeaderSize - kPointerSize)); |
6484 __ bind(&done); | 6498 __ bind(&done); |
6485 } | 6499 } |
6486 | 6500 |
6487 | 6501 |
6488 #undef __ | 6502 #undef __ |
6489 | 6503 |
6490 } } // namespace v8::internal | 6504 } } // namespace v8::internal |
6491 | 6505 |
6492 #endif // V8_TARGET_ARCH_IA32 | 6506 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |