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

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

Issue 212593003: Merged r20033, r20138 into 3.23 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.23
Patch Set: Created 6 years, 8 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 4369 matching lines...) Expand 10 before | Expand all | Expand 10 after
4380 ASSERT_NE(instr->temp(), NULL); 4380 ASSERT_NE(instr->temp(), NULL);
4381 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg, 4381 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg,
4382 ToRegister(instr->temp()), kDontSaveFPRegs); 4382 ToRegister(instr->temp()), kDontSaveFPRegs);
4383 } else { 4383 } else {
4384 ASSERT(ToRegister(instr->context()).is(rsi)); 4384 ASSERT(ToRegister(instr->context()).is(rsi));
4385 PushSafepointRegistersScope scope(this); 4385 PushSafepointRegistersScope scope(this);
4386 if (!object_reg.is(rax)) { 4386 if (!object_reg.is(rax)) {
4387 __ movq(rax, object_reg); 4387 __ movq(rax, object_reg);
4388 } 4388 }
4389 __ Move(rbx, to_map); 4389 __ Move(rbx, to_map);
4390 TransitionElementsKindStub stub(from_kind, to_kind); 4390 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE;
4391 TransitionElementsKindStub stub(from_kind, to_kind, is_js_array);
4391 __ CallStub(&stub); 4392 __ CallStub(&stub);
4392 RecordSafepointWithRegisters( 4393 RecordSafepointWithRegisters(
4393 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); 4394 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt);
4394 } 4395 }
4395 __ bind(&not_applicable); 4396 __ bind(&not_applicable);
4396 } 4397 }
4397 4398
4398 4399
4399 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { 4400 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) {
4400 Register object = ToRegister(instr->object()); 4401 Register object = ToRegister(instr->object());
(...skipping 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after
5661 FixedArray::kHeaderSize - kPointerSize)); 5662 FixedArray::kHeaderSize - kPointerSize));
5662 __ bind(&done); 5663 __ bind(&done);
5663 } 5664 }
5664 5665
5665 5666
5666 #undef __ 5667 #undef __
5667 5668
5668 } } // namespace v8::internal 5669 } } // namespace v8::internal
5669 5670
5670 #endif // V8_TARGET_ARCH_X64 5671 #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