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

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

Issue 18173013: AllocationSite objects weakly linked for traversal (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed final nits Created 7 years, 5 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/serialize.cc ('k') | src/x64/lithium-x64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 2585 matching lines...) Expand 10 before | Expand all | Expand 10 after
2596 ASSERT(ToRegister(instr->value()).is(rax)); 2596 ASSERT(ToRegister(instr->value()).is(rax));
2597 2597
2598 __ Move(rcx, instr->name()); 2598 __ Move(rcx, instr->name());
2599 Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode) 2599 Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode)
2600 ? isolate()->builtins()->StoreIC_Initialize_Strict() 2600 ? isolate()->builtins()->StoreIC_Initialize_Strict()
2601 : isolate()->builtins()->StoreIC_Initialize(); 2601 : isolate()->builtins()->StoreIC_Initialize();
2602 CallCode(ic, RelocInfo::CODE_TARGET_CONTEXT, instr); 2602 CallCode(ic, RelocInfo::CODE_TARGET_CONTEXT, instr);
2603 } 2603 }
2604 2604
2605 2605
2606 void LCodeGen::DoLinkObjectInList(LLinkObjectInList* instr) {
2607 Register object = ToRegister(instr->object());
2608 ExternalReference sites_list_address = instr->GetReference(isolate());
2609 __ Load(kScratchRegister, sites_list_address);
2610 __ movq(FieldOperand(object, instr->hydrogen()->store_field().offset()),
2611 kScratchRegister);
2612 __ Store(sites_list_address, object);
2613 }
2614
2615
2606 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { 2616 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) {
2607 Register context = ToRegister(instr->context()); 2617 Register context = ToRegister(instr->context());
2608 Register result = ToRegister(instr->result()); 2618 Register result = ToRegister(instr->result());
2609 __ movq(result, ContextOperand(context, instr->slot_index())); 2619 __ movq(result, ContextOperand(context, instr->slot_index()));
2610 if (instr->hydrogen()->RequiresHoleCheck()) { 2620 if (instr->hydrogen()->RequiresHoleCheck()) {
2611 __ CompareRoot(result, Heap::kTheHoleValueRootIndex); 2621 __ CompareRoot(result, Heap::kTheHoleValueRootIndex);
2612 if (instr->hydrogen()->DeoptimizesOnHole()) { 2622 if (instr->hydrogen()->DeoptimizesOnHole()) {
2613 DeoptimizeIf(equal, instr->environment()); 2623 DeoptimizeIf(equal, instr->environment());
2614 } else { 2624 } else {
2615 Label is_not_hole; 2625 Label is_not_hole;
(...skipping 2900 matching lines...) Expand 10 before | Expand all | Expand 10 after
5516 FixedArray::kHeaderSize - kPointerSize)); 5526 FixedArray::kHeaderSize - kPointerSize));
5517 __ bind(&done); 5527 __ bind(&done);
5518 } 5528 }
5519 5529
5520 5530
5521 #undef __ 5531 #undef __
5522 5532
5523 } } // namespace v8::internal 5533 } } // namespace v8::internal
5524 5534
5525 #endif // V8_TARGET_ARCH_X64 5535 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/serialize.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698