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

Side by Side Diff: src/x64/lithium-x64.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/x64/lithium-x64.h ('k') | src/x87/lithium-codegen-x87.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/x64/lithium-x64.h" 5 #include "src/x64/lithium-x64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 2510 matching lines...) Expand 10 before | Expand all | Expand 10 after
2521 } 2521 }
2522 2522
2523 2523
2524 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { 2524 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) {
2525 LOperand* context = UseFixed(instr->context(), rsi); 2525 LOperand* context = UseFixed(instr->context(), rsi);
2526 LRegExpLiteral* result = new(zone()) LRegExpLiteral(context); 2526 LRegExpLiteral* result = new(zone()) LRegExpLiteral(context);
2527 return MarkAsCall(DefineFixed(result, rax), instr); 2527 return MarkAsCall(DefineFixed(result, rax), instr);
2528 } 2528 }
2529 2529
2530 2530
2531 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) {
2532 LOperand* context = UseFixed(instr->context(), rsi);
2533 LFunctionLiteral* result = new(zone()) LFunctionLiteral(context);
2534 return MarkAsCall(DefineFixed(result, rax), instr);
2535 }
2536
2537
2538 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { 2531 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) {
2539 DCHECK(argument_count_ == 0); 2532 DCHECK(argument_count_ == 0);
2540 allocator_->MarkAsOsrEntry(); 2533 allocator_->MarkAsOsrEntry();
2541 current_block_->last_environment()->set_ast_id(instr->ast_id()); 2534 current_block_->last_environment()->set_ast_id(instr->ast_id());
2542 return AssignEnvironment(new(zone()) LOsrEntry); 2535 return AssignEnvironment(new(zone()) LOsrEntry);
2543 } 2536 }
2544 2537
2545 2538
2546 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2539 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2547 LParameter* result = new(zone()) LParameter; 2540 LParameter* result = new(zone()) LParameter;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
2747 LAllocateBlockContext* result = 2740 LAllocateBlockContext* result =
2748 new(zone()) LAllocateBlockContext(context, function); 2741 new(zone()) LAllocateBlockContext(context, function);
2749 return MarkAsCall(DefineFixed(result, rsi), instr); 2742 return MarkAsCall(DefineFixed(result, rsi), instr);
2750 } 2743 }
2751 2744
2752 2745
2753 } // namespace internal 2746 } // namespace internal
2754 } // namespace v8 2747 } // namespace v8
2755 2748
2756 #endif // V8_TARGET_ARCH_X64 2749 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | src/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698