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

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

Issue 201153020: Merged r19834, r19843 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/x64/lithium-codegen-x64.h ('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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 osr_pc_offset_ = masm()->pc_offset(); 266 osr_pc_offset_ = masm()->pc_offset();
267 267
268 // Adjust the frame size, subsuming the unoptimized frame into the 268 // Adjust the frame size, subsuming the unoptimized frame into the
269 // optimized frame. 269 // optimized frame.
270 int slots = GetStackSlotCount() - graph()->osr()->UnoptimizedFrameSlots(); 270 int slots = GetStackSlotCount() - graph()->osr()->UnoptimizedFrameSlots();
271 ASSERT(slots >= 0); 271 ASSERT(slots >= 0);
272 __ subq(rsp, Immediate(slots * kPointerSize)); 272 __ subq(rsp, Immediate(slots * kPointerSize));
273 } 273 }
274 274
275 275
276 void LCodeGen::GenerateBodyInstructionPre(LInstruction* instr) {
277 if (!instr->IsLazyBailout() && !instr->IsGap()) {
278 safepoints_.BumpLastLazySafepointIndex();
279 }
280 }
281
282
276 bool LCodeGen::GenerateJumpTable() { 283 bool LCodeGen::GenerateJumpTable() {
277 Label needs_frame; 284 Label needs_frame;
278 if (jump_table_.length() > 0) { 285 if (jump_table_.length() > 0) {
279 Comment(";;; -------------------- Jump table --------------------"); 286 Comment(";;; -------------------- Jump table --------------------");
280 } 287 }
281 for (int i = 0; i < jump_table_.length(); i++) { 288 for (int i = 0; i < jump_table_.length(); i++) {
282 __ bind(&jump_table_[i].label); 289 __ bind(&jump_table_[i].label);
283 Address entry = jump_table_[i].address; 290 Address entry = jump_table_[i].address;
284 Deoptimizer::BailoutType type = jump_table_[i].bailout_type; 291 Deoptimizer::BailoutType type = jump_table_[i].bailout_type;
285 int id = Deoptimizer::GetDeoptimizationId(isolate(), entry, type); 292 int id = Deoptimizer::GetDeoptimizationId(isolate(), entry, type);
(...skipping 1577 matching lines...) Expand 10 before | Expand all | Expand 10 after
1863 1870
1864 1871
1865 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { 1872 void LCodeGen::DoArithmeticT(LArithmeticT* instr) {
1866 ASSERT(ToRegister(instr->context()).is(rsi)); 1873 ASSERT(ToRegister(instr->context()).is(rsi));
1867 ASSERT(ToRegister(instr->left()).is(rdx)); 1874 ASSERT(ToRegister(instr->left()).is(rdx));
1868 ASSERT(ToRegister(instr->right()).is(rax)); 1875 ASSERT(ToRegister(instr->right()).is(rax));
1869 ASSERT(ToRegister(instr->result()).is(rax)); 1876 ASSERT(ToRegister(instr->result()).is(rax));
1870 1877
1871 BinaryOpICStub stub(instr->op(), NO_OVERWRITE); 1878 BinaryOpICStub stub(instr->op(), NO_OVERWRITE);
1872 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); 1879 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
1873 __ nop(); // Signals no inlined code.
1874 } 1880 }
1875 1881
1876 1882
1877 template<class InstrType> 1883 template<class InstrType>
1878 void LCodeGen::EmitBranch(InstrType instr, Condition cc) { 1884 void LCodeGen::EmitBranch(InstrType instr, Condition cc) {
1879 int left_block = instr->TrueDestination(chunk_); 1885 int left_block = instr->TrueDestination(chunk_);
1880 int right_block = instr->FalseDestination(chunk_); 1886 int right_block = instr->FalseDestination(chunk_);
1881 1887
1882 int next_block = GetNextEmittedBlock(); 1888 int next_block = GetNextEmittedBlock();
1883 1889
(...skipping 3671 matching lines...) Expand 10 before | Expand all | Expand 10 after
5555 FixedArray::kHeaderSize - kPointerSize)); 5561 FixedArray::kHeaderSize - kPointerSize));
5556 __ bind(&done); 5562 __ bind(&done);
5557 } 5563 }
5558 5564
5559 5565
5560 #undef __ 5566 #undef __
5561 5567
5562 } } // namespace v8::internal 5568 } } // namespace v8::internal
5563 5569
5564 #endif // V8_TARGET_ARCH_X64 5570 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.h ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698