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

Side by Side Diff: src/crankshaft/x64/lithium-codegen-x64.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/s390/lithium-codegen-s390.h ('k') | src/crankshaft/x87/lithium-codegen-x87.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 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_X64_LITHIUM_CODEGEN_X64_H_ 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_
6 #define V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_ 6 #define V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_
7 7
8 8
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/base/logging.h" 10 #include "src/base/logging.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 // Emit frame translation commands for an environment. 105 // Emit frame translation commands for an environment.
106 void WriteTranslation(LEnvironment* environment, Translation* translation); 106 void WriteTranslation(LEnvironment* environment, Translation* translation);
107 107
108 // Declare methods that deal with the individual node types. 108 // Declare methods that deal with the individual node types.
109 #define DECLARE_DO(type) void Do##type(L##type* node); 109 #define DECLARE_DO(type) void Do##type(L##type* node);
110 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) 110 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)
111 #undef DECLARE_DO 111 #undef DECLARE_DO
112 112
113 private: 113 private:
114 LanguageMode language_mode() const { return info()->language_mode(); }
115
116 LPlatformChunk* chunk() const { return chunk_; } 114 LPlatformChunk* chunk() const { return chunk_; }
117 Scope* scope() const { return scope_; } 115 Scope* scope() const { return scope_; }
118 HGraph* graph() const { return chunk()->graph(); } 116 HGraph* graph() const { return chunk()->graph(); }
119 117
120 XMMRegister double_scratch0() const { return xmm0; } 118 XMMRegister double_scratch0() const { return xmm0; }
121 119
122 void EmitClassOfTest(Label* if_true, 120 void EmitClassOfTest(Label* if_true,
123 Label* if_false, 121 Label* if_false,
124 Handle<String> class_name, 122 Handle<String> class_name,
125 Register input, 123 Register input,
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 Label exit_; 379 Label exit_;
382 Label done_; 380 Label done_;
383 Label* external_exit_; 381 Label* external_exit_;
384 int instruction_index_; 382 int instruction_index_;
385 }; 383 };
386 384
387 } // namespace internal 385 } // namespace internal
388 } // namespace v8 386 } // namespace v8
389 387
390 #endif // V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_ 388 #endif // V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/crankshaft/s390/lithium-codegen-s390.h ('k') | src/crankshaft/x87/lithium-codegen-x87.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698