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

Side by Side Diff: src/compiler/opcodes.h

Issue 2559173003: [compiler] Generalize JSContextSpecialization. (Closed)
Patch Set: Feedback Created 3 years, 11 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/node-properties.cc ('k') | test/cctest/compiler/test-js-context-specialization.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #ifndef V8_COMPILER_OPCODES_H_ 5 #ifndef V8_COMPILER_OPCODES_H_
6 #define V8_COMPILER_OPCODES_H_ 6 #define V8_COMPILER_OPCODES_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 static bool IsInlineeOpcode(Value value) { 793 static bool IsInlineeOpcode(Value value) {
794 return value == kJSCallConstruct || value == kJSCallFunction; 794 return value == kJSCallConstruct || value == kJSCallFunction;
795 } 795 }
796 796
797 // Returns true if opcode for comparison operator. 797 // Returns true if opcode for comparison operator.
798 static bool IsComparisonOpcode(Value value) { 798 static bool IsComparisonOpcode(Value value) {
799 return (kJSEqual <= value && value <= kJSGreaterThanOrEqual) || 799 return (kJSEqual <= value && value <= kJSGreaterThanOrEqual) ||
800 (kNumberEqual <= value && value <= kStringLessThanOrEqual) || 800 (kNumberEqual <= value && value <= kStringLessThanOrEqual) ||
801 (kWord32Equal <= value && value <= kFloat64LessThanOrEqual); 801 (kWord32Equal <= value && value <= kFloat64LessThanOrEqual);
802 } 802 }
803
804 static bool IsContextChainExtendingOpcode(Value value) {
805 return kJSCreateFunctionContext <= value && value <= kJSCreateScriptContext;
806 }
803 }; 807 };
804 808
805 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream&, IrOpcode::Value); 809 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream&, IrOpcode::Value);
806 810
807 } // namespace compiler 811 } // namespace compiler
808 } // namespace internal 812 } // namespace internal
809 } // namespace v8 813 } // namespace v8
810 814
811 #endif // V8_COMPILER_OPCODES_H_ 815 #endif // V8_COMPILER_OPCODES_H_
OLDNEW
« no previous file with comments | « src/compiler/node-properties.cc ('k') | test/cctest/compiler/test-js-context-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698