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

Side by Side Diff: src/x87/lithium-x87.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
« src/x64/lithium-codegen-x64.cc ('K') | « src/x87/lithium-x87.h ('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 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_X87 9 #if V8_TARGET_ARCH_X87
10 10
(...skipping 2013 matching lines...) Expand 10 before | Expand all | Expand 10 after
2024 return result; 2024 return result;
2025 } 2025 }
2026 2026
2027 2027
2028 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { 2028 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) {
2029 LOperand* value = UseRegisterAtStart(instr->value()); 2029 LOperand* value = UseRegisterAtStart(instr->value());
2030 return AssignEnvironment(new(zone()) LCheckSmi(value)); 2030 return AssignEnvironment(new(zone()) LCheckSmi(value));
2031 } 2031 }
2032 2032
2033 2033
2034 LInstruction* LChunkBuilder::DoCheckArrayBufferNotNeutered(
2035 HCheckArrayBufferNotNeutered* instr) {
2036 LOperand* view = UseRegisterAtStart(instr->value());
2037 LOperand* scratch = TempRegister();
2038 LCheckArrayBufferNotNeutered* result =
2039 new (zone()) LCheckArrayBufferNotNeutered(view, scratch);
2040 return AssignEnvironment(result);
2041 }
2042
2043
2034 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { 2044 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) {
2035 LOperand* value = UseRegisterAtStart(instr->value()); 2045 LOperand* value = UseRegisterAtStart(instr->value());
2036 LOperand* temp = TempRegister(); 2046 LOperand* temp = TempRegister();
2037 LCheckInstanceType* result = new(zone()) LCheckInstanceType(value, temp); 2047 LCheckInstanceType* result = new(zone()) LCheckInstanceType(value, temp);
2038 return AssignEnvironment(result); 2048 return AssignEnvironment(result);
2039 } 2049 }
2040 2050
2041 2051
2042 LInstruction* LChunkBuilder::DoCheckValue(HCheckValue* instr) { 2052 LInstruction* LChunkBuilder::DoCheckValue(HCheckValue* instr) {
2043 // If the object is in new space, we'll emit a global cell compare and so 2053 // If the object is in new space, we'll emit a global cell compare and so
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
2717 LOperand* function = UseRegisterAtStart(instr->function()); 2727 LOperand* function = UseRegisterAtStart(instr->function());
2718 LAllocateBlockContext* result = 2728 LAllocateBlockContext* result =
2719 new(zone()) LAllocateBlockContext(context, function); 2729 new(zone()) LAllocateBlockContext(context, function);
2720 return MarkAsCall(DefineFixed(result, esi), instr); 2730 return MarkAsCall(DefineFixed(result, esi), instr);
2721 } 2731 }
2722 2732
2723 2733
2724 } } // namespace v8::internal 2734 } } // namespace v8::internal
2725 2735
2726 #endif // V8_TARGET_ARCH_X87 2736 #endif // V8_TARGET_ARCH_X87
OLDNEW
« src/x64/lithium-codegen-x64.cc ('K') | « src/x87/lithium-x87.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698