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

Side by Side Diff: src/crankshaft/x87/lithium-codegen-x87.h

Issue 1949013002: [compiler] Remove dangerous language mode accessors. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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/crankshaft/x64/lithium-codegen-x64.h ('k') | no next file » | 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 #ifndef V8_CRANKSHAFT_X87_LITHIUM_CODEGEN_X87_H_ 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_CODEGEN_X87_H_
6 #define V8_CRANKSHAFT_X87_LITHIUM_CODEGEN_X87_H_ 6 #define V8_CRANKSHAFT_X87_LITHIUM_CODEGEN_X87_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "src/ast/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 void WriteTranslation(LEnvironment* environment, Translation* translation); 143 void WriteTranslation(LEnvironment* environment, Translation* translation);
144 144
145 void EnsureRelocSpaceForDeoptimization(); 145 void EnsureRelocSpaceForDeoptimization();
146 146
147 // Declare methods that deal with the individual node types. 147 // Declare methods that deal with the individual node types.
148 #define DECLARE_DO(type) void Do##type(L##type* node); 148 #define DECLARE_DO(type) void Do##type(L##type* node);
149 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) 149 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)
150 #undef DECLARE_DO 150 #undef DECLARE_DO
151 151
152 private: 152 private:
153 LanguageMode language_mode() const { return info()->language_mode(); }
154
155 Scope* scope() const { return scope_; } 153 Scope* scope() const { return scope_; }
156 154
157 void EmitClassOfTest(Label* if_true, 155 void EmitClassOfTest(Label* if_true,
158 Label* if_false, 156 Label* if_false,
159 Handle<String> class_name, 157 Handle<String> class_name,
160 Register input, 158 Register input,
161 Register temporary, 159 Register temporary,
162 Register temporary2); 160 Register temporary2);
163 161
164 bool HasAllocatedStackSlots() const { 162 bool HasAllocatedStackSlots() const {
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 Label* external_exit_; 487 Label* external_exit_;
490 Label done_; 488 Label done_;
491 int instruction_index_; 489 int instruction_index_;
492 LCodeGen::X87Stack x87_stack_; 490 LCodeGen::X87Stack x87_stack_;
493 }; 491 };
494 492
495 } // namespace internal 493 } // namespace internal
496 } // namespace v8 494 } // namespace v8
497 495
498 #endif // V8_CRANKSHAFT_X87_LITHIUM_CODEGEN_X87_H_ 496 #endif // V8_CRANKSHAFT_X87_LITHIUM_CODEGEN_X87_H_
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-codegen-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698