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

Side by Side Diff: src/crankshaft/x87/lithium-x87.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/x87/lithium-x87.h" 5 #include "src/crankshaft/x87/lithium-x87.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_X87 9 #if V8_TARGET_ARCH_X87
10 10
(...skipping 2466 matching lines...) Expand 10 before | Expand all | Expand 10 after
2477 LOperand* context = UseAny(instr->context()); 2477 LOperand* context = UseAny(instr->context());
2478 LOperand* size = instr->size()->IsConstant() 2478 LOperand* size = instr->size()->IsConstant()
2479 ? UseConstant(instr->size()) 2479 ? UseConstant(instr->size())
2480 : UseTempRegister(instr->size()); 2480 : UseTempRegister(instr->size());
2481 LOperand* temp = TempRegister(); 2481 LOperand* temp = TempRegister();
2482 LAllocate* result = new(zone()) LAllocate(context, size, temp); 2482 LAllocate* result = new(zone()) LAllocate(context, size, temp);
2483 return AssignPointerMap(DefineAsRegister(result)); 2483 return AssignPointerMap(DefineAsRegister(result));
2484 } 2484 }
2485 2485
2486 2486
2487 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) {
2488 LOperand* context = UseFixed(instr->context(), esi);
2489 return MarkAsCall(
2490 DefineFixed(new(zone()) LRegExpLiteral(context), eax), instr);
2491 }
2492
2493
2494 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { 2487 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) {
2495 DCHECK(argument_count_ == 0); 2488 DCHECK(argument_count_ == 0);
2496 allocator_->MarkAsOsrEntry(); 2489 allocator_->MarkAsOsrEntry();
2497 current_block_->last_environment()->set_ast_id(instr->ast_id()); 2490 current_block_->last_environment()->set_ast_id(instr->ast_id());
2498 return AssignEnvironment(new(zone()) LOsrEntry); 2491 return AssignEnvironment(new(zone()) LOsrEntry);
2499 } 2492 }
2500 2493
2501 2494
2502 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2495 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2503 LParameter* result = new(zone()) LParameter; 2496 LParameter* result = new(zone()) LParameter;
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
2707 LAllocateBlockContext* result = 2700 LAllocateBlockContext* result =
2708 new(zone()) LAllocateBlockContext(context, function); 2701 new(zone()) LAllocateBlockContext(context, function);
2709 return MarkAsCall(DefineFixed(result, esi), instr); 2702 return MarkAsCall(DefineFixed(result, esi), instr);
2710 } 2703 }
2711 2704
2712 2705
2713 } // namespace internal 2706 } // namespace internal
2714 } // namespace v8 2707 } // namespace v8
2715 2708
2716 #endif // V8_TARGET_ARCH_X87 2709 #endif // V8_TARGET_ARCH_X87
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698