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

Side by Side Diff: src/crankshaft/s390/lithium-codegen-s390.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/ppc/lithium-codegen-ppc.h ('k') | src/crankshaft/x64/lithium-codegen-x64.h » ('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 #ifndef V8_CRANKSHAFT_S390_LITHIUM_CODEGEN_S390_H_ 5 #ifndef V8_CRANKSHAFT_S390_LITHIUM_CODEGEN_S390_H_
6 #define V8_CRANKSHAFT_S390_LITHIUM_CODEGEN_S390_H_ 6 #define V8_CRANKSHAFT_S390_LITHIUM_CODEGEN_S390_H_
7 7
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/crankshaft/lithium-codegen.h" 9 #include "src/crankshaft/lithium-codegen.h"
10 #include "src/crankshaft/s390/lithium-gap-resolver-s390.h" 10 #include "src/crankshaft/s390/lithium-gap-resolver-s390.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 // Emit frame translation commands for an environment. 121 // Emit frame translation commands for an environment.
122 void WriteTranslation(LEnvironment* environment, Translation* translation); 122 void WriteTranslation(LEnvironment* environment, Translation* translation);
123 123
124 // Declare methods that deal with the individual node types. 124 // Declare methods that deal with the individual node types.
125 #define DECLARE_DO(type) void Do##type(L##type* node); 125 #define DECLARE_DO(type) void Do##type(L##type* node);
126 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) 126 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)
127 #undef DECLARE_DO 127 #undef DECLARE_DO
128 128
129 private: 129 private:
130 LanguageMode language_mode() const { return info()->language_mode(); }
131
132 Scope* scope() const { return scope_; } 130 Scope* scope() const { return scope_; }
133 131
134 Register scratch0() { return kLithiumScratch; } 132 Register scratch0() { return kLithiumScratch; }
135 DoubleRegister double_scratch0() { return kScratchDoubleReg; } 133 DoubleRegister double_scratch0() { return kScratchDoubleReg; }
136 134
137 LInstruction* GetNextInstruction(); 135 LInstruction* GetNextInstruction();
138 136
139 void EmitClassOfTest(Label* if_true, Label* if_false, 137 void EmitClassOfTest(Label* if_true, Label* if_false,
140 Handle<String> class_name, Register input, 138 Handle<String> class_name, Register input,
141 Register temporary, Register temporary2); 139 Register temporary, Register temporary2);
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 LCodeGen* codegen_; 348 LCodeGen* codegen_;
351 Label entry_; 349 Label entry_;
352 Label exit_; 350 Label exit_;
353 Label* external_exit_; 351 Label* external_exit_;
354 int instruction_index_; 352 int instruction_index_;
355 }; 353 };
356 } // namespace internal 354 } // namespace internal
357 } // namespace v8 355 } // namespace v8
358 356
359 #endif // V8_CRANKSHAFT_S390_LITHIUM_CODEGEN_S390_H_ 357 #endif // V8_CRANKSHAFT_S390_LITHIUM_CODEGEN_S390_H_
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-codegen-ppc.h ('k') | src/crankshaft/x64/lithium-codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698