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

Side by Side Diff: src/crankshaft/mips/lithium-codegen-mips.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
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_MIPS_LITHIUM_CODEGEN_MIPS_H_ 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_
6 #define V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_ 6 #define V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_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/mips/lithium-gap-resolver-mips.h" 10 #include "src/crankshaft/mips/lithium-gap-resolver-mips.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 // Emit frame translation commands for an environment. 128 // Emit frame translation commands for an environment.
129 void WriteTranslation(LEnvironment* environment, Translation* translation); 129 void WriteTranslation(LEnvironment* environment, Translation* translation);
130 130
131 // Declare methods that deal with the individual node types. 131 // Declare methods that deal with the individual node types.
132 #define DECLARE_DO(type) void Do##type(L##type* node); 132 #define DECLARE_DO(type) void Do##type(L##type* node);
133 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) 133 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)
134 #undef DECLARE_DO 134 #undef DECLARE_DO
135 135
136 private: 136 private:
137 LanguageMode language_mode() const { return info()->language_mode(); }
138
139 Scope* scope() const { return scope_; } 137 Scope* scope() const { return scope_; }
140 138
141 Register scratch0() { return kLithiumScratchReg; } 139 Register scratch0() { return kLithiumScratchReg; }
142 Register scratch1() { return kLithiumScratchReg2; } 140 Register scratch1() { return kLithiumScratchReg2; }
143 DoubleRegister double_scratch0() { return kLithiumScratchDouble; } 141 DoubleRegister double_scratch0() { return kLithiumScratchDouble; }
144 142
145 LInstruction* GetNextInstruction(); 143 LInstruction* GetNextInstruction();
146 144
147 void EmitClassOfTest(Label* if_true, 145 void EmitClassOfTest(Label* if_true,
148 Label* if_false, 146 Label* if_false,
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 Label entry_; 418 Label entry_;
421 Label exit_; 419 Label exit_;
422 Label* external_exit_; 420 Label* external_exit_;
423 int instruction_index_; 421 int instruction_index_;
424 }; 422 };
425 423
426 } // namespace internal 424 } // namespace internal
427 } // namespace v8 425 } // namespace v8
428 426
429 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_ 427 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_CODEGEN_MIPS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/ia32/lithium-codegen-ia32.h ('k') | src/crankshaft/mips64/lithium-codegen-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698