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

Side by Side Diff: src/crankshaft/mips64/lithium-mips64.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/mips64/lithium-mips64.h" 5 #include "src/crankshaft/mips64/lithium-mips64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 2371 matching lines...) Expand 10 before | Expand all | Expand 10 after
2382 info()->MarkAsDeferredCalling(); 2382 info()->MarkAsDeferredCalling();
2383 LOperand* context = UseAny(instr->context()); 2383 LOperand* context = UseAny(instr->context());
2384 LOperand* size = UseRegisterOrConstant(instr->size()); 2384 LOperand* size = UseRegisterOrConstant(instr->size());
2385 LOperand* temp1 = TempRegister(); 2385 LOperand* temp1 = TempRegister();
2386 LOperand* temp2 = TempRegister(); 2386 LOperand* temp2 = TempRegister();
2387 LAllocate* result = new(zone()) LAllocate(context, size, temp1, temp2); 2387 LAllocate* result = new(zone()) LAllocate(context, size, temp1, temp2);
2388 return AssignPointerMap(DefineAsRegister(result)); 2388 return AssignPointerMap(DefineAsRegister(result));
2389 } 2389 }
2390 2390
2391 2391
2392 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) {
2393 LOperand* context = UseFixed(instr->context(), cp);
2394 return MarkAsCall(
2395 DefineFixed(new(zone()) LRegExpLiteral(context), v0), instr);
2396 }
2397
2398
2399 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { 2392 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) {
2400 DCHECK(argument_count_ == 0); 2393 DCHECK(argument_count_ == 0);
2401 allocator_->MarkAsOsrEntry(); 2394 allocator_->MarkAsOsrEntry();
2402 current_block_->last_environment()->set_ast_id(instr->ast_id()); 2395 current_block_->last_environment()->set_ast_id(instr->ast_id());
2403 return AssignEnvironment(new(zone()) LOsrEntry); 2396 return AssignEnvironment(new(zone()) LOsrEntry);
2404 } 2397 }
2405 2398
2406 2399
2407 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2400 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2408 LParameter* result = new(zone()) LParameter; 2401 LParameter* result = new(zone()) LParameter;
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
2598 LAllocateBlockContext* result = 2591 LAllocateBlockContext* result =
2599 new(zone()) LAllocateBlockContext(context, function); 2592 new(zone()) LAllocateBlockContext(context, function);
2600 return MarkAsCall(DefineFixed(result, cp), instr); 2593 return MarkAsCall(DefineFixed(result, cp), instr);
2601 } 2594 }
2602 2595
2603 2596
2604 } // namespace internal 2597 } // namespace internal
2605 } // namespace v8 2598 } // namespace v8
2606 2599
2607 #endif // V8_TARGET_ARCH_MIPS64 2600 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698