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

Side by Side Diff: src/arm/lithium-arm.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/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.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/arm/lithium-arm.h" 5 #include "src/arm/lithium-arm.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/arm/lithium-codegen-arm.h" 9 #include "src/arm/lithium-codegen-arm.h"
10 #include "src/hydrogen-osr.h" 10 #include "src/hydrogen-osr.h"
(...skipping 2475 matching lines...) Expand 10 before | Expand all | Expand 10 after
2486 } 2486 }
2487 2487
2488 2488
2489 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { 2489 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) {
2490 LOperand* context = UseFixed(instr->context(), cp); 2490 LOperand* context = UseFixed(instr->context(), cp);
2491 return MarkAsCall( 2491 return MarkAsCall(
2492 DefineFixed(new(zone()) LRegExpLiteral(context), r0), instr); 2492 DefineFixed(new(zone()) LRegExpLiteral(context), r0), instr);
2493 } 2493 }
2494 2494
2495 2495
2496 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) {
2497 LOperand* context = UseFixed(instr->context(), cp);
2498 return MarkAsCall(
2499 DefineFixed(new(zone()) LFunctionLiteral(context), r0), instr);
2500 }
2501
2502
2503 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { 2496 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) {
2504 DCHECK(argument_count_ == 0); 2497 DCHECK(argument_count_ == 0);
2505 allocator_->MarkAsOsrEntry(); 2498 allocator_->MarkAsOsrEntry();
2506 current_block_->last_environment()->set_ast_id(instr->ast_id()); 2499 current_block_->last_environment()->set_ast_id(instr->ast_id());
2507 return AssignEnvironment(new(zone()) LOsrEntry); 2500 return AssignEnvironment(new(zone()) LOsrEntry);
2508 } 2501 }
2509 2502
2510 2503
2511 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2504 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2512 LParameter* result = new(zone()) LParameter; 2505 LParameter* result = new(zone()) LParameter;
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
2699 HAllocateBlockContext* instr) { 2692 HAllocateBlockContext* instr) {
2700 LOperand* context = UseFixed(instr->context(), cp); 2693 LOperand* context = UseFixed(instr->context(), cp);
2701 LOperand* function = UseRegisterAtStart(instr->function()); 2694 LOperand* function = UseRegisterAtStart(instr->function());
2702 LAllocateBlockContext* result = 2695 LAllocateBlockContext* result =
2703 new(zone()) LAllocateBlockContext(context, function); 2696 new(zone()) LAllocateBlockContext(context, function);
2704 return MarkAsCall(DefineFixed(result, cp), instr); 2697 return MarkAsCall(DefineFixed(result, cp), instr);
2705 } 2698 }
2706 2699
2707 } // namespace internal 2700 } // namespace internal
2708 } // namespace v8 2701 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698