OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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 |
OLD | NEW |