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

Side by Side Diff: src/mips/codegen-mips.h

Issue 3427021: Fix some inconsistent formatting. (Closed)
Patch Set: Created 10 years, 3 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/mips/assembler-mips.h ('k') | src/parser.cc » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 explicit CodeGenerator(MacroAssembler* masm); 233 explicit CodeGenerator(MacroAssembler* masm);
234 234
235 // Accessors. 235 // Accessors.
236 inline bool is_eval(); 236 inline bool is_eval();
237 inline Scope* scope(); 237 inline Scope* scope();
238 238
239 // Generating deferred code. 239 // Generating deferred code.
240 void ProcessDeferred(); 240 void ProcessDeferred();
241 241
242 // State 242 // State
243 bool has_cc() const { return cc_reg_ != cc_always; } 243 bool has_cc() const { return cc_reg_ != cc_always; }
244 TypeofState typeof_state() const { return state_->typeof_state(); } 244 TypeofState typeof_state() const { return state_->typeof_state(); }
245 JumpTarget* true_target() const { return state_->true_target(); } 245 JumpTarget* true_target() const { return state_->true_target(); }
246 JumpTarget* false_target() const { return state_->false_target(); } 246 JumpTarget* false_target() const { return state_->false_target(); }
247 247
248 // We don't track loop nesting level on mips yet. 248 // We don't track loop nesting level on mips yet.
249 int loop_nesting() const { return 0; } 249 int loop_nesting() const { return 0; }
250 250
251 // Node visitors. 251 // Node visitors.
252 void VisitStatements(ZoneList<Statement*>* statements); 252 void VisitStatements(ZoneList<Statement*>* statements);
253 253
254 #define DEF_VISIT(type) \ 254 #define DEF_VISIT(type) \
255 void Visit##type(type* node); 255 void Visit##type(type* node);
256 AST_NODE_LIST(DEF_VISIT) 256 AST_NODE_LIST(DEF_VISIT)
(...skipping 16 matching lines...) Expand all
273 void LoadReference(Reference* ref); 273 void LoadReference(Reference* ref);
274 void UnloadReference(Reference* ref); 274 void UnloadReference(Reference* ref);
275 275
276 MemOperand ContextOperand(Register context, int index) const { 276 MemOperand ContextOperand(Register context, int index) const {
277 return MemOperand(context, Context::SlotOffset(index)); 277 return MemOperand(context, Context::SlotOffset(index));
278 } 278 }
279 279
280 MemOperand SlotOperand(Slot* slot, Register tmp); 280 MemOperand SlotOperand(Slot* slot, Register tmp);
281 281
282 // Expressions 282 // Expressions
283 MemOperand GlobalObject() const { 283 MemOperand GlobalObject() const {
284 return ContextOperand(cp, Context::GLOBAL_INDEX); 284 return ContextOperand(cp, Context::GLOBAL_INDEX);
285 } 285 }
286 286
287 void LoadCondition(Expression* x, 287 void LoadCondition(Expression* x,
288 JumpTarget* true_target, 288 JumpTarget* true_target,
289 JumpTarget* false_target, 289 JumpTarget* false_target,
290 bool force_cc); 290 bool force_cc);
291 void Load(Expression* x); 291 void Load(Expression* x);
292 void LoadGlobal(); 292 void LoadGlobal();
293 293
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 friend class FullCodeGenerator; 422 friend class FullCodeGenerator;
423 friend class FullCodeGenSyntaxChecker; 423 friend class FullCodeGenSyntaxChecker;
424 424
425 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); 425 DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
426 }; 426 };
427 427
428 428
429 } } // namespace v8::internal 429 } } // namespace v8::internal
430 430
431 #endif // V8_MIPS_CODEGEN_MIPS_H_ 431 #endif // V8_MIPS_CODEGEN_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.h ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698