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

Side by Side Diff: src/crankshaft/arm/lithium-arm.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 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 "src/crankshaft/arm/lithium-arm.h" 5 #include "src/crankshaft/arm/lithium-arm.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/arm/lithium-codegen-arm.h" 9 #include "src/crankshaft/arm/lithium-codegen-arm.h"
10 #include "src/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 2419 matching lines...) Expand 10 before | Expand all | Expand 10 after
2430 info()->MarkAsDeferredCalling(); 2430 info()->MarkAsDeferredCalling();
2431 LOperand* context = UseAny(instr->context()); 2431 LOperand* context = UseAny(instr->context());
2432 LOperand* size = UseRegisterOrConstant(instr->size()); 2432 LOperand* size = UseRegisterOrConstant(instr->size());
2433 LOperand* temp1 = TempRegister(); 2433 LOperand* temp1 = TempRegister();
2434 LOperand* temp2 = TempRegister(); 2434 LOperand* temp2 = TempRegister();
2435 LAllocate* result = new(zone()) LAllocate(context, size, temp1, temp2); 2435 LAllocate* result = new(zone()) LAllocate(context, size, temp1, temp2);
2436 return AssignPointerMap(DefineAsRegister(result)); 2436 return AssignPointerMap(DefineAsRegister(result));
2437 } 2437 }
2438 2438
2439 2439
2440 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) {
2441 LOperand* context = UseFixed(instr->context(), cp);
2442 return MarkAsCall(
2443 DefineFixed(new(zone()) LRegExpLiteral(context), r0), instr);
2444 }
2445
2446
2447 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { 2440 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) {
2448 DCHECK(argument_count_ == 0); 2441 DCHECK(argument_count_ == 0);
2449 allocator_->MarkAsOsrEntry(); 2442 allocator_->MarkAsOsrEntry();
2450 current_block_->last_environment()->set_ast_id(instr->ast_id()); 2443 current_block_->last_environment()->set_ast_id(instr->ast_id());
2451 return AssignEnvironment(new(zone()) LOsrEntry); 2444 return AssignEnvironment(new(zone()) LOsrEntry);
2452 } 2445 }
2453 2446
2454 2447
2455 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2448 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2456 LParameter* result = new(zone()) LParameter; 2449 LParameter* result = new(zone()) LParameter;
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
2643 HAllocateBlockContext* instr) { 2636 HAllocateBlockContext* instr) {
2644 LOperand* context = UseFixed(instr->context(), cp); 2637 LOperand* context = UseFixed(instr->context(), cp);
2645 LOperand* function = UseRegisterAtStart(instr->function()); 2638 LOperand* function = UseRegisterAtStart(instr->function());
2646 LAllocateBlockContext* result = 2639 LAllocateBlockContext* result =
2647 new(zone()) LAllocateBlockContext(context, function); 2640 new(zone()) LAllocateBlockContext(context, function);
2648 return MarkAsCall(DefineFixed(result, cp), instr); 2641 return MarkAsCall(DefineFixed(result, cp), instr);
2649 } 2642 }
2650 2643
2651 } // namespace internal 2644 } // namespace internal
2652 } // namespace v8 2645 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698