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

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

Issue 12812002: HSubAllocatedObject instruction allows hydrogen code to carve up (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Updated to HInnerAllocatedObject Created 7 years, 9 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/ia32/lithium-ia32.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 3930 matching lines...) Expand 10 before | Expand all | Expand 10 after
3941 isolate()->builtins()->ArrayConstructCode(); 3941 isolate()->builtins()->ArrayConstructCode();
3942 CallCode(array_construct_code, RelocInfo::CONSTRUCT_CALL, instr); 3942 CallCode(array_construct_code, RelocInfo::CONSTRUCT_CALL, instr);
3943 } 3943 }
3944 3944
3945 3945
3946 void LCodeGen::DoCallRuntime(LCallRuntime* instr) { 3946 void LCodeGen::DoCallRuntime(LCallRuntime* instr) {
3947 CallRuntime(instr->function(), instr->arity(), instr); 3947 CallRuntime(instr->function(), instr->arity(), instr);
3948 } 3948 }
3949 3949
3950 3950
3951 void LCodeGen::DoInnerAllocatedObject(LInnerAllocatedObject* instr) {
3952 Register result = ToRegister(instr->result());
3953 Register base = ToRegister(instr->base_object());
3954 __ lea(result, Operand(base, instr->offset()));
3955 }
3956
3957
3951 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { 3958 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) {
3952 Register object = ToRegister(instr->object()); 3959 Register object = ToRegister(instr->object());
3953 Register value = ToRegister(instr->value()); 3960 Register value = ToRegister(instr->value());
3954 int offset = instr->offset(); 3961 int offset = instr->offset();
3955 3962
3956 if (!instr->transition().is_null()) { 3963 if (!instr->transition().is_null()) {
3957 if (!instr->hydrogen()->NeedsWriteBarrierForMap()) { 3964 if (!instr->hydrogen()->NeedsWriteBarrierForMap()) {
3958 __ Move(FieldOperand(object, HeapObject::kMapOffset), 3965 __ Move(FieldOperand(object, HeapObject::kMapOffset),
3959 instr->transition()); 3966 instr->transition());
3960 } else { 3967 } else {
(...skipping 1879 matching lines...) Expand 10 before | Expand all | Expand 10 after
5840 FixedArray::kHeaderSize - kPointerSize)); 5847 FixedArray::kHeaderSize - kPointerSize));
5841 __ bind(&done); 5848 __ bind(&done);
5842 } 5849 }
5843 5850
5844 5851
5845 #undef __ 5852 #undef __
5846 5853
5847 } } // namespace v8::internal 5854 } } // namespace v8::internal
5848 5855
5849 #endif // V8_TARGET_ARCH_X64 5856 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698