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

Side by Side Diff: src/mips/lithium-mips.cc

Issue 1329293003: [runtime] Sanitize %NewClosure runtime entries. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Ports Created 5 years, 3 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
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/mips64/lithium-codegen-mips64.cc » ('j') | 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 "src/mips/lithium-mips.h" 5 #include "src/mips/lithium-mips.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 2422 matching lines...) Expand 10 before | Expand all | Expand 10 after
2433 } 2433 }
2434 2434
2435 2435
2436 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { 2436 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) {
2437 LOperand* context = UseFixed(instr->context(), cp); 2437 LOperand* context = UseFixed(instr->context(), cp);
2438 return MarkAsCall( 2438 return MarkAsCall(
2439 DefineFixed(new(zone()) LRegExpLiteral(context), v0), instr); 2439 DefineFixed(new(zone()) LRegExpLiteral(context), v0), instr);
2440 } 2440 }
2441 2441
2442 2442
2443 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) {
2444 LOperand* context = UseFixed(instr->context(), cp);
2445 return MarkAsCall(
2446 DefineFixed(new(zone()) LFunctionLiteral(context), v0), instr);
2447 }
2448
2449
2450 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { 2443 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) {
2451 DCHECK(argument_count_ == 0); 2444 DCHECK(argument_count_ == 0);
2452 allocator_->MarkAsOsrEntry(); 2445 allocator_->MarkAsOsrEntry();
2453 current_block_->last_environment()->set_ast_id(instr->ast_id()); 2446 current_block_->last_environment()->set_ast_id(instr->ast_id());
2454 return AssignEnvironment(new(zone()) LOsrEntry); 2447 return AssignEnvironment(new(zone()) LOsrEntry);
2455 } 2448 }
2456 2449
2457 2450
2458 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2451 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2459 LParameter* result = new(zone()) LParameter; 2452 LParameter* result = new(zone()) LParameter;
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
2649 LOperand* function = UseRegisterAtStart(instr->function()); 2642 LOperand* function = UseRegisterAtStart(instr->function());
2650 LAllocateBlockContext* result = 2643 LAllocateBlockContext* result =
2651 new(zone()) LAllocateBlockContext(context, function); 2644 new(zone()) LAllocateBlockContext(context, function);
2652 return MarkAsCall(DefineFixed(result, cp), instr); 2645 return MarkAsCall(DefineFixed(result, cp), instr);
2653 } 2646 }
2654 2647
2655 } // namespace internal 2648 } // namespace internal
2656 } // namespace v8 2649 } // namespace v8
2657 2650
2658 #endif // V8_TARGET_ARCH_MIPS 2651 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698