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

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

Issue 212623002: Merged r20033, r20138 into 3.24 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.24
Patch Set: Created 6 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/version.cc ('k') | test/cctest/test-api.cc » ('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 4277 matching lines...) Expand 10 before | Expand all | Expand 10 after
4288 ASSERT_NE(instr->temp(), NULL); 4288 ASSERT_NE(instr->temp(), NULL);
4289 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg, 4289 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg,
4290 ToRegister(instr->temp()), kDontSaveFPRegs); 4290 ToRegister(instr->temp()), kDontSaveFPRegs);
4291 } else { 4291 } else {
4292 ASSERT(ToRegister(instr->context()).is(rsi)); 4292 ASSERT(ToRegister(instr->context()).is(rsi));
4293 PushSafepointRegistersScope scope(this); 4293 PushSafepointRegistersScope scope(this);
4294 if (!object_reg.is(rax)) { 4294 if (!object_reg.is(rax)) {
4295 __ movp(rax, object_reg); 4295 __ movp(rax, object_reg);
4296 } 4296 }
4297 __ Move(rbx, to_map); 4297 __ Move(rbx, to_map);
4298 TransitionElementsKindStub stub(from_kind, to_kind); 4298 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE;
4299 TransitionElementsKindStub stub(from_kind, to_kind, is_js_array);
4299 __ CallStub(&stub); 4300 __ CallStub(&stub);
4300 RecordSafepointWithRegisters( 4301 RecordSafepointWithRegisters(
4301 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); 4302 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt);
4302 } 4303 }
4303 __ bind(&not_applicable); 4304 __ bind(&not_applicable);
4304 } 4305 }
4305 4306
4306 4307
4307 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { 4308 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) {
4308 Register object = ToRegister(instr->object()); 4309 Register object = ToRegister(instr->object());
(...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after
5561 FixedArray::kHeaderSize - kPointerSize)); 5562 FixedArray::kHeaderSize - kPointerSize));
5562 __ bind(&done); 5563 __ bind(&done);
5563 } 5564 }
5564 5565
5565 5566
5566 #undef __ 5567 #undef __
5567 5568
5568 } } // namespace v8::internal 5569 } } // namespace v8::internal
5569 5570
5570 #endif // V8_TARGET_ARCH_X64 5571 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/version.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698