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

Side by Side Diff: src/compiler/js-operator.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/compiler/js-generic-lowering.cc ('k') | src/compiler/js-typed-lowering.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/js-operator.h" 5 #include "src/compiler/js-operator.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/lazy-instance.h" 9 #include "src/base/lazy-instance.h"
10 #include "src/compiler/opcodes.h" 10 #include "src/compiler/opcodes.h"
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 access); // parameter 704 access); // parameter
705 } 705 }
706 706
707 707
708 const Operator* JSOperatorBuilder::CreateClosure( 708 const Operator* JSOperatorBuilder::CreateClosure(
709 Handle<SharedFunctionInfo> shared_info, PretenureFlag pretenure) { 709 Handle<SharedFunctionInfo> shared_info, PretenureFlag pretenure) {
710 CreateClosureParameters parameters(shared_info, pretenure); 710 CreateClosureParameters parameters(shared_info, pretenure);
711 return new (zone()) Operator1<CreateClosureParameters>( // -- 711 return new (zone()) Operator1<CreateClosureParameters>( // --
712 IrOpcode::kJSCreateClosure, Operator::kNoThrow, // opcode 712 IrOpcode::kJSCreateClosure, Operator::kNoThrow, // opcode
713 "JSCreateClosure", // name 713 "JSCreateClosure", // name
714 1, 1, 1, 1, 1, 0, // counts 714 0, 1, 1, 1, 1, 0, // counts
715 parameters); // parameter 715 parameters); // parameter
716 } 716 }
717 717
718 718
719 const Operator* JSOperatorBuilder::CreateLiteralArray(int literal_flags) { 719 const Operator* JSOperatorBuilder::CreateLiteralArray(int literal_flags) {
720 return new (zone()) Operator1<int>( // -- 720 return new (zone()) Operator1<int>( // --
721 IrOpcode::kJSCreateLiteralArray, Operator::kNoProperties, // opcode 721 IrOpcode::kJSCreateLiteralArray, Operator::kNoProperties, // opcode
722 "JSCreateLiteralArray", // name 722 "JSCreateLiteralArray", // name
723 3, 1, 1, 1, 1, 2, // counts 723 3, 1, 1, 1, 1, 2, // counts
724 literal_flags); // parameter 724 literal_flags); // parameter
(...skipping 15 matching lines...) Expand all
740 Handle<String>::hash>( // -- 740 Handle<String>::hash>( // --
741 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode 741 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode
742 "JSCreateCatchContext", // name 742 "JSCreateCatchContext", // name
743 2, 1, 1, 1, 1, 2, // counts 743 2, 1, 1, 1, 1, 2, // counts
744 name); // parameter 744 name); // parameter
745 } 745 }
746 746
747 } // namespace compiler 747 } // namespace compiler
748 } // namespace internal 748 } // namespace internal
749 } // namespace v8 749 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698