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

Side by Side Diff: src/x64/lithium-codegen-x64.h

Issue 177683002: Mode clean-up pt 1: rename classic/non-strict mode to sloppy mode (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // Emit frame translation commands for an environment. 124 // Emit frame translation commands for an environment.
125 void WriteTranslation(LEnvironment* environment, Translation* translation); 125 void WriteTranslation(LEnvironment* environment, Translation* translation);
126 126
127 // Declare methods that deal with the individual node types. 127 // Declare methods that deal with the individual node types.
128 #define DECLARE_DO(type) void Do##type(L##type* node); 128 #define DECLARE_DO(type) void Do##type(L##type* node);
129 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO) 129 LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)
130 #undef DECLARE_DO 130 #undef DECLARE_DO
131 131
132 private: 132 private:
133 StrictModeFlag strict_mode_flag() const { 133 StrictModeFlag strict_mode_flag() const {
134 return info()->is_classic_mode() ? kNonStrictMode : kStrictMode; 134 return info()->is_sloppy_mode() ? kSloppyMode : kStrictMode;
135 } 135 }
136 136
137 LPlatformChunk* chunk() const { return chunk_; } 137 LPlatformChunk* chunk() const { return chunk_; }
138 Scope* scope() const { return scope_; } 138 Scope* scope() const { return scope_; }
139 HGraph* graph() const { return chunk()->graph(); } 139 HGraph* graph() const { return chunk()->graph(); }
140 140
141 XMMRegister double_scratch0() const { return xmm0; } 141 XMMRegister double_scratch0() const { return xmm0; }
142 142
143 void EmitClassOfTest(Label* if_true, 143 void EmitClassOfTest(Label* if_true,
144 Label* if_false, 144 Label* if_false,
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 Label entry_; 411 Label entry_;
412 Label exit_; 412 Label exit_;
413 Label done_; 413 Label done_;
414 Label* external_exit_; 414 Label* external_exit_;
415 int instruction_index_; 415 int instruction_index_;
416 }; 416 };
417 417
418 } } // namespace v8::internal 418 } } // namespace v8::internal
419 419
420 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_ 420 #endif // V8_X64_LITHIUM_CODEGEN_X64_H_
OLDNEW
« src/preparser.h ('K') | « src/x64/ic-x64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698