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

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

Issue 900193002: Remove the obsolete OverwriteMode optimization. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments. Created 5 years, 10 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
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | no next file » | 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 2047 matching lines...) Expand 10 before | Expand all | Expand 10 after
2058 } 2058 }
2059 } 2059 }
2060 2060
2061 2061
2062 void LCodeGen::DoArithmeticT(LArithmeticT* instr) { 2062 void LCodeGen::DoArithmeticT(LArithmeticT* instr) {
2063 DCHECK(ToRegister(instr->context()).is(rsi)); 2063 DCHECK(ToRegister(instr->context()).is(rsi));
2064 DCHECK(ToRegister(instr->left()).is(rdx)); 2064 DCHECK(ToRegister(instr->left()).is(rdx));
2065 DCHECK(ToRegister(instr->right()).is(rax)); 2065 DCHECK(ToRegister(instr->right()).is(rax));
2066 DCHECK(ToRegister(instr->result()).is(rax)); 2066 DCHECK(ToRegister(instr->result()).is(rax));
2067 2067
2068 Handle<Code> code = 2068 Handle<Code> code = CodeFactory::BinaryOpIC(isolate(), instr->op()).code();
2069 CodeFactory::BinaryOpIC(isolate(), instr->op(), NO_OVERWRITE).code();
2070 CallCode(code, RelocInfo::CODE_TARGET, instr); 2069 CallCode(code, RelocInfo::CODE_TARGET, instr);
2071 } 2070 }
2072 2071
2073 2072
2074 template<class InstrType> 2073 template<class InstrType>
2075 void LCodeGen::EmitBranch(InstrType instr, Condition cc) { 2074 void LCodeGen::EmitBranch(InstrType instr, Condition cc) {
2076 int left_block = instr->TrueDestination(chunk_); 2075 int left_block = instr->TrueDestination(chunk_);
2077 int right_block = instr->FalseDestination(chunk_); 2076 int right_block = instr->FalseDestination(chunk_);
2078 2077
2079 int next_block = GetNextEmittedBlock(); 2078 int next_block = GetNextEmittedBlock();
(...skipping 3851 matching lines...) Expand 10 before | Expand all | Expand 10 after
5931 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5930 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5932 RecordSafepoint(Safepoint::kNoLazyDeopt); 5931 RecordSafepoint(Safepoint::kNoLazyDeopt);
5933 } 5932 }
5934 5933
5935 5934
5936 #undef __ 5935 #undef __
5937 5936
5938 } } // namespace v8::internal 5937 } } // namespace v8::internal
5939 5938
5940 #endif // V8_TARGET_ARCH_X64 5939 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698