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

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

Issue 1108313003: Add HArrayBufferNotNeutered instruction (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 7 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 1973 matching lines...) Expand 10 before | Expand all | Expand 10 after
1984 return result; 1984 return result;
1985 } 1985 }
1986 1986
1987 1987
1988 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { 1988 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) {
1989 LOperand* value = UseRegisterAtStart(instr->value()); 1989 LOperand* value = UseRegisterAtStart(instr->value());
1990 return AssignEnvironment(new(zone()) LCheckSmi(value)); 1990 return AssignEnvironment(new(zone()) LCheckSmi(value));
1991 } 1991 }
1992 1992
1993 1993
1994 LInstruction* LChunkBuilder::DoCheckArrayBufferNotNeutered(
1995 HCheckArrayBufferNotNeutered* instr) {
1996 LOperand* view = UseRegisterAtStart(instr->value());
1997 LCheckArrayBufferNotNeutered* result =
1998 new (zone()) LCheckArrayBufferNotNeutered(view);
1999 return AssignEnvironment(result);
2000 }
2001
2002
1994 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { 2003 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) {
1995 LOperand* value = UseRegisterAtStart(instr->value()); 2004 LOperand* value = UseRegisterAtStart(instr->value());
1996 LCheckInstanceType* result = new(zone()) LCheckInstanceType(value); 2005 LCheckInstanceType* result = new(zone()) LCheckInstanceType(value);
1997 return AssignEnvironment(result); 2006 return AssignEnvironment(result);
1998 } 2007 }
1999 2008
2000 2009
2001 LInstruction* LChunkBuilder::DoCheckValue(HCheckValue* instr) { 2010 LInstruction* LChunkBuilder::DoCheckValue(HCheckValue* instr) {
2002 LOperand* value = UseRegisterAtStart(instr->value()); 2011 LOperand* value = UseRegisterAtStart(instr->value());
2003 return AssignEnvironment(new(zone()) LCheckValue(value)); 2012 return AssignEnvironment(new(zone()) LCheckValue(value));
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
2693 LOperand* function = UseRegisterAtStart(instr->function()); 2702 LOperand* function = UseRegisterAtStart(instr->function());
2694 LAllocateBlockContext* result = 2703 LAllocateBlockContext* result =
2695 new(zone()) LAllocateBlockContext(context, function); 2704 new(zone()) LAllocateBlockContext(context, function);
2696 return MarkAsCall(DefineFixed(result, rsi), instr); 2705 return MarkAsCall(DefineFixed(result, rsi), instr);
2697 } 2706 }
2698 2707
2699 2708
2700 } } // namespace v8::internal 2709 } } // namespace v8::internal
2701 2710
2702 #endif // V8_TARGET_ARCH_X64 2711 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698