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

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

Issue 7350015: Avoid patching code after the call to binary operation stub in optimized code (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 } 1334 }
1335 1335
1336 1336
1337 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { 1337 void LCodeGen::DoArithmeticT(LArithmeticT* instr) {
1338 ASSERT(ToRegister(instr->InputAt(0)).is(rdx)); 1338 ASSERT(ToRegister(instr->InputAt(0)).is(rdx));
1339 ASSERT(ToRegister(instr->InputAt(1)).is(rax)); 1339 ASSERT(ToRegister(instr->InputAt(1)).is(rax));
1340 ASSERT(ToRegister(instr->result()).is(rax)); 1340 ASSERT(ToRegister(instr->result()).is(rax));
1341 1341
1342 BinaryOpStub stub(instr->op(), NO_OVERWRITE); 1342 BinaryOpStub stub(instr->op(), NO_OVERWRITE);
1343 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); 1343 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
1344 __ nop(); // Signals no inlined code.
1344 } 1345 }
1345 1346
1346 1347
1347 int LCodeGen::GetNextEmittedBlock(int block) { 1348 int LCodeGen::GetNextEmittedBlock(int block) {
1348 for (int i = block + 1; i < graph()->blocks()->length(); ++i) { 1349 for (int i = block + 1; i < graph()->blocks()->length(); ++i) {
1349 LLabel* label = chunk_->GetLabel(i); 1350 LLabel* label = chunk_->GetLabel(i);
1350 if (!label->HasReplacement()) return i; 1351 if (!label->HasReplacement()) return i;
1351 } 1352 }
1352 return -1; 1353 return -1;
1353 } 1354 }
(...skipping 2705 matching lines...) Expand 10 before | Expand all | Expand 10 after
4059 RegisterEnvironmentForDeoptimization(environment); 4060 RegisterEnvironmentForDeoptimization(environment);
4060 ASSERT(osr_pc_offset_ == -1); 4061 ASSERT(osr_pc_offset_ == -1);
4061 osr_pc_offset_ = masm()->pc_offset(); 4062 osr_pc_offset_ = masm()->pc_offset();
4062 } 4063 }
4063 4064
4064 #undef __ 4065 #undef __
4065 4066
4066 } } // namespace v8::internal 4067 } } // namespace v8::internal
4067 4068
4068 #endif // V8_TARGET_ARCH_X64 4069 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/arm/lithium-codegen-arm.cc ('K') | « src/ia32/lithium-codegen-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698