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

Side by Side Diff: src/crankshaft/arm64/lithium-arm64.cc

Issue 1475823003: [runtime] First step to sanitize regexp literal creation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/crankshaft/arm64/lithium-arm64.h" 5 #include "src/crankshaft/arm64/lithium-arm64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" 9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h"
10 #include "src/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 2006 matching lines...) Expand 10 before | Expand all | Expand 10 after
2017 AddInstruction(push_args, instr); 2017 AddInstruction(push_args, instr);
2018 push_args = new(zone()) LPushArguments(zone()); 2018 push_args = new(zone()) LPushArguments(zone());
2019 } 2019 }
2020 push_args->AddArgument(UseRegister(instr->argument(i))); 2020 push_args->AddArgument(UseRegister(instr->argument(i)));
2021 } 2021 }
2022 2022
2023 return push_args; 2023 return push_args;
2024 } 2024 }
2025 2025
2026 2026
2027 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) {
2028 LOperand* context = UseFixed(instr->context(), cp);
2029 return MarkAsCall(
2030 DefineFixed(new(zone()) LRegExpLiteral(context), x0), instr);
2031 }
2032
2033
2034 LInstruction* LChunkBuilder::DoDoubleBits(HDoubleBits* instr) { 2027 LInstruction* LChunkBuilder::DoDoubleBits(HDoubleBits* instr) {
2035 HValue* value = instr->value(); 2028 HValue* value = instr->value();
2036 DCHECK(value->representation().IsDouble()); 2029 DCHECK(value->representation().IsDouble());
2037 return DefineAsRegister(new(zone()) LDoubleBits(UseRegister(value))); 2030 return DefineAsRegister(new(zone()) LDoubleBits(UseRegister(value)));
2038 } 2031 }
2039 2032
2040 2033
2041 LInstruction* LChunkBuilder::DoConstructDouble(HConstructDouble* instr) { 2034 LInstruction* LChunkBuilder::DoConstructDouble(HConstructDouble* instr) {
2042 LOperand* lo = UseRegisterAndClobber(instr->lo()); 2035 LOperand* lo = UseRegisterAndClobber(instr->lo());
2043 LOperand* hi = UseRegister(instr->hi()); 2036 LOperand* hi = UseRegister(instr->hi());
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
2738 LOperand* context = UseFixed(instr->context(), cp); 2731 LOperand* context = UseFixed(instr->context(), cp);
2739 LOperand* function = UseRegisterAtStart(instr->function()); 2732 LOperand* function = UseRegisterAtStart(instr->function());
2740 LAllocateBlockContext* result = 2733 LAllocateBlockContext* result =
2741 new(zone()) LAllocateBlockContext(context, function); 2734 new(zone()) LAllocateBlockContext(context, function);
2742 return MarkAsCall(DefineFixed(result, cp), instr); 2735 return MarkAsCall(DefineFixed(result, cp), instr);
2743 } 2736 }
2744 2737
2745 2738
2746 } // namespace internal 2739 } // namespace internal
2747 } // namespace v8 2740 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698