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 1040603002: [x64] Introduce BMI instructions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: clear TODOs of MacroAssembler::Lzcntl Created 5 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
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 3984 matching lines...) Expand 10 before | Expand all | Expand 10 after
3995 __ movsd(input_reg, Operand(rsp, 0)); 3995 __ movsd(input_reg, Operand(rsp, 0));
3996 __ addp(rsp, Immediate(kDoubleSize)); 3996 __ addp(rsp, Immediate(kDoubleSize));
3997 __ bind(&done); 3997 __ bind(&done);
3998 } 3998 }
3999 3999
4000 4000
4001 void LCodeGen::DoMathClz32(LMathClz32* instr) { 4001 void LCodeGen::DoMathClz32(LMathClz32* instr) {
4002 Register input = ToRegister(instr->value()); 4002 Register input = ToRegister(instr->value());
4003 Register result = ToRegister(instr->result()); 4003 Register result = ToRegister(instr->result());
4004 4004
4005 __ Lzcntl(result, input); 4005 __ lzcntl(result, input);
Benedikt Meurer 2015/04/08 05:45:41 Leave it as Lzcntl here as well.
4006 } 4006 }
4007 4007
4008 4008
4009 void LCodeGen::DoInvokeFunction(LInvokeFunction* instr) { 4009 void LCodeGen::DoInvokeFunction(LInvokeFunction* instr) {
4010 DCHECK(ToRegister(instr->context()).is(rsi)); 4010 DCHECK(ToRegister(instr->context()).is(rsi));
4011 DCHECK(ToRegister(instr->function()).is(rdi)); 4011 DCHECK(ToRegister(instr->function()).is(rdi));
4012 DCHECK(instr->HasPointerMap()); 4012 DCHECK(instr->HasPointerMap());
4013 4013
4014 Handle<JSFunction> known_function = instr->hydrogen()->known_function(); 4014 Handle<JSFunction> known_function = instr->hydrogen()->known_function();
4015 if (known_function.is_null()) { 4015 if (known_function.is_null()) {
(...skipping 1917 matching lines...) Expand 10 before | Expand all | Expand 10 after
5933 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5933 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5934 RecordSafepoint(Safepoint::kNoLazyDeopt); 5934 RecordSafepoint(Safepoint::kNoLazyDeopt);
5935 } 5935 }
5936 5936
5937 5937
5938 #undef __ 5938 #undef __
5939 5939
5940 } } // namespace v8::internal 5940 } } // namespace v8::internal
5941 5941
5942 #endif // V8_TARGET_ARCH_X64 5942 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698